diff options
author | Kévin Gomez <contact@kevingomez.fr> | 2015-10-25 14:34:43 +0100 |
---|---|---|
committer | Kévin Gomez <contact@kevingomez.fr> | 2015-11-11 16:27:19 +0100 |
commit | 9b88658c047514a75bc9a9e3578cbeba32c5c5d7 (patch) | |
tree | 9b9348f299d1d4a56a2c5dcff381d3293596afdc | |
parent | 52e423f30761561fa2ad82c708d9fa9186562b1f (diff) | |
download | wallabag-9b88658c047514a75bc9a9e3578cbeba32c5c5d7.tar.gz wallabag-9b88658c047514a75bc9a9e3578cbeba32c5c5d7.tar.zst wallabag-9b88658c047514a75bc9a9e3578cbeba32c5c5d7.zip |
Update baggy theme
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig | 33 | ||||
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig | 4 |
2 files changed, 35 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig index 7a7d6af1..cc797c63 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig | |||
@@ -145,6 +145,39 @@ | |||
145 | {{ form_rest(form.pwd) }} | 145 | {{ form_rest(form.pwd) }} |
146 | </form> | 146 | </form> |
147 | 147 | ||
148 | <h2>{% trans %}Tagging rules{% endtrans %}</h2> | ||
149 | |||
150 | <ul> | ||
151 | {% for tagging_rule in app.user.config.taggingRules %} | ||
152 | <li> | ||
153 | if « {{ tagging_rule.rule }} » then tag as « {{ tagging_rule.tags|join(', ') }} » | ||
154 | <a href="{{ path('delete_tagging_rule', {id: tagging_rule.id}) }}" title="{% trans %}Delete{% endtrans %}" class="tool delete icon-trash icon"></a> | ||
155 | </li> | ||
156 | {% endfor %} | ||
157 | </ul> | ||
158 | |||
159 | <form action="{{ path('config') }}" method="post" {{ form_enctype(form.new_tagging_rule) }}> | ||
160 | {{ form_errors(form.new_tagging_rule) }} | ||
161 | |||
162 | <fieldset class="w500p inline"> | ||
163 | <div class="row"> | ||
164 | {{ form_label(form.new_tagging_rule.rule) }} | ||
165 | {{ form_errors(form.new_tagging_rule.rule) }} | ||
166 | {{ form_widget(form.new_tagging_rule.rule) }} | ||
167 | </div> | ||
168 | </fieldset> | ||
169 | |||
170 | <fieldset class="w500p inline"> | ||
171 | <div class="row"> | ||
172 | {{ form_label(form.new_tagging_rule.tags) }} | ||
173 | {{ form_errors(form.new_tagging_rule.tags) }} | ||
174 | {{ form_widget(form.new_tagging_rule.tags) }} | ||
175 | </div> | ||
176 | </fieldset> | ||
177 | |||
178 | {{ form_rest(form.new_tagging_rule) }} | ||
179 | </form> | ||
180 | |||
148 | {% if is_granted('ROLE_SUPER_ADMIN') %} | 181 | {% if is_granted('ROLE_SUPER_ADMIN') %} |
149 | <h2>{% trans %}Add a user{% endtrans %}</h2> | 182 | <h2>{% trans %}Add a user{% endtrans %}</h2> |
150 | 183 | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig index 1457fe51..810c02fa 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig | |||
@@ -200,8 +200,8 @@ | |||
200 | </div> | 200 | </div> |
201 | </div> | 201 | </div> |
202 | 202 | ||
203 | <form action="{{ path('config') }}#set5" method="post" {{ form_enctype(form.pwd) }}> | 203 | <form action="{{ path('config') }}#set5" method="post" {{ form_enctype(form.new_tagging_rule) }}> |
204 | {{ form_errors(form.pwd) }} | 204 | {{ form_errors(form.new_tagging_rule) }} |
205 | 205 | ||
206 | <div class="row"> | 206 | <div class="row"> |
207 | <div class="input-field col s12"> | 207 | <div class="input-field col s12"> |