Skip to content

Commit

Permalink
minor #4364 changed submit button label (OskarStark)
Browse files Browse the repository at this point in the history
This PR was submitted for the 2.5 branch but it was merged into the 2.3 branch instead (closes #4364).

Discussion
----------

changed submit button label

we create a "task" not a "post"...

Commits
-------

d3ea36c changed submit button label
  • Loading branch information
wouterj committed Oct 23, 2014
2 parents db01e57 + d3ea36c commit 06e7c5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions book/forms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ from inside a controller::
$form = $this->createFormBuilder($task)
->add('task', 'text')
->add('dueDate', 'date')
->add('save', 'submit', array('label' => 'Create Post'))
->add('save', 'submit', array('label' => 'Create Task'))
->getForm();

return $this->render('AcmeTaskBundle:Default:new.html.twig', array(
Expand Down Expand Up @@ -219,7 +219,7 @@ controller::
$form = $this->createFormBuilder($task)
->add('task', 'text')
->add('dueDate', 'date')
->add('save', 'submit', array('label' => 'Create Post'))
->add('save', 'submit', array('label' => 'Create Task'))
->getForm();

$form->handleRequest($request);
Expand Down Expand Up @@ -297,7 +297,7 @@ To do this, add a second button with the caption "Save and add" to your form::
$form = $this->createFormBuilder($task)
->add('task', 'text')
->add('dueDate', 'date')
->add('save', 'submit', array('label' => 'Create Post'))
->add('save', 'submit', array('label' => 'Create Task'))
->add('saveAndAdd', 'submit', array('label' => 'Save and Add'))
->getForm();

Expand Down

0 comments on commit 06e7c5f

Please sign in to comment.