mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
145 lines
5.6 KiB
Twig
145 lines
5.6 KiB
Twig
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
<head>
|
|
<title>{{ installation.name }} - {% block title %}{% endblock %}</title>
|
|
|
|
{% stylesheets output="css/all.css" filter="cssrewrite"
|
|
"bundles/chillmain/stylesheets/scratch.css"
|
|
"bundles/chillmain/css/chillmain.css"
|
|
"bundles/chillmain/select2.css"
|
|
"bundles/chillmain/css/pikaday.css" %}
|
|
<link rel="stylesheet" href="{{ asset_url }}"/>
|
|
{% endstylesheets %}
|
|
|
|
{% block css%}<!-- nothing added to css -->{% endblock %}
|
|
|
|
{% javascripts output="js/libs.js"
|
|
"bundles/chillmain/js/modernizr-2.6.2.min.js"
|
|
"bundles/chillmain/js/jquery-2.0.2.min.js"
|
|
"bundles/chillmain/moment.js"
|
|
"bundles/chillmain/pikaday.js"
|
|
"bundles/chillmain/select2.js"
|
|
"bundles/chillmain/plugins/pikaday.jquery.js" %}
|
|
<script src="{{ asset_url }}" type="text/javascript"></script>
|
|
{% endjavascripts %}
|
|
</head>
|
|
|
|
<body>
|
|
<header class="navigation container">
|
|
<div class="nav grid-2">
|
|
<ul id="navigation-menu">
|
|
<li class="nav-link nav-title"><a href="{{ path('chill_main_homepage') }}">{{ installation.name }}</a>
|
|
</ul>
|
|
</div>
|
|
<div class="grid-4 navigation-search">
|
|
<form action="{{ path('chill_person_search') }}" method="get">
|
|
<input name="q" type="search" placeholder="{{ 'Search a person'|trans }}" />
|
|
<button type="submit" class="sc-button white border"><i class="fa fa-search"></i></button>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="nav grid-6 text-right">
|
|
<ul id="navigation-menu">
|
|
|
|
|
|
{{ chill_menu('section', {
|
|
'layout': 'ChillMainBundle::Menu/section.html.twig',
|
|
}) }}
|
|
|
|
{{ chill_menu('user', {
|
|
'layout': 'ChillMainBundle::Menu/user.html.twig',
|
|
}) }}
|
|
|
|
{% if available_languages|length == 1 %}
|
|
<li class="nav-link">
|
|
<a href="">{{ available_languages[0] | upper }}</a>
|
|
</li>
|
|
{% else %}
|
|
<li class="nav-link more"><a href="">{{ app.request.locale | upper }}</a>
|
|
<ul class="submenu">
|
|
{% for lang in available_languages %}
|
|
<li {% if lang == app.request.locale %}class="active"{% endif %}>
|
|
<a href="{{ path(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale' : lang})) }}">{{ lang | upper }}</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
</header>
|
|
{% block layout_content %}
|
|
<div class="container content">
|
|
{# Flash messages ! #}
|
|
<div class="container">
|
|
{% for flashMessage in app.session.flashbag.get('success') %}
|
|
<div class="grid-8 centered success">
|
|
<span>
|
|
{{ flashMessage|raw }}
|
|
</span>
|
|
</div>
|
|
{% endfor %}
|
|
|
|
{% for flashMessage in app.session.flashbag.get('danger') %}
|
|
<div class="grid-8 centered error">
|
|
<span>
|
|
{{ flashMessage|raw }}
|
|
</span>
|
|
</div>
|
|
{% endfor %}
|
|
|
|
{% for flashMessage in app.session.flashbag.get('info') %}
|
|
<div class="grid-8 centered notice">
|
|
<span>
|
|
{{ flashMessage|raw }}
|
|
</span>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
{% block content %}
|
|
|
|
<div class="container">
|
|
<div class="grid-8 centered">
|
|
<h2>{{ 'Search a person'|trans }}</h2>
|
|
|
|
<form action="{{ path('chill_person_search') }}" method="get">
|
|
<input name="q" type="search" placeholder="{{ 'Person name'|trans }}" />
|
|
<center>
|
|
<button type="submit" class="sc-button orange"><i class="fa fa-search"></i> {{ 'Search a person'|trans }}</button>
|
|
</center>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div style="padding-top:2em; padding-bottom:2em;">
|
|
{{ chill_menu('homepage', {
|
|
'layout': 'ChillMainBundle::Menu/homepage.html.twig',
|
|
}) }}
|
|
|
|
{% endblock %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
<footer class="footer">
|
|
<p>License AGPL</p>
|
|
</footer>
|
|
|
|
<script type="text/javascript">
|
|
$('.datepicker').pikaday({
|
|
format: "D-M-YYYY",
|
|
i18n: {
|
|
previousMonth : 'Mois précédent',
|
|
nextMonth : 'Mois suivant',
|
|
months : ['Janvier','Février','Mars','Avril','Mai','Juin','Juillet','Août','Septembre','Octobre','Novembre','Décembre'],
|
|
weekdays : ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'],
|
|
weekdaysShort : ['Dim','Lun','Mar','Mer','Jeu','Ven','Sam']
|
|
}
|
|
});
|
|
|
|
$('.select2').select2();
|
|
</script>
|
|
|
|
</body>
|
|
</html> |