diff options
author | Kévin Gomez <contact@kevingomez.fr> | 2015-11-16 14:01:43 +0100 |
---|---|---|
committer | Kévin Gomez <contact@kevingomez.fr> | 2015-11-16 14:01:43 +0100 |
commit | c13eda461f88ba16c88d7c398322a59b294e6c97 (patch) | |
tree | a4b75114ce760e2fe8fef57a5a7b20467deca85f /src/Wallabag | |
parent | 69edb774eb360ea33646fcc81cd4ea71fa137680 (diff) | |
download | wallabag-c13eda461f88ba16c88d7c398322a59b294e6c97.tar.gz wallabag-c13eda461f88ba16c88d7c398322a59b294e6c97.tar.zst wallabag-c13eda461f88ba16c88d7c398322a59b294e6c97.zip |
Clean the tagging rule creation form
Diffstat (limited to 'src/Wallabag')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/ConfigController.php | 2 | ||||
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/ConfigController.php b/src/Wallabag/CoreBundle/Controller/ConfigController.php index de1536c9..7a187710 100644 --- a/src/Wallabag/CoreBundle/Controller/ConfigController.php +++ b/src/Wallabag/CoreBundle/Controller/ConfigController.php | |||
@@ -102,7 +102,7 @@ class ConfigController extends Controller | |||
102 | 102 | ||
103 | // handle tagging rule | 103 | // handle tagging rule |
104 | $taggingRule = new TaggingRule(); | 104 | $taggingRule = new TaggingRule(); |
105 | $newTaggingRule = $this->createForm(new TaggingRuleType(), $taggingRule); | 105 | $newTaggingRule = $this->createForm(new TaggingRuleType(), $taggingRule, array('action' => $this->generateUrl('config').'#set5')); |
106 | $newTaggingRule->handleRequest($request); | 106 | $newTaggingRule->handleRequest($request); |
107 | 107 | ||
108 | if ($newTaggingRule->isValid()) { | 108 | if ($newTaggingRule->isValid()) { |
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 e08393a2..d060311d 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,7 +200,7 @@ | |||
200 | </div> | 200 | </div> |
201 | </div> | 201 | </div> |
202 | 202 | ||
203 | <form action="{{ path('config') }}#set5" method="post" {{ form_enctype(form.new_tagging_rule) }}> | 203 | {{ form_start(form.new_tagging_rule) }} |
204 | {{ form_errors(form.new_tagging_rule) }} | 204 | {{ form_errors(form.new_tagging_rule) }} |
205 | 205 | ||
206 | <div class="row"> | 206 | <div class="row"> |
@@ -332,7 +332,7 @@ | |||
332 | </div> | 332 | </div> |
333 | 333 | ||
334 | {% if is_granted('ROLE_SUPER_ADMIN') %} | 334 | {% if is_granted('ROLE_SUPER_ADMIN') %} |
335 | <div id="set5" class="col s12"> | 335 | <div id="set6" class="col s12"> |
336 | {{ form_start(form.new_user) }} | 336 | {{ form_start(form.new_user) }} |
337 | {{ form_errors(form.new_user) }} | 337 | {{ form_errors(form.new_user) }} |
338 | 338 | ||