wallabag/templates/bundles/CraueConfigBundle/Settings/modify.html.twig

41 lines
1.7 KiB
Twig
Raw Normal View History

{% extends "@WallabagCore/layout.html.twig" %}
2016-01-21 08:53:09 +01:00
{% block title %}{{ 'menu.left.internal_settings'|trans }}{% endblock %}
2016-01-21 08:53:09 +01:00
{% block content %}
<div class="row">
<div class="col s12">
<div class="card-panel settings">
{{ form_start(form, {'attr': {'class': 'craue_config_settings_modify'}}) }}
{{ form_errors(form) }}
<div class="row">
<div class="div_tabs col s12">
<ul class="tabs">
2022-05-03 23:28:20 +02:00
{% for section in sections|craue_sortSections %}
<li class="tab col s12 m6 l3"><a href="#set-{{ section }}">{{ section|trans({}, 'CraueConfigBundle') }}</a></li>
2016-01-21 08:53:09 +01:00
{% endfor %}
</ul>
</div>
2022-05-03 23:28:20 +02:00
{% for section in sections|craue_sortSections %}
2016-01-21 08:53:09 +01:00
<div id="set-{{ section }}" class="col s12">
2017-05-12 16:33:12 +02:00
{% for setting in form.settings if setting.vars.value.section == section %}
{{ form_row(setting.value, {
2022-05-03 23:28:20 +02:00
'label': setting.vars.value.name|trans({}, 'CraueConfigBundle'),
2017-05-12 16:33:12 +02:00
}) }}
2016-01-21 08:53:09 +01:00
{% endfor %}
</div>
{% endfor %}
</div>
<button class="btn waves-effect waves-light" type="submit" name="action">
2022-05-03 23:28:20 +02:00
{{ 'modify_settings'|trans({}, 'CraueConfigBundle') }}
2016-01-21 08:53:09 +01:00
</button>
2017-06-12 10:44:08 +02:00
{{ form_widget(form._token) }}
2016-01-21 08:53:09 +01:00
</div>
</div>
</div>
{% endblock %}