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                         <section class="cell">
 
  24                                 <h3>{% trans %}Schedule{% endtrans %}</h3>
 
  26                                         <dt>{% trans %}Slot{% endtrans %}</dt>
 
  27                                         <dd>{{ session.slot.title }}</dd>
 
  30                                         <dt>{% trans %}Start{% endtrans %}</dt>
 
  31                                         <dd>{{ session.start.format('Y-m-d H:i:s') }}</dd>
 
  34                                         <dt>{% trans %}Stop{% endtrans %}</dt>
 
  36                                                 {% if session.start.format('Y-m-d') != session.stop.format('Y-m-d') %}
 
  37                                                         {{ session.stop.format('Y-m-d H:i:s') }}
 
  39                                                         {{ session.stop.format('H:i:s') }}
 
  44                                         <dt>{% trans %}Length{% endtrans %}</dt>
 
  45                                         <dd>{{ session.length.format('H:i:s') }}</dd>
 
  48                                         <dt>{% trans %}Created{% endtrans %}</dt>
 
  49                                         <dd>{{ session.created.format('Y-m-d H:i:s') }}</dd>
 
  52                                         <dt>{% trans %}Updated{% endtrans %}</dt>
 
  53                                         <dd>{{ session.updated.format('Y-m-d H:i:s') }}</dd>
 
  56                         <section class="cell">
 
  57                                 <h3>{% trans %}Weather{% endtrans %}</h3>
 
  58                                 {% if session.rainrisk is not null %}
 
  60                                                 <dt>{% trans %}Rainrisk{% endtrans %}</dt>
 
  61                                                 <dd>{{ session.rainrisk }}</dd>
 
  64                                 {% if session.rainfall is not null %}
 
  66                                                 <dt>{% trans %}Rainfall{% endtrans %}</dt>
 
  67                                                 <dd>{{ session.rainfall }}</dd>
 
  70                                 {% if session.realfeel is not null %}
 
  72                                                 <dt>{% trans %}Realfeel{% endtrans %}</dt>
 
  73                                                 <dd>{{ session.realfeel }}</dd>
 
  76                                 {% if session.realfeelmin is not null %}
 
  78                                                 <dt>{% trans %}Realfeel min{% endtrans %}</dt>
 
  79                                                 <dd>{{ session.realfeelmin }}</dd>
 
  82                                 {% if session.realfeelmax is not null %}
 
  84                                                 <dt>{% trans %}Realfeel max{% endtrans %}</dt>
 
  85                                                 <dd>{{ session.realfeelmax }}</dd>
 
  88                                 {% if session.temperature is not null %}
 
  90                                                 <dt>{% trans %}Temperature{% endtrans %}</dt>
 
  91                                                 <dd>{{ session.temperature }}</dd>
 
  94                                 {% if session.temperaturemin is not null %}
 
  96                                                 <dt>{% trans %}Temperature min{% endtrans %}</dt>
 
  97                                                 <dd>{{ session.temperaturemin }}</dd>
 
 100                                 {% if session.temperaturemax is not null %}
 
 102                                                 <dt>{% trans %}Temperature max{% endtrans %}</dt>
 
 103                                                 <dd>{{ session.temperaturemax }}</dd>
 
 107                         <section class="cell">
 
 108                                 <h3>{% trans %}Location{% endtrans %}</h3>
 
 111                                         <dt>{% trans %}Location{% endtrans %}</dt>
 
 112                                         <dd><a href="{{ path('rapsys_air_location_view', {'id': session.location.id}) }}">{{ session.location.title }}</a></dd>
 
 116                                         <dt>{% trans %}Address{% endtrans %}</dt>
 
 118                                                 {{ session.location.address }}
 
 119                                                 {{ session.location.zipcode }} {{ session.location.city }}
 
 123                                         <dt>{% trans %}Maps{% endtrans %}</dt>
 
 124                                         <dd><a href="https://www.google.fr/maps/@{{ session.location.latitude }},{{ session.location.longitude }},19z">Google Maps</a></dd>
 
 125                                         <dd><a href="https://www.openstreetmap.org/#map=19/{{ session.location.latitude }}/{{ session.location.longitude }}">OpenStreetMap</a></dd>
 
 128                                         <dt>{% trans %}Minimap{% endtrans %}</dt>
 
 129                                         <dd>TODO: minimap</dd>
 
 133                 {{ include('@RapsysAir/form/_toolbox.html.twig') }}
 
 135         <div class="panel candidate">
 
 137                         <h3>{% trans %}Candidates{% endtrans %}</h3>
 
 139                                 {% if session.applications is null %}
 
 140                                         <section class="cell">
 
 141                                                 {% trans %}None{% endtrans %}
 
 144                                         {% for application in session.applications %}
 
 145                                                 <section class="cell">
 
 146                                                         <h4><a href="{{ path('rapsys_air_user_view', {'id': application.user.id} ) }}">{{ application.user.title }}</a></h4>
 
 148                                                                 <dt>{% trans %}Score{% endtrans %}</dt>
 
 150                                                                         {% if application.score is null %}
 
 151                                                                                 {% trans %}None{% endtrans %}
 
 153                                                                                 {{ application.score }}</dd>
 
 157                                                                 <dt>{% trans %}Created{% endtrans %}</dt>
 
 158                                                                 <dd>{{ application.created.format('Y-m-d H:i:s') }}</dd>
 
 161                                                                 <dt>{% trans %}Updated{% endtrans %}</dt>
 
 162                                                                 <dd>{{ application.updated.format('Y-m-d H:i:s') }}</dd>
 
 165                                                                 <dt>{% trans %}Canceled{% endtrans %}</dt>
 
 167                                                                         {% if application.canceled is null %}
 
 168                                                                                 {% trans %}None{% endtrans %}
 
 170                                                                                 {{ application.canceled.format('Y-m-d H:i:s') }}