]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Clean the tagging rule creation form
authorKévin Gomez <contact@kevingomez.fr>
Mon, 16 Nov 2015 13:01:43 +0000 (14:01 +0100)
committerKévin Gomez <contact@kevingomez.fr>
Mon, 16 Nov 2015 13:01:43 +0000 (14:01 +0100)
src/Wallabag/CoreBundle/Controller/ConfigController.php
src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig

index de1536c91d92cbdccece2b5a3d065d069e032243..7a187710f3ee07e24fcfb7de49b821e65af347f4 100644 (file)
@@ -102,7 +102,7 @@ class ConfigController extends Controller
 
         // handle tagging rule
         $taggingRule = new TaggingRule();
-        $newTaggingRule = $this->createForm(new TaggingRuleType(), $taggingRule);
+        $newTaggingRule = $this->createForm(new TaggingRuleType(), $taggingRule, array('action' => $this->generateUrl('config').'#set5'));
         $newTaggingRule->handleRequest($request);
 
         if ($newTaggingRule->isValid()) {
index e08393a235d21469a570e78387b0cfdd57838967..d060311d4400f1784a92cbcbe561e3fa39f93d11 100644 (file)
                             </div>
                         </div>
 
-                        <form action="{{ path('config') }}#set5" method="post" {{ form_enctype(form.new_tagging_rule) }}>
+                        {{ form_start(form.new_tagging_rule) }}
                             {{ form_errors(form.new_tagging_rule) }}
 
                             <div class="row">
                     </div>
 
                     {% if is_granted('ROLE_SUPER_ADMIN') %}
-                    <div id="set5" class="col s12">
+                    <div id="set6" class="col s12">
                         {{ form_start(form.new_user) }}
                             {{ form_errors(form.new_user) }}