2016-01-21 07:53:09 +00:00
|
|
|
{% extends "WallabagCoreBundle::layout.html.twig" %}
|
|
|
|
|
2016-10-17 07:14:05 +00:00
|
|
|
{% block title %}{{ 'menu.left.internal_settings'|trans }}{% endblock %}
|
2016-01-21 07:53:09 +00: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">
|
|
|
|
{% for section in sections | craue_sortSections %}
|
2016-10-15 17:26:38 +00:00
|
|
|
<li class="tab col s12 m6 l3"><a href="#set-{{ section }}">{{ section | trans({}, 'CraueConfigBundle') }}</a></li>
|
2016-01-21 07:53:09 +00:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% for section in sections | craue_sortSections %}
|
|
|
|
<div id="set-{{ section }}" class="col s12">
|
2017-05-12 14:33:12 +00:00
|
|
|
{% for setting in form.settings if setting.vars.value.section == section %}
|
|
|
|
{{ form_row(setting.value, {
|
|
|
|
'label': setting.vars.value.name | trans({}, 'CraueConfigBundle'),
|
|
|
|
}) }}
|
2016-01-21 07:53:09 +00:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<button class="btn waves-effect waves-light" type="submit" name="action">
|
|
|
|
{{ 'modify_settings' | trans({}, 'CraueConfigBundle') }}
|
|
|
|
</button>
|
|
|
|
|
|
|
|
{{ form_rest(form) }}
|
|
|
|
{{ form_end(form) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|