Permalink
Browse files

minor #4364 changed submit button label (OskarStark)

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 06e7c5f54a75e55d0cdb6ddf364aa8a17bbda22d
Showing with 3 additions and 3 deletions.
  1. +3 −3 book/forms.rst
@@ -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(
@@ -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);
@@ -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();

0 comments on commit 06e7c5f

Please sign in to comment.