12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- {% extends "MuzichHomeBundle::layout.html.twig" %}
-
- {% block title %}{{ 'title.home'|trans({}, 'userui') }}{% endblock %}
- {% block mainbox_classes %}mainbox_margintop mainbox_nopadding{% endblock %}
-
- {% block content %}
-
- {% include 'MuzichCoreBundle:Component:element_add_buttons.html.twig' %}
- {% include 'MuzichHomeBundle:Component:filter_menu.html.twig' %}
-
- {% include 'MuzichCoreBundle:Component:element_add_box.html.twig' with {
- 'box_title': 'home.add_element_box.title'|trans({}, 'navigationui')
- } %}
-
- {% if app.user.wantSeeHelp('home') %}
- {% include 'MuzichCoreBundle:HelpTour:home.html.twig' %}
- {% endif %}
-
- {# TODO: Cette partie de javascript ne devra plus exister après la réecriture du code javascript #}
- {% if from_url is defined %}
- {% if from_url %}
- <script type="text/javascript">
- $(document).ready(function(){
- $('#element_add_box').slideDown("slow");
- $('#element_add_link').hide();
- $('form[name="search"]').slideUp();
- $('img#form_add_loader').show();
- $('input#element_add_url').val("{{ from_url }}");
- $('form[name="add"]').submit();
- });
- </script>
- {% endif %}
- {% endif %}
-
- <div class="top_tools" {% if search_tags_id|length == 0 %}style="display: none;"{% endif %}>
-
- <div class="search_tools">
- <form name="{{ search_form_name }}" action="{{ path('search_elements', {'context':'home'}) }}" method="post" {{ form_enctype(search_form) }}>
-
- {% include "MuzichCoreBundle:SearchElement:form.html.twig" with {
- 'form_name' : search_form_name,
- 'search_tags' : search_tags_id
- } %}
-
- <input class="main button" type="submit" value="{{ 'filter.submit'|trans({}, 'userui') }}"/>
-
- </form>
- </div>
-
- </div>
-
- <div id="elements_list">
- {% include "MuzichCoreBundle:SearchElement:default.html.twig" with {
- 'noelements_filter' : true,
- 'display_new_elements' : true,
- 'display_autoplay' : true,
- 'autoplay_context' : 'home'
- }%}
- </div>
-
- {% if elements|length %}
- {% include "MuzichCoreBundle:SearchElement:more_button.html.twig" with {
- 'more_path' : path('search_elements', {'context':'home'})
- }%}
- {% endif %}
-
- {% endblock %}
|