2021-11-27 08:31:53 +09:00
|
|
|
{% extends 'base.html.twig' %}
|
|
|
|
|
2021-11-30 02:01:08 +09:00
|
|
|
{% block stylesheets %}
|
|
|
|
{{ parent() }}
|
2022-02-08 23:12:59 +09:00
|
|
|
<link rel="stylesheet" href="{{ asset('assets/default_theme/pages/feeds.css') }}" type="text/css">
|
2021-11-30 02:01:08 +09:00
|
|
|
{% endblock stylesheets %}
|
|
|
|
|
2022-01-22 04:51:13 +09:00
|
|
|
{% macro edit_feeds_form_row(child) %}
|
|
|
|
<div class="form-row">
|
|
|
|
{{ form_label(child) }}
|
|
|
|
{{ form_widget(child) }}
|
|
|
|
</div>
|
|
|
|
{% endmacro %}
|
|
|
|
|
2021-11-27 08:31:53 +09:00
|
|
|
{% block body %}
|
2022-01-20 08:54:45 +09:00
|
|
|
<div class="frame-section">
|
2021-12-01 21:44:56 +09:00
|
|
|
<form class="section-form" action="{{ path('edit_feeds') }}" method="post">
|
2022-01-22 04:51:13 +09:00
|
|
|
<h1 class="frame-section-title">{{ "Edit feed navigation links" | trans }}</h1>
|
2021-11-30 02:01:08 +09:00
|
|
|
{# Since the form is not separated into individual groups, this happened #}
|
|
|
|
{{ form_start(edit_feeds) }}
|
2022-01-05 04:05:06 +09:00
|
|
|
{{ form_errors(edit_feeds) }}
|
2022-01-22 04:51:13 +09: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-05 04:05:06 +09:00
|
|
|
{% elseif 'row_title' in child.vars.block_prefixes %}
|
2022-01-22 04:51:13 +09:00
|
|
|
{{ _self.edit_feeds_form_row(child) }}
|
2022-01-05 04:05:06 +09:00
|
|
|
{% elseif 'row_order' in child.vars.block_prefixes %}
|
2022-01-22 04:51:13 +09:00
|
|
|
{{ _self.edit_feeds_form_row(child) }}
|
2022-01-05 04:05:06 +09:00
|
|
|
{% elseif 'row_remove' in child.vars.block_prefixes %}
|
2022-01-22 04:51:13 +09: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-30 02:01:08 +09:00
|
|
|
{{ form_end(edit_feeds) }}
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
2021-11-27 08:31:53 +09:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|