edit_feeds.html.twig 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {% extends 'base.html.twig' %}
  2. {% block stylesheets %}
  3. {{ parent() }}
  4. <link rel="stylesheet" href="{{ asset('assets/default_theme/css/pages/feeds.css') }}" type="text/css">
  5. {% endblock stylesheets %}
  6. {% block body %}
  7. <div class="section-widget">
  8. <form class="section-form" action="{{ path('edit_feeds') }}" method="post">
  9. <fieldset>
  10. <legend class="section-form-legend">{{ "Edit feed navigation links" | trans }}</legend>
  11. {# Since the form is not separated into individual groups, this happened #}
  12. {{ form_start(edit_feeds) }}
  13. {% for child in edit_feeds.children %}
  14. {% if 'row_url' in child.vars.block_prefixes %}
  15. <div class="section-widget section-padding">
  16. {{ form_label(child) }}
  17. {{ form_widget(child) }}
  18. {% elseif 'row_title' in child.vars.block_prefixes %}
  19. {{ form_label(child) }}
  20. {{ form_widget(child) }}
  21. {% elseif 'row_order' in child.vars.block_prefixes %}
  22. {{ form_label(child) }}
  23. {{ form_widget(child) }}
  24. {% elseif 'row_remove' in child.vars.block_prefixes %}
  25. {{ form_label(child) }}
  26. {{ form_widget(child) }}
  27. </div>
  28. {% endif %}
  29. {% endfor %}
  30. {{ form_end(edit_feeds) }}
  31. </fieldset>
  32. </form>
  33. </div>
  34. {% endblock %}