1 {% extends '@RapsysAir/body.html.twig' %}
 
   3 <section id="dashboard">
 
   5                 <a href="{{ path('rapsys_air_session_view', {'id': session.id}) }}">{{ session.title }}</a>
 
   7         <div class="panel calendar">
 
   9                         <section class="cell fourth">
 
  10                                 <h3>{% trans %}Location{% endtrans %}</h3>
 
  11                                 <a href="{{ path('rapsys_air_location_view', {'id': session.location.id}) }}">{{ session.location.title }}</a>
 
  13                         <section class="cell fourth">
 
  14                                 <h3>{% trans %}Slot{% endtrans %}</h3>
 
  15                                 {{ session.slot.title }}
 
  17                         <section class="cell fourth">
 
  18                                 <h3>{% trans %}Created{% endtrans %}</h3>
 
  19                                 {{ session.created.format('Y-m-d H:i:s') }}
 
  21                         <section class="cell fourth">
 
  22                                 <h3>{% trans %}Updated{% endtrans %}</h3>
 
  23                                 {{ session.updated.format('Y-m-d H:i:s') }}
 
  25                         <section class="cell third">
 
  26                                 <h3>{% trans %}Attributed to{% endtrans %}</h3>
 
  27                                 {% if session.application is null %}
 
  28                                         {% trans %}None{% endtrans %}
 
  30                                         <a href="{{ path('rapsys_air_user_view', {'id': session.application.user.id}) }}">{{ session.application.user.title }}</a>
 
  33                         <section class="cell third">
 
  34                                 <h3>{% trans %}Begin{% endtrans %}</h3>
 
  35                                 {% if session.begin is null %}
 
  36                                         {% trans %}None{% endtrans %}
 
  38                                         {{ session.begin.format('Y-m-d H:i:s') }}
 
  41                         <section class="cell third">
 
  42                                 <h3>{% trans %}End{% endtrans %}</h3>
 
  43                                 {% if session.end is null %}
 
  44                                         {% trans %}None{% endtrans %}
 
  46                                         {{ session.end.format('Y-m-d H:i:s') }}
 
  50                 {{ include('@RapsysAir/form/_toolbox.html.twig') }}
 
  52         <div class="panel candidate">
 
  54                         <section class="cell">
 
  55                                 <h3>{% trans %}Candidates{% endtrans %}</h3>
 
  57                                         {% if session.applications is null %}
 
  58                                                 {% trans %}None{% endtrans %}
 
  60                                                 {% for application in session.applications %}
 
  61                                                         <section class="cell">
 
  62                                                                 <h4><a href="{{ path('rapsys_air_user_view', {'id': application.user.id} ) }}">{{ application.user.title }}</a></h4>
 
  64                                                                         <dt>{% trans %}Created{% endtrans %}</dt>
 
  65                                                                         <dd>{{ application.created.format('Y-m-d H:i:s') }}</dd>
 
  68                                                                         <dt>{% trans %}Updated{% endtrans %}</dt>
 
  69                                                                         <dd>{{ application.updated.format('Y-m-d H:i:s') }}</dd>