8000 minor #4364 changed submit button label (OskarStark) · symfony/symfony-docs@06e7c5f · GitHub
[go: up one dir, main page]

Skip to content

Commit 06e7c5f

Browse files
committed
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
2 parents db01e57 + d3ea36c commit 06e7c5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

book/forms.rst

+3Lines 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)
0