index.html.twig 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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 is defined %}
  35. {% if from_url %}
  36. <script type="text/javascript">
  37. $(document).ready(function(){
  38. $('#element_add_box').slideDown("slow");
  39. $('#element_add_link').hide();
  40. $('form[name="search"]').slideUp();
  41. $('img#form_add_loader').show();
  42. $('input#element_add_url').val("{{ from_url }}");
  43. $('form[name="add"]').submit();
  44. });
  45. </script>
  46. {% endif %}
  47. {% endif %}
  48. </form>
  49. </div>
  50. <a href="#" id="element_add_link" class="button">
  51. {{ 'home.add_element'|trans({}, 'navigationui') }} &gt;&gt;
  52. </a>
  53. <div id="added_element_to_group" style="display: none;">
  54. <img class="loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading" />
  55. <p class="help">
  56. {{ 'element_add.added_to_group.sentence'|trans({}, 'userui') }}
  57. </p>
  58. <ul id="groups_to_add_element"></ul>
  59. <p class="cancel">
  60. <a href="" class="cancel">
  61. {{ 'element_add.added_to_group.nothanks'|trans({}, 'userui') }}
  62. </a>
  63. </p>
  64. </div>
  65. <form name="{{ search_form_name }}" action="{{ path('search_elements') }}" method="post" {{ form_enctype(search_form) }}>
  66. {% include "MuzichCoreBundle:SearchElement:form.html.twig" with {
  67. 'form_name' : search_form_name,
  68. 'search_tags' : search_tags_id,
  69. 'display_specials_buttons': true
  70. } %}
  71. <input class="main button" type="submit" value="{{ 'filter.submit'|trans({}, 'userui') }}"/>
  72. <a href="javascript:void(0);" class="button" id="autoplay_launch">
  73. {{ 'elements.autoplay.launch'|trans({}, 'elements') }}
  74. </a>
  75. </form>
  76. <div class="display_more_elements" style="display: none;">
  77. <span></span>
  78. </div>
  79. <div class="elements_loader_div">
  80. <img class="elements_new_loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading" />
  81. </div>
  82. {% include "MuzichCoreBundle:SearchElement:default.html.twig" with {
  83. 'noelements_filter' : true
  84. }%}
  85. {% include "MuzichCoreBundle:SearchElement:more_button.html.twig" with {
  86. 'display_more_button' : true,
  87. 'elements_length' : elements|length,
  88. 'more_path' : 'search_elements'
  89. }%}
  90. {% endblock %}