]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/body.html.twig
Add session_edit contextual form
[airbundle] / Resources / views / body.html.twig
1 {% extends '@RapsysAir/base.html.twig' %}
2 {% block metas %}
3 <meta charset="UTF-8" />
4 {% endblock %}
5 {% block stylesheets %}
6 <meta name="viewport" content="width=device-width, initial-scale=1" />
7 <link rel="shortcut icon" type="image/x-icon" href="{{ asset(site_ico) }}" />
8 <link rel="icon" type="image/svg+xml" href="{{ asset(site_svg) }}" />
9 {% for size, icon in site_png %}
10 {# Apple #}
11 {% if size in [152, 167, 180] %}
12 {% if size == 180 %}
13 <link rel="apple-touch-icon" href="{{ asset(icon) }}" />
14 {% endif %}
15 <link rel="apple-touch-icon" sizes="{{ size }}x{{ size }}" href="{{ asset(icon) }}" />
16 {# Windows #}
17 {% elseif size in [70, 150, 310] %}
18 <meta name="msapplication-square{{ size }}x{{ size }}logo" content="{{ asset(icon) }}" />
19 {# Others #}
20 {% else %}
21 <link rel="icon" type="image/png" sizes="{{ size }}x{{ size }}" href="{{ asset(icon) }}" />
22 {% endif %}
23 {% endfor %}
24 {# stylesheet '//fonts.googleapis.com/css?family=Irish+Grover' '//fonts.googleapis.com/css?family=La+Belle+Aurore' '@RapsysAirBundle/Resources/public/css/{reset,screen}.css' #}
25 {% stopwatch 'stylesheet' %}
26 {% stylesheet '@rapsys_air_bundle/css/{reset,droidsans,screen}.css' %}
27 <link rel="stylesheet" type="text/css" href="{{ asset_url }}" />
28 {% endstylesheet %}
29 {% endstopwatch %}
30 {% endblock %}
31 {% block javascripts %}
32 {% stopwatch 'javascript' %}
33 {#{% javascript '@RapsysAir/js/*.js' %}
34 <script type="text/javascript" src="{{ asset_url }}"></script>
35 {% endjavascript %}#}
36 {% endstopwatch %}
37 {% endblock %}
38 {% block title %}{{ title }}{% endblock %}
39 {% block body %}
40 {% block header %}
41 <header id="header">
42 {% block header_title %}<h1><a href="{{ site_url }}" title="{{ site_title }}"><img src="{{ asset(site_logo) }}" alt="{{ site_title }}" width="171" height="32" /></a></h1>{% endblock %}
43 {% block header_nav %}
44 <nav>
45 <h2>{% trans %}Navigation{% endtrans %}</h2>
46 <a href="{{ path('rapsys_air_session') }}">{% trans %}Sessions{% endtrans %}</a>
47 <a href="{{ path('rapsys_air_user') }}">{% trans %}Users{% endtrans %}</a>
48 <a href="{{ path('rapsys_air_contact') }}">{% trans %}Contact{% endtrans %}</a>
49 <a href="{{ path('rapsys_air_regulation') }}">{% trans %}Regulation{% endtrans %}</a>
50 {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
51 <a href="{{ path('rapsys_user_logout') }}">{% trans %}Logout{% endtrans %}</a>
52 {% else %}
53 <a href="{{ path('rapsys_user_login') }}">{% trans %}Login{% endtrans %}</a>
54 <a href="{{ path('rapsys_user_register') }}">{% trans %}Register{% endtrans %}</a>
55 {% endif %}
56 </nav>
57 {% endblock %}
58 {#
59 {% block site_subtitle %}{% endblock %}
60 {% block site_tagline %}
61 {% if tags is defined and tags %}
62 <ul>
63 {% for id, tag in tags %}
64 <li><h2><a href="#{{id}}">{{tag}}</a></h2></li>
65 {% endfor %}
66 </ul>
67 {% endif %}
68 {% endblock %}
69 #}
70 </header>
71 {% endblock %}
72 {% block message %}
73 {# pass an array argument to get the messages of those types (['warning', 'error']) #}
74 {% for label, messages in app.flashes %}
75 {% if messages %}
76 <div class="message {{label}}">
77 <ul>
78 {% for message in messages %}
79 <li>{{ message }}</li>
80 {% endfor %}
81 </ul>
82 </div>
83 {% endif %}
84 {% endfor %}
85 {% endblock %}
86 {#
87 {% block sidebar %}<aside id="sidebar"></aside>{% endblock %}
88 #}
89 {% block content %}
90 <section id="content">
91 <h2><a href="{{ path('rapsys_air_homepage') }}">{{ section }}</a></h2>
92 <p>{% trans %}Outdoor space reservation system{% endtrans %}</p>
93 </section>
94 {% endblock %}
95 {% block footer %}
96 <footer id="footer">
97 <span>&nbsp;</span>
98 <details><summary>{{ copy_long }}</summary><span>{{ copy_short }}</span></details>
99 <span>&nbsp;</span>
100 </footer>
101 {% endblock %}
102 {% endblock %}