Skip to content

Commit d3ea36c

Browse files
OskarStarkwouterj
authored andcommitted
changed submit button label
we create a "task" not a "post"...
1 parent db01e57 commit d3ea36c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

book/forms.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ from inside a controller::
103103
$form = $this->createFormBuilder($task)
104104
->add('task', 'text')
105105
->add('dueDate', 'date')
106-
->add('save', 'submit', array('label' => 'Create Post'))
106+
->add('save', 'submit', array('label' => 'Create Task'))
107107
->getForm();
108108

109109
return $this->render('AcmeTaskBundle:Default:new.html.twig', array(
@@ -219,7 +219,7 @@ controller::
219219
$form = $this->createFormBuilder($task)
220220
->add('task', 'text')
221221
->add('dueDate', 'date')
222-
->add('save', 'submit', array('label' => 'Create Post'))
222+
->add('save', 'submit', array('label' => 'Create Task'))
223223
->getForm();
224224

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

0 commit comments

Comments
 (0)