]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Update baggy theme
authorKévin Gomez <contact@kevingomez.fr>
Sun, 25 Oct 2015 13:34:43 +0000 (14:34 +0100)
committerKévin Gomez <contact@kevingomez.fr>
Wed, 11 Nov 2015 15:27:19 +0000 (16:27 +0100)
src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig
src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig

index 7a7d6af1f359d66529b12b6b36af80983b18a3a5..cc797c6323a5841dcd02bde55ca338011ebd23de 100644 (file)
         {{ form_rest(form.pwd) }}
     </form>
 
+    <h2>{% trans %}Tagging rules{% endtrans %}</h2>
+
+    <ul>
+        {% for tagging_rule in app.user.config.taggingRules %}
+        <li>
+            if « {{ tagging_rule.rule }} » then tag as « {{ tagging_rule.tags|join(', ') }} »
+            <a href="{{ path('delete_tagging_rule', {id: tagging_rule.id}) }}" title="{% trans %}Delete{% endtrans %}" class="tool delete icon-trash icon"></a>
+        </li>
+        {% endfor %}
+    </ul>
+
+    <form action="{{ path('config') }}" method="post" {{ form_enctype(form.new_tagging_rule) }}>
+        {{ form_errors(form.new_tagging_rule) }}
+
+        <fieldset class="w500p inline">
+            <div class="row">
+                {{ form_label(form.new_tagging_rule.rule) }}
+                {{ form_errors(form.new_tagging_rule.rule) }}
+                {{ form_widget(form.new_tagging_rule.rule) }}
+            </div>
+        </fieldset>
+
+        <fieldset class="w500p inline">
+            <div class="row">
+                {{ form_label(form.new_tagging_rule.tags) }}
+                {{ form_errors(form.new_tagging_rule.tags) }}
+                {{ form_widget(form.new_tagging_rule.tags) }}
+            </div>
+        </fieldset>
+
+        {{ form_rest(form.new_tagging_rule) }}
+    </form>
+
     {% if is_granted('ROLE_SUPER_ADMIN') %}
     <h2>{% trans %}Add a user{% endtrans %}</h2>
 
index 1457fe51eb486eaca51c2c7192a66880e0b45e7d..810c02fa178a4aec0b26ccec963b3d1b04bc154c 100644 (file)
                             </div>
                         </div>
 
-                        <form action="{{ path('config') }}#set5" method="post" {{ form_enctype(form.pwd) }}>
-                            {{ form_errors(form.pwd) }}
+                        <form action="{{ path('config') }}#set5" method="post" {{ form_enctype(form.new_tagging_rule) }}>
+                            {{ form_errors(form.new_tagging_rule) }}
 
                             <div class="row">
                                 <div class="input-field col s12">