]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/views/session/view.html.twig
Replace body with base template
[airbundle] / Resources / views / session / view.html.twig
index aca1710b41da5b3b14aa73cdf7dc9fe31b8f34ba..2520555a8f663e860421d269bcf400c0e5cbaf0b 100644 (file)
@@ -1,17 +1,9 @@
-{% extends '@RapsysAir/body.html.twig' %}
+{% extends '@RapsysAir/base.html.twig' %}
 {% block content %}
-       <article id="dashboard" class="session{% if session.locked is defined and session.locked %} locked{% elseif session.application.canceled is defined and session.application.canceled %} canceled{% endif %}">
+       <article class="session{% if session.locked is defined and session.locked %} locked{% elseif session.application.canceled is defined and session.application.canceled %} canceled{% endif %}">
                <header>
-                       {#<h2>
-                               {% if session.application.id is defined and session.application.id %}
-                                       <a href="{{ session.link }}">{{ session.application.dance.title ~ ' ' ~ session.id }}</a>
-                                       <a href="{{ session.application.user.link }}">{{ session.application.user.by }}</a>
-                               {% else %}
-                                       <a href="{{ session.link }}">{{ title }}</a>
-                               {% endif %}
-                               <a href="{{ session.location.link }}">{{ session.location.at }}</a>
-                       </h2>#}
-                       <h2>{{ description }}</h2>
+                       <h2>{{ title.page }}</h2>
+                       <p>{{ description }}</p>
                </header>
                <div class="panel">
                        <div class="grid three">
                                                <header>
                                                        <h3>{% trans %}Candidates{% endtrans %}</h3>
                                                </header>
-                                               <div class="panel grid{% if session.applications is defined %}{% if session.applications|length >= 4 %} four{% elseif session.applications|length >= 3 %} three{% elseif session.applications|length >= 2 %} two{% endif %}{% endif %}">
-                                                       {% if session.applications is defined and session.applications %}
-                                                               {% for application in session.applications %}
-                                                                       <section class="cell">
-                                                                               {% if application.user.id == 1 and application.user.title|slug == 'milonga-raphael' %}
-                                                                                       <h3><a href="{{ path('rapsys_air_user_milongaraphael') }}">{{ application.user.title }}</a></h3>
-                                                                               {% else %}
-                                                                                       <h3><a href="{{ path('rapsys_air_user_view', {'id': application.user.id, 'user': application.user.title|slug}) }}">{{ application.user.title }}</a></h3>
-                                                                               {% endif %}
-                                                                               <dl>
-                                                                                       <dt>{% trans %}Score{% endtrans %}</dt>
-                                                                                       <dd>
-                                                                                               {% if application.score is null %}
-                                                                                                       {% trans %}None{% endtrans %}
-                                                                                               {% else %}
-                                                                                                       {{ application.score }}</dd>
-                                                                                               {% endif %}
-                                                                               </dl>
-                                                                               <dl>
-                                                                                       <dt>{% trans %}Created{% endtrans %}</dt>
-                                                                                       <dd>{{ application.created|intldate('long', 'medium') }}</dd>
-                                                                               </dl>
-                                                                               <dl>
-                                                                                       <dt>{% trans %}Updated{% endtrans %}</dt>
-                                                                                       <dd>{{ application.updated|intldate('long', 'medium') }}</dd>
-                                                                               </dl>
-                                                                               <dl>
-                                                                                       <dt>{% trans %}Canceled{% endtrans %}</dt>
-                                                                                       <dd>
-                                                                                               {% if application.canceled is null %}
-                                                                                                       {% trans %}None{% endtrans %}
+                                               <div class="panel">
+                                                       <div class="grid{% if session.applications is defined %}{% if session.applications|length >= 4 %} four{% elseif session.applications|length >= 3 %} three{% elseif session.applications|length >= 2 %} two{% endif %}{% endif %}">
+                                                               {% if session.applications is defined and session.applications %}
+                                                                       {% for application in session.applications %}
+                                                                               <section class="cell">
+                                                                                       <header>
+                                                                                               {% if application.user.id == 1 and application.user.title|slug == 'milonga-raphael' %}
+                                                                                                       <h3><a href="{{ path('rapsys_air_user_milongaraphael') }}">{{ application.user.title }}</a></h3>
                                                                                                {% else %}
-                                                                                                       {{ application.canceled|intldate('long', 'medium') }}
+                                                                                                       <h3><a href="{{ path('rapsys_air_user_view', {'id': application.user.id, 'user': application.user.title|slug}) }}">{{ application.user.title }}</a></h3>
                                                                                                {% endif %}
-                                                                                       </dd>
-                                                                               </dl>
+                                                                                       </header>
+                                                                                       <dl>
+                                                                                               <dt>{% trans %}Score{% endtrans %}</dt>
+                                                                                               <dd>
+                                                                                                       {% if application.score is null %}
+                                                                                                               {% trans %}None{% endtrans %}
+                                                                                                       {% else %}
+                                                                                                               {{ application.score }}</dd>
+                                                                                                       {% endif %}
+                                                                                       </dl>
+                                                                                       <dl>
+                                                                                               <dt>{% trans %}Created{% endtrans %}</dt>
+                                                                                               <dd>{{ application.created|intldate('long', 'medium') }}</dd>
+                                                                                       </dl>
+                                                                                       <dl>
+                                                                                               <dt>{% trans %}Updated{% endtrans %}</dt>
+                                                                                               <dd>{{ application.updated|intldate('long', 'medium') }}</dd>
+                                                                                       </dl>
+                                                                                       <dl>
+                                                                                               <dt>{% trans %}Canceled{% endtrans %}</dt>
+                                                                                               <dd>
+                                                                                                       {% if application.canceled is null %}
+                                                                                                               {% trans %}None{% endtrans %}
+                                                                                                       {% else %}
+                                                                                                               {{ application.canceled|intldate('long', 'medium') }}
+                                                                                                       {% endif %}
+                                                                                               </dd>
+                                                                                       </dl>
+                                                                               </section>
+                                                                       {% endfor %}
+                                                               {% else %}
+                                                                       <section class="cell">
+                                                                               {% trans %}None{% endtrans %}
                                                                        </section>
-                                                               {% endfor %}
-                                                       {% else %}
-                                                               <section class="cell">
-                                                                       {% trans %}None{% endtrans %}
-                                                               </section>
-                                                       {% endif %}
+                                                               {% endif %}
+                                                       </div>
                                                </div>
                                        </section>
                                {% endif %}