index.html.twig 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. {% extends "MuzichHomeBundle::layout.html.twig" %}
  2. {% block title %}Réseau{% endblock %}
  3. {% block content %}
  4. {#
  5. <div id="element_add_box" style="display: none;">
  6. <a href="#" id="element_add_close_link" class="button">
  7. &lt;&lt; {{ 'home.add_element_box.close'|trans({}, 'navigationui') }}
  8. </a>
  9. <form novalidate name="{{ add_form_name }}" action="{{ path('element_add') }}" method="post" {{ form_enctype(add_form) }}>
  10. {% include "MuzichCoreBundle:Element:form.add.html.twig" with {
  11. 'form' : add_form,
  12. 'form_name' : add_form_name
  13. } %}
  14. <input type="submit" class="button" />
  15. <img class="tag_loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading" />
  16. </form>
  17. </div>
  18. #}
  19. <div id="element_add_box" style="display: none;">
  20. <a href="#" id="element_add_close_link" class="button">
  21. &lt;&lt; {{ 'home.add_element_box.close'|trans({}, 'navigationui') }}
  22. </a>
  23. <form novalidate name="{{ add_form_name }}"
  24. {% if app.environment != 'test' %}
  25. action="{{ path('element_retrieve_api_datas') }}" method="post" {{ form_enctype(add_form) }}
  26. {% else %}
  27. action="{{ path('element_add') }}" method="post" {{ form_enctype(add_form) }}
  28. {% endif %}
  29. >
  30. {% include "MuzichCoreBundle:Element:form.add.html.twig" with {
  31. 'form' : add_form,
  32. 'form_name' : add_form_name
  33. } %}
  34. {% if from_url %}
  35. <script type="text/javascript">
  36. $(document).ready(function(){
  37. $('#element_add_box').slideDown("slow");
  38. $('#element_add_link').hide();
  39. $('form[name="search"]').slideUp();
  40. $('img#form_add_loader').show();
  41. $('input#element_add_url').val("{{ from_url }}");
  42. $('form[name="add"]').submit();
  43. });
  44. </script>
  45. {% endif %}
  46. </form>
  47. </div>
  48. <a href="#" id="element_add_link" class="button">
  49. {{ 'home.add_element'|trans({}, 'navigationui') }} &gt;&gt;
  50. </a>
  51. <div id="added_element_to_group" style="display: none;">
  52. <img class="loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading" />
  53. <p class="help">
  54. {{ 'element_add.added_to_group.sentence'|trans({}, 'userui') }}
  55. </p>
  56. <ul id="groups_to_add_element"></ul>
  57. <p class="cancel">
  58. <a href="" class="cancel">
  59. {{ 'element_add.added_to_group.nothanks'|trans({}, 'userui') }}
  60. </a>
  61. </p>
  62. </div>
  63. <form name="{{ search_form_name }}" action="{{ path('search_elements') }}" method="post" {{ form_enctype(search_form) }}>
  64. {% include "MuzichCoreBundle:SearchElement:form.html.twig" with {
  65. 'form_name' : search_form_name,
  66. 'search_tags' : search_tags_id,
  67. 'display_specials_buttons': true
  68. } %}
  69. <input class="main button" type="submit" value="{{ 'filter.submit'|trans({}, 'userui') }}"/>
  70. </form>
  71. <div class="display_more_elements" style="display: none;">
  72. <span></span>
  73. </div>
  74. <div class="elements_loader_div">
  75. <img class="elements_new_loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading" />
  76. </div>
  77. {% include "MuzichCoreBundle:SearchElement:default.html.twig" with {
  78. 'noelements_filter' : true
  79. }%}
  80. {% include "MuzichCoreBundle:SearchElement:more_button.html.twig" with {
  81. 'display_more_button' : true,
  82. 'elements_length' : elements|length,
  83. 'more_path' : 'search_elements'
  84. }%}
  85. {% endblock %}