- {% endif %}
- </section>
- <section class="cell">
- <h3>{% trans %}Location{% endtrans %}</h3>
- <dl>
- {# infos #}
- <dt>{% trans %}Location{% endtrans %}</dt>
- <dd><a href="{{ path('rapsys_air_location_view', {'id': session.location.id}) }}">{{ session.location.title }}</a></dd>
- </dl>
- <dl>
- {# location #}
- <dt>{% trans %}Address{% endtrans %}</dt>
- <dd>
- {{ session.location.address }}
- {{ session.location.zipcode }} {{ session.location.city }}
- </dd>
- </dl>
- <dl>
- <dt>{% trans %}Maps{% endtrans %}</dt>
- <dd><a href="https://www.google.fr/maps/@{{ session.location.latitude }},{{ session.location.longitude }},19z">Google Maps</a></dd>
- <dd><a href="https://www.openstreetmap.org/#map=19/{{ session.location.latitude }}/{{ session.location.longitude }}">OpenStreetMap</a></dd>
- </dl>
- <dl>
- <dt>{% trans %}Minimap{% endtrans %}</dt>
- <dd>TODO: minimap</dd>
- </dl>
- </section>
+ <dl>
+ <dt>{% trans %}Updated{% endtrans %}</dt>
+ <dd>{{ session.updated|localizeddate('long', 'medium') }}</dd>
+ </dl>
+ </section>
+ <section class="cell">
+ <h3>{% trans %}Weather{% endtrans %}</h3>
+ {% if session.rainrisk is not null %}
+ <dl>
+ <dt>{% trans %}Rainrisk{% endtrans %}</dt>
+ <dd>{{ session.rainrisk }}</dd>
+ </dl>
+ {% endif %}
+ {% if session.rainfall is not null %}
+ <dl>
+ <dt>{% trans %}Rainfall{% endtrans %}</dt>
+ <dd>{{ session.rainfall }}</dd>
+ </dl>
+ {% endif %}
+ {% if session.realfeel is not null %}
+ <dl>
+ <dt>{% trans %}Realfeel{% endtrans %}</dt>
+ <dd>{{ session.realfeel }}</dd>
+ </dl>
+ {% endif %}
+ {% if session.realfeelmin is not null %}
+ <dl>
+ <dt>{% trans %}Realfeel min{% endtrans %}</dt>
+ <dd>{{ session.realfeelmin }}</dd>
+ </dl>
+ {% endif %}
+ {% if session.realfeelmax is not null %}
+ <dl>
+ <dt>{% trans %}Realfeel max{% endtrans %}</dt>
+ <dd>{{ session.realfeelmax }}</dd>
+ </dl>
+ {% endif %}
+ {% if session.temperature is not null %}
+ <dl>
+ <dt>{% trans %}Temperature{% endtrans %}</dt>
+ <dd>{{ session.temperature }}</dd>
+ </dl>
+ {% endif %}
+ {% if session.temperaturemin is not null %}
+ <dl>
+ <dt>{% trans %}Temperature min{% endtrans %}</dt>
+ <dd>{{ session.temperaturemin }}</dd>
+ </dl>
+ {% endif %}
+ {% if session.temperaturemax is not null %}
+ <dl>
+ <dt>{% trans %}Temperature max{% endtrans %}</dt>
+ <dd>{{ session.temperaturemax }}</dd>
+ </dl>
+ {% endif %}
+ </section>
+ <section class="cell">
+ <h3>{% trans %}Location{% endtrans %}</h3>
+ <dl>
+ {# infos #}
+ <dt>{% trans %}Location{% endtrans %}</dt>
+ <dd><a href="{{ path('rapsys_air_location_view', {'id': session.location.id}) }}">{{ session.location.title }}</a></dd>
+ </dl>
+ <dl>
+ {# location #}
+ <dt>{% trans %}Address{% endtrans %}</dt>
+ <dd>
+ {{ session.location.address }}
+ {{ session.location.zipcode }} {{ session.location.city }}
+ </dd>
+ </dl>
+ <dl>
+ <dt>{% trans %}Maps{% endtrans %}</dt>
+ <dd><a href="https://www.google.fr/maps/@{{ session.location.latitude }},{{ session.location.longitude }},19z">Google Maps</a></dd>
+ <dd><a href="https://www.openstreetmap.org/#map=19/{{ session.location.latitude }}/{{ session.location.longitude }}">OpenStreetMap</a></dd>
+ </dl>
+ <dl>
+ <dt>{% trans %}Minimap{% endtrans %}</dt>
+ <dd>TODO: minimap</dd>
+ </dl>
+ </section>
+ </div>
+ {{ include('@RapsysAir/form/_toolbox.html.twig') }}