2021-11-26 23:31:53 +00:00
|
|
|
{% extends 'base.html.twig' %}
|
|
|
|
|
2021-11-29 17:01:08 +00:00
|
|
|
{% block stylesheets %}
|
|
|
|
{{ parent() }}
|
|
|
|
<link rel="stylesheet" href="{{ asset('assets/default_theme/css/pages/feeds.css') }}" type="text/css">
|
|
|
|
{% endblock stylesheets %}
|
|
|
|
|
2022-01-21 19:51:13 +00:00
|
|
|
{% macro edit_feeds_form_row(child) %}
|
|
|
|
<div class="form-row">
|
|
|
|
{{ form_label(child) }}
|
|
|
|
{{ form_widget(child) }}
|
|
|
|
</div>
|
|
|
|
{% endmacro %}
|
|
|
|
|
2021-11-26 23:31:53 +00:00
|
|
|
{% block body %}
|
2022-01-19 23:54:45 +00:00
|
|
|
<div class="frame-section">
|
2021-12-01 12:44:56 +00:00
|
|
|
<form class="section-form" action="{{ path('edit_feeds') }}" method="post">
|
2022-01-21 19:51:13 +00:00
|
|
|
<h1 class="frame-section-title">{{ "Edit feed navigation links" | trans }}</h1>
|
2021-11-29 17:01:08 +00:00
|
|
|
{# Since the form is not separated into individual groups, this happened #}
|
|
|
|
{{ form_start(edit_feeds) }}
|
2022-01-04 19:05:06 +00:00
|
|
|
{{ form_errors(edit_feeds) }}
|
2022-01-21 19:51:13 +00:00
|
|
|
<section class="container-grid">
|
|
|
|
{% for child in edit_feeds.children %}
|
|
|
|
{% if 'row_url' in child.vars.block_prefixes %}
|
|
|
|
<div class="frame-section frame-section-padding">
|
|
|
|
{{ _self.edit_feeds_form_row(child) }}
|
2022-01-04 19:05:06 +00:00
|
|
|
{% elseif 'row_title' in child.vars.block_prefixes %}
|
2022-01-21 19:51:13 +00:00
|
|
|
{{ _self.edit_feeds_form_row(child) }}
|
2022-01-04 19:05:06 +00:00
|
|
|
{% elseif 'row_order' in child.vars.block_prefixes %}
|
2022-01-21 19:51:13 +00:00
|
|
|
{{ _self.edit_feeds_form_row(child) }}
|
2022-01-04 19:05:06 +00:00
|
|
|
{% elseif 'row_remove' in child.vars.block_prefixes %}
|
2022-01-21 19:51:13 +00:00
|
|
|
{{ _self.edit_feeds_form_row(child) }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<div class="form-row">
|
|
|
|
{{ form_row(edit_feeds.update_exisiting) }}
|
|
|
|
{{ form_row(edit_feeds.reset) }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
<section class="frame-section frame-section-padding">
|
|
|
|
<h2>{% trans %}Add a new feed{% endtrans %}</h2>
|
|
|
|
{{ form_rest(edit_feeds) }}
|
|
|
|
</section>
|
2021-11-29 17:01:08 +00:00
|
|
|
{{ form_end(edit_feeds) }}
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
2021-11-26 23:31:53 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|