Clean the tagging rule creation form

This commit is contained in:
Kévin Gomez 2015-11-16 14:01:43 +01:00
parent 69edb774eb
commit c13eda461f
2 changed files with 3 additions and 3 deletions

View 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()) {

View File

@ -200,7 +200,7 @@
</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">
@ -332,7 +332,7 @@
</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) }}