1 {% extends '@RapsysAir/body.html.twig' %}
 
   3 <section id="dashboard">
 
   5                 <a href="{{ path('rapsys_air_session_view', {'id': session.id}) }}">{{ session.title }}</a>
 
   6                 <a href="{{ path('rapsys_air_location_view', {'id': session.location.id}) }}">{{ session.location.at }}</a>
 
   8         <div class="panel calendar">
 
  10                         <section class="cell">
 
  11                                 <h3>{% trans %}Organizer{% endtrans %}</h3>
 
  13                                         <dt>{% trans %}Attributed to{% endtrans %}</dt>
 
  15                                                 {% if session.application is null %}
 
  16                                                         {% trans %}None{% endtrans %}
 
  18                                                         <a href="{{ path('rapsys_air_user_view', {'id': session.application.user.id}) }}">{{ session.application.user.title }}</a>
 
  23                                         <dt>TODO: text organisateur</dt>
 
  24                                         <dd>TODO: text organisateur</dd>
 
  27                         <section class="cell">
 
  28                                 <h3>{% trans %}Schedule{% endtrans %}</h3>
 
  30                                         <dt>{% trans %}Slot{% endtrans %}</dt>
 
  31                                         <dd>{{ session.slot.title }}</dd>
 
  34                                         <dt>{% trans %}Start{% endtrans %}</dt>
 
  35                                         <dd>{{ session.start.format('Y-m-d H:i:s') }}</dd>
 
  38                                         <dt>{% trans %}Stop{% endtrans %}</dt>
 
  40                                                 {% if session.start.format('Y-m-d') != session.stop.format('Y-m-d') %}
 
  41                                                         {{ session.stop.format('Y-m-d H:i:s') }}
 
  43                                                         {{ session.stop.format('H:i:s') }}
 
  48                                         <dt>{% trans %}Length{% endtrans %}</dt>
 
  49                                         <dd>{{ session.length.format('H:i:s') }}</dd>
 
  52                                         <dt>{% trans %}Locked{% endtrans %}</dt>
 
  54                                                 {% if session.locked is null %}
 
  55                                                         {% trans %}None{% endtrans %}
 
  57                                                         {{ session.locked.format('Y-m-d H:i:s') }}
 
  62                                         <dt>{% trans %}Created{% endtrans %}</dt>
 
  63                                         <dd>{{ session.created.format('Y-m-d H:i:s') }}</dd>
 
  66                                         <dt>{% trans %}Updated{% endtrans %}</dt>
 
  67                                         <dd>{{ session.updated.format('Y-m-d H:i:s') }}</dd>
 
  70                         <section class="cell">
 
  71                                 <h3>{% trans %}Weather{% endtrans %}</h3>
 
  72                                 {% if session.rainrisk is not null %}
 
  74                                                 <dt>{% trans %}Rainrisk{% endtrans %}</dt>
 
  75                                                 <dd>{{ session.rainrisk }}</dd>
 
  78                                 {% if session.rainfall is not null %}
 
  80                                                 <dt>{% trans %}Rainfall{% endtrans %}</dt>
 
  81                                                 <dd>{{ session.rainfall }}</dd>
 
  84                                 {% if session.realfeel is not null %}
 
  86                                                 <dt>{% trans %}Realfeel{% endtrans %}</dt>
 
  87                                                 <dd>{{ session.realfeel }}</dd>
 
  90                                 {% if session.realfeelmin is not null %}
 
  92                                                 <dt>{% trans %}Realfeel min{% endtrans %}</dt>
 
  93                                                 <dd>{{ session.realfeelmin }}</dd>
 
  96                                 {% if session.realfeelmax is not null %}
 
  98                                                 <dt>{% trans %}Realfeel max{% endtrans %}</dt>
 
  99                                                 <dd>{{ session.realfeelmax }}</dd>
 
 102                                 {% if session.temperature is not null %}
 
 104                                                 <dt>{% trans %}Temperature{% endtrans %}</dt>
 
 105                                                 <dd>{{ session.temperature }}</dd>
 
 108                                 {% if session.temperaturemin is not null %}
 
 110                                                 <dt>{% trans %}Temperature min{% endtrans %}</dt>
 
 111                                                 <dd>{{ session.temperaturemin }}</dd>
 
 114                                 {% if session.temperaturemax is not null %}
 
 116                                                 <dt>{% trans %}Temperature max{% endtrans %}</dt>
 
 117                                                 <dd>{{ session.temperaturemax }}</dd>
 
 121                         <section class="cell">
 
 122                                 <h3>{% trans %}Location{% endtrans %}</h3>
 
 125                                         <dt>{% trans %}Location{% endtrans %}</dt>
 
 126                                         <dd><a href="{{ path('rapsys_air_location_view', {'id': session.location.id}) }}">{{ session.location.title }}</a></dd>
 
 130                                         <dt>{% trans %}Address{% endtrans %}</dt>
 
 132                                                 {{ session.location.address }}
 
 133                                                 {{ session.location.zipcode }} {{ session.location.city }}
 
 137                                         <dt>{% trans %}Maps{% endtrans %}</dt>
 
 138                                         <dd><a href="https://www.google.fr/maps/@{{ session.location.latitude }},{{ session.location.longitude }},19z">Google Maps</a></dd>
 
 139                                         <dd><a href="https://www.openstreetmap.org/#map=19/{{ session.location.latitude }}/{{ session.location.longitude }}">OpenStreetMap</a></dd>
 
 142                                         <dt>{% trans %}Minimap{% endtrans %}</dt>
 
 143                                         <dd>TODO: minimap</dd>
 
 147                 {{ include('@RapsysAir/form/_toolbox.html.twig') }}
 
 149         <div class="panel candidate">
 
 151                         <h3>{% trans %}Candidates{% endtrans %}</h3>
 
 153                                 {% if session.applications is null %}
 
 154                                         <section class="cell">
 
 155                                                 {% trans %}None{% endtrans %}
 
 158                                         {% for application in session.applications %}
 
 159                                                 <section class="cell">
 
 160                                                         <h4><a href="{{ path('rapsys_air_user_view', {'id': application.user.id} ) }}">{{ application.user.title }}</a></h4>
 
 162                                                                 <dt>{% trans %}Score{% endtrans %}</dt>
 
 164                                                                         {% if application.score is null %}
 
 165                                                                                 {% trans %}None{% endtrans %}
 
 167                                                                                 {{ application.score }}</dd>
 
 171                                                                 <dt>{% trans %}Created{% endtrans %}</dt>
 
 172                                                                 <dd>{{ application.created.format('Y-m-d H:i:s') }}</dd>
 
 175                                                                 <dt>{% trans %}Updated{% endtrans %}</dt>
 
 176                                                                 <dd>{{ application.updated.format('Y-m-d H:i:s') }}</dd>
 
 179                                                                 <dt>{% trans %}Canceled{% endtrans %}</dt>
 
 181                                                                         {% if application.canceled is null %}
 
 182                                                                                 {% trans %}None{% endtrans %}
 
 184                                                                                 {{ application.canceled.format('Y-m-d H:i:s') }}