index.html.twig 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {% extends "MuzichHomeBundle::layout.html.twig" %}
  2. {% block title %}Réseau{% endblock %}
  3. {% block content %}
  4. <div id="element_add_box" style="display: none;">
  5. <a href="#" id="element_add_close_link" class="button">
  6. &lt;&lt; {{ 'home.add_element_box.close'|trans({}, 'navigationui') }}
  7. </a>
  8. <form novalidate name="{{ add_form_name }}" action="{{ path('element_add') }}" method="post" {{ form_enctype(add_form) }}>
  9. {% include "MuzichCoreBundle:Element:form.add.html.twig" with {
  10. 'form' : add_form,
  11. 'form_name' : add_form_name
  12. } %}
  13. <input type="submit" class="button" />
  14. <img class="tag_loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading" />
  15. </form>
  16. </div>
  17. <a href="#" id="element_add_link" class="button">
  18. {{ 'home.add_element'|trans({}, 'navigationui') }} &gt;&gt;
  19. </a>
  20. <form name="{{ search_form_name }}" action="{{ path('search_elements') }}" method="post" {{ form_enctype(search_form) }}>
  21. {% include "MuzichCoreBundle:SearchElement:form.html.twig" with {
  22. 'form_name' : search_form_name,
  23. 'search_tags' : search_tags_id,
  24. 'display_specials_buttons': true
  25. } %}
  26. <input class="main button" type="submit" value="{{ 'filter.submit'|trans({}, 'userui') }}"/>
  27. </form>
  28. {% include "MuzichCoreBundle:SearchElement:default.html.twig" with {'noelements_filter' : true }%}
  29. <div class="elements_loader_div">
  30. <img class="elements_more_loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading" />
  31. </div>
  32. {% if more_count is defined %}
  33. {% if elements|length %}
  34. <span class="elements_more">
  35. <a href="{{ path('search_elements') }}" class="elements_more button">
  36. {{ 'more'|trans({}, 'userui') }}
  37. </a>
  38. </span>
  39. {% endif %}
  40. {% endif %}
  41. {% endblock %}