diff options
author | Kévin Gomez <contact@kevingomez.fr> | 2015-10-11 17:30:58 +0200 |
---|---|---|
committer | Kévin Gomez <contact@kevingomez.fr> | 2015-11-11 16:23:49 +0100 |
commit | f19f9f62d13c62f18884e8bd0fa67403e8cad8d7 (patch) | |
tree | 016d04e5bcf4c07423b440f8bab3b78086c84d07 /src/Wallabag/CoreBundle/Resources | |
parent | ac9fec610a6485b39c856d9cb7d263ce8c5f1223 (diff) | |
download | wallabag-f19f9f62d13c62f18884e8bd0fa67403e8cad8d7.tar.gz wallabag-f19f9f62d13c62f18884e8bd0fa67403e8cad8d7.tar.zst wallabag-f19f9f62d13c62f18884e8bd0fa67403e8cad8d7.zip |
Add a form to create tagging rules
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig | 31 |
1 files changed, 30 insertions, 1 deletions
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 8f121a2b..d27a8ca6 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 | |||
@@ -15,8 +15,9 @@ | |||
15 | <li class="tab col s3"><a href="#set2">{% trans %}RSS{% endtrans %}</a></li> | 15 | <li class="tab col s3"><a href="#set2">{% trans %}RSS{% endtrans %}</a></li> |
16 | <li class="tab col s3"><a href="#set3">{% trans %}User information{% endtrans %}</a></li> | 16 | <li class="tab col s3"><a href="#set3">{% trans %}User information{% endtrans %}</a></li> |
17 | <li class="tab col s3"><a href="#set4">{% trans %}Password{% endtrans %}</a></li> | 17 | <li class="tab col s3"><a href="#set4">{% trans %}Password{% endtrans %}</a></li> |
18 | <li class="tab col s3"><a href="#set5">{% trans %}Tags{% endtrans %}</a></li> | ||
18 | {% if is_granted('ROLE_SUPER_ADMIN') %} | 19 | {% if is_granted('ROLE_SUPER_ADMIN') %} |
19 | <li class="tab col s3"><a href="#set5">{% trans %}Add a user{% endtrans %}</a></li> | 20 | <li class="tab col s3"><a href="#set6">{% trans %}Add a user{% endtrans %}</a></li> |
20 | {% endif %} | 21 | {% endif %} |
21 | </ul> | 22 | </ul> |
22 | </div> | 23 | </div> |
@@ -183,6 +184,34 @@ | |||
183 | </form> | 184 | </form> |
184 | </div> | 185 | </div> |
185 | 186 | ||
187 | <div id="set5" class="col s12"> | ||
188 | <form action="{{ path('config') }}#set5" method="post" {{ form_enctype(form.pwd) }}> | ||
189 | {{ form_errors(form.pwd) }} | ||
190 | |||
191 | <div class="row"> | ||
192 | <div class="input-field col s12"> | ||
193 | {{ form_label(form.new_tagging_rule.rule) }} | ||
194 | {{ form_errors(form.new_tagging_rule.rule) }} | ||
195 | {{ form_widget(form.new_tagging_rule.rule) }} | ||
196 | </div> | ||
197 | </div> | ||
198 | |||
199 | <div class="row"> | ||
200 | <div class="input-field col s12"> | ||
201 | {{ form_label(form.new_tagging_rule.tags) }} | ||
202 | {{ form_errors(form.new_tagging_rule.tags) }} | ||
203 | {{ form_widget(form.new_tagging_rule.tags) }} | ||
204 | </div> | ||
205 | </div> | ||
206 | |||
207 | <div class="hidden">{{ form_rest(form.new_tagging_rule) }}</div> | ||
208 | <button class="btn waves-effect waves-light" type="submit" name="action"> | ||
209 | {% trans %}Save{% endtrans %} | ||
210 | </button> | ||
211 | |||
212 | </form> | ||
213 | </div> | ||
214 | |||
186 | {% if is_granted('ROLE_SUPER_ADMIN') %} | 215 | {% if is_granted('ROLE_SUPER_ADMIN') %} |
187 | <div id="set5" class="col s12"> | 216 | <div id="set5" class="col s12"> |
188 | {{ form_start(form.new_user) }} | 217 | {{ form_start(form.new_user) }} |