X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/128849d5fc3fcd51e68892c591a4ba1ac920c118..0539e335ae997520379e6170942604af25d461f5:/Resources/views/session/view.html.twig?ds=sidebyside diff --git a/Resources/views/session/view.html.twig b/Resources/views/session/view.html.twig index fe341d5..52139cf 100644 --- a/Resources/views/session/view.html.twig +++ b/Resources/views/session/view.html.twig @@ -1,81 +1,195 @@ {% extends '@RapsysAir/body.html.twig' %} {% block content %} -
+

{{ session.title }} + {{ session.location.at }}

-
-
-
-
-

{% trans %}Location{% endtrans %}

-
{{ session.location.title }}
+
+
+
+

{% trans %}Organizer{% endtrans %}

+
+
{% trans %}Attributed to{% endtrans %}
+
+ {% if session.application is null %} + {% trans %}None{% endtrans %} + {% else %} + {{ session.application.user.title }} + {% endif %} +
+
+
+
TODO: text organisateur
+
TODO: text organisateur
-
-

{% trans %}Slot{% endtrans %}

+
+
+

{% trans %}Schedule{% endtrans %}

+
+
{% trans %}Slot{% endtrans %}
{{ session.slot.title }}
-
-

{% trans %}Created{% endtrans %}

+
+
{% trans %}Start{% endtrans %}
+
{{ session.start.format('Y-m-d H:i:s') }}
+
+
+
{% trans %}Stop{% endtrans %}
+
+ {% if session.start.format('Y-m-d') != session.stop.format('Y-m-d') %} + {{ session.stop.format('Y-m-d H:i:s') }} + {% else %} + {{ session.stop.format('H:i:s') }} + {% endif %} +
+
+
+
{% trans %}Length{% endtrans %}
+
{{ session.length.format('H:i:s') }}
+
+
+
{% trans %}Locked{% endtrans %}
+
+ {% if session.locked is null %} + {% trans %}None{% endtrans %} + {% else %} + {{ session.locked.format('Y-m-d H:i:s') }} + {% endif %} +
+
+
+
{% trans %}Created{% endtrans %}
{{ session.created.format('Y-m-d H:i:s') }}
-
-

{% trans %}Updated{% endtrans %}

+
+
{% trans %}Updated{% endtrans %}
{{ session.updated.format('Y-m-d H:i:s') }}
-
-
-
-

{% trans %}Attributed to{% endtrans %}

- {% if session.application is null %} -
{% trans %}None{% endtrans %}
- {% else %} -
{{ session.application.user.title }}
- {% endif %} +
+
+

{% trans %}Weather{% endtrans %}

+ {% if session.rainrisk is not null %} +
+
{% trans %}Rainrisk{% endtrans %}
+
{{ session.rainrisk }}
+
+ {% endif %} + {% if session.rainfall is not null %} +
+
{% trans %}Rainfall{% endtrans %}
+
{{ session.rainfall }}
+
+ {% endif %} + {% if session.realfeel is not null %} +
+
{% trans %}Realfeel{% endtrans %}
+
{{ session.realfeel }}
+
+ {% endif %} + {% if session.realfeelmin is not null %} +
+
{% trans %}Realfeel min{% endtrans %}
+
{{ session.realfeelmin }}
+
+ {% endif %} + {% if session.realfeelmax is not null %} +
+
{% trans %}Realfeel max{% endtrans %}
+
{{ session.realfeelmax }}
+
+ {% endif %} + {% if session.temperature is not null %} +
+
{% trans %}Temperature{% endtrans %}
+
{{ session.temperature }}
+
+ {% endif %} + {% if session.temperaturemin is not null %} +
+
{% trans %}Temperature min{% endtrans %}
+
{{ session.temperaturemin }}
+
+ {% endif %} + {% if session.temperaturemax is not null %} +
+
{% trans %}Temperature max{% endtrans %}
+
{{ session.temperaturemax }}
+
+ {% endif %} +
+
+

{% trans %}Location{% endtrans %}

+
+ {# infos #} +
{% trans %}Location{% endtrans %}
+
{{ session.location.title }}
-
-

{% trans %}Begin{% endtrans %}

- {% if session.begin is null %} -
{% trans %}None{% endtrans %}
- {% else %} -
{{ session.begin.format('Y-m-d H:i:s') }}
- {% endif %} +
+ {# location #} +
{% trans %}Address{% endtrans %}
+
+ {{ session.location.address }} + {{ session.location.zipcode }} {{ session.location.city }} +
-
-

{% trans %}End{% endtrans %}

- {% if session.end is null %} -
{% trans %}None{% endtrans %}
- {% else %} -
{{ session.end.format('Y-m-d H:i:s') }}
- {% endif %} +
+
{% trans %}Maps{% endtrans %}
+
Google Maps
+
OpenStreetMap
- -
-

{% trans %}Candidates{% endtrans %}

-
- {% if session.applications is null %} +
+
{% trans %}Minimap{% endtrans %}
+
TODO: minimap
+
+
+ + {{ include('@RapsysAir/form/_toolbox.html.twig') }} + +
+
+

{% trans %}Candidates{% endtrans %}

+
+ {% if session.applications is null %} +
{% trans %}None{% endtrans %} - {% else %} - {% for application in session.applications %} -
-

{{ application.user.title }}

+
+ {% else %} + {% for application in session.applications %} +
+

{{ application.user.title }}

+
+
{% trans %}Score{% endtrans %}
+
+ {% if application.score is null %} + {% trans %}None{% endtrans %} + {% else %} + {{ application.score }}
+ {% endif %} +
+
+
{% trans %}Created{% endtrans %}
+
{{ application.created.format('Y-m-d H:i:s') }}
+
+
+
{% trans %}Updated{% endtrans %}
+
{{ application.updated.format('Y-m-d H:i:s') }}
+
+
+
{% trans %}Canceled{% endtrans %}
-
-
{% trans %}Created{% endtrans %}
-
{{ application.created.format('Y-m-d H:i:s') }}
-
-
-
{% trans %}Updated{% endtrans %}
-
{{ application.updated.format('Y-m-d H:i:s') }}
-
+ {% if application.canceled is null %} + {% trans %}None{% endtrans %} + {% else %} + {{ application.canceled.format('Y-m-d H:i:s') }} + {% endif %}
- {% endfor %} - {% endif %} -
+
+ {% endfor %} + {% endif %}
- {{ include('@RapsysAir/form/_toolbox.html.twig') }} -
+
{% endblock %}