]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/views/location/index.html.twig
Remove useless rapsys_air_location_view link
[airbundle] / Resources / views / location / index.html.twig
index 5863c760ec022bf8422aea1eaf324833a1d5f29e..2ecfaa76e0d16ffab9cfa189447ab0ec114e4904 100644 (file)
@@ -1,9 +1,8 @@
 {% extends '@RapsysAir/body.html.twig' %}
 {% block content %}
 {% extends '@RapsysAir/body.html.twig' %}
 {% block content %}
-<section id="dashboard">
-TODO:
-       <h2>{% trans %}Dashboard{% endtrans %}</h2>
-       <div class="panel">
+<section id="location">
+       <h2>{% trans %}Locations{% endtrans %}</h2>
+       <section class="panel">
                {% if calendar is defined and calendar %}
                        <table class="grid">
                                <tbody>
                {% if calendar is defined and calendar %}
                        <table class="grid">
                                <tbody>
@@ -15,7 +14,7 @@ TODO:
                                                                        <ul>
                                                                                {% for session in day.sessions %}
                                                                                        <li class="{{ ['session']|merge(session.class)|join(' ') }}">
                                                                        <ul>
                                                                                {% for session in day.sessions %}
                                                                                        <li class="{{ ['session']|merge(session.class)|join(' ') }}">
-                                                                                               <a href="{{ path('rapsys_air_session', {'id': session.id}) }}" title="{{ session.title }}">{{ session.title }}</a>
+                                                                                               <a href="{{ path('rapsys_air_session_view', {'id': session.id}) }}" title="{{ session.title }}">{{ session.title }}</a>
                                                                                        </li>
                                                                                {% endfor %}
                                                                        </ul>
                                                                                        </li>
                                                                                {% endfor %}
                                                                        </ul>
@@ -30,29 +29,8 @@ TODO:
                                </tbody>
                        </table>
                {% endif %}
                                </tbody>
                        </table>
                {% endif %}
-               <div>
-               {{ form_start(form) }}
-
-                       <header>{{ form_errors(form) }}</header>
-
-                       <section>
-                               {{ form_row(form.location) }}
-
-                               {{ form_row(form.date) }}
-
-                               {{ form_row(form.slot) }}
-                       </section>
-
-                       {{ form_row(form.submit) }}
-
-                       {# Render CSRF token etc .#}
-                       <footer style="display:none">
-                               {{ form_rest(form) }}
-                       </footer>
-
-               {{ form_end(form) }}
-               </div>
-       </div>
+               {{ include('@RapsysAir/form/_toolbox.html.twig') }}
+       </section>
        {# dump(calendar) #}
 </section>
 {% endblock %}
        {# dump(calendar) #}
 </section>
 {% endblock %}