Skip to content

Commit b85a9a1

Browse files
committed
Merge pull request symfony#3082 from bicpi/fix_submit_button
[Forms] Fix submit button usage in template
2 parents 2516e2a + 609ead9 commit b85a9a1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

book/forms.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,9 @@ used the ``form_row`` helper:
806806
{{ form_widget(form.dueDate) }}
807807
</div>
808808

809-
<input type="submit" />
809+
<div>
810+
{{ form_widget(form.save) }}
811+
</div>
810812

811813
{{ form_end(form) }}
812814

@@ -828,7 +830,9 @@ used the ``form_row`` helper:
828830
<?php echo $view['form']->widget($form['dueDate']) ?>
829831
</div>
830832

831-
<input type="submit" />
833+
<div>
834+
<?php echo $view['form']->widget($form['save']) ?>
835+
</div>
832836

833837
<?php echo $view['form']->end($form) ?>
834838

0 commit comments

Comments
 (0)