Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit88b88e5

Browse files
committed
Fixed spelling and grammar errors
1 parent6c88364 commit88b88e5

File tree

6 files changed

+55
-48
lines changed

6 files changed

+55
-48
lines changed

‎book/forms.rst‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,11 @@ Let's add a second button with the caption "Save and add" to our form::
291291
->getForm();
292292

293293
In your controller, use the button's
294-
:method:`Symfony\\Component\\Form\\ClickableInterface\\isClicked` method for
294+
:method:`Symfony\\Component\\Form\\ClickableInterface::isClicked` method for
295295
querying if the "Save and add" button was clicked::
296296

297297
if ($form->isValid()) {
298-
// perform some action, such as saving the task to the database
298+
//...perform some action, such as saving the task to the database
299299

300300
$nextAction = $form->get('saveAndAdd')->isClicked()
301301
? 'task_new'
@@ -454,8 +454,9 @@ Disabling Validation
454454
~~~~~~~~~~~~~~~~~~~~
455455

456456
..versionadded::2.3
457-
The ability to set ``validation_groups`` to false is new to version 2.3.
458-
Setting it to an empty array was already supported before.
457+
The ability to set ``validation_groups`` to false was added in Symfony 2.3,
458+
although setting it to an empty array achieved the same result in previous
459+
versions.
459460

460461
Sometimes it is useful to suppress the validation of a form altogether. For
461462
these cases, you can skip the call to:method:`Symfony\\Component\\Form\\FormInterface::isValid`

‎reference/forms/types/button.rst‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@ button Field Type
55
=================
66

77
..versionadded::2.3
8-
The ``button`` typeis new inversion 2.3
8+
The ``button`` typewas added inSymfony 2.3
99

1010
A simple, non-responsive button.
1111

12-
+----------------------+------------------------------------------------------------------------------------------------------------------------+
13-
| Rendered as| ``button`` tag|
14-
+----------------------+------------------------------------------------------------------------------------------------------------------------+
15-
| Options| - `attr`_|
16-
|| - `disabled`_|
17-
|| - `label`_|
18-
|| - `translation_domain`_|
19-
+----------------------+------------------------------------------------------------------------------------------------------------------------+
20-
| Parent type| none|
21-
+----------------------+------------------------------------------------------------------------------------------------------------------------+
22-
| Class|:class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\ButtonType`|
23-
+----------------------+------------------------------------------------------------------------------------------------------------------------+
12+
+----------------------+----------------------------------------------------------------------+
13+
| Rendered as| ``button`` tag|
14+
+----------------------+----------------------------------------------------------------------+
15+
| Options| - `attr`_|
16+
|| - `disabled`_|
17+
|| - `label`_|
18+
|| - `translation_domain`_|
19+
+----------------------+----------------------------------------------------------------------+
20+
| Parent type| none|
21+
+----------------------+----------------------------------------------------------------------+
22+
| Class|:class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\ButtonType`|
23+
+----------------------+----------------------------------------------------------------------+
2424

2525
Options
2626
-------

‎reference/forms/types/options/button_disabled.rst.inc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ disabled
55

66
If you don't want a user to be able to click a button, you can set the disabled
77
option to true. It will not be possible to submit the form with this button,
8-
not even when bypassing the browser and sendingan request manually, for
8+
not even when bypassing the browser and sendinga request manually, for
99
example with cURL.

‎reference/forms/types/options/button_label.rst.inc‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ label
55

66
Sets the label that will be displayed on the button. The label can also be
77
directly set inside the template:
8-
9-
.. code-block:: jinja
108

11-
{{form_widget(form.save, {'label':'Click me' }) }}
9+
.. configuration-block::
10+
11+
.. code-block:: html+jinja
12+
13+
{{ form_widget(form.save, { 'label': 'Click me' }) }}
14+
15+
.. code-block:: html+php
16+
17+
<?phpecho$view['form']->widget($form['save'],array('label' =>'Click me'))?>

‎reference/forms/types/reset.rst‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@ reset Field Type
55
================
66

77
..versionadded::2.3
8-
The ``submit`` typeis new inversion 2.3
8+
The ``reset`` typewas added inSymfony 2.3
99

1010
A button that resets all fields to their original values.
1111

12-
+----------------------+------------------------------------------------------------------------------------------------------------------------+
13-
| Rendered as| ``input`` ``reset`` tag|
14-
+----------------------+------------------------------------------------------------------------------------------------------------------------+
15-
| Inherited| - `attr`_|
16-
| options| - `disabled`_|
17-
|| - `label`_|
18-
|| - `translation_domain`_|
19-
+----------------------+------------------------------------------------------------------------------------------------------------------------+
20-
| Parent type|:doc:`button</reference/forms/types/button>`|
21-
+----------------------+------------------------------------------------------------------------------------------------------------------------+
22-
| Class|:class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\ResetType`|
23-
+----------------------+------------------------------------------------------------------------------------------------------------------------+
12+
+----------------------+---------------------------------------------------------------------+
13+
| Rendered as| ``input`` ``reset`` tag|
14+
+----------------------+---------------------------------------------------------------------+
15+
| Inherited| - `attr`_|
16+
| options| - `disabled`_|
17+
|| - `label`_|
18+
|| - `translation_domain`_|
19+
+----------------------+---------------------------------------------------------------------+
20+
| Parent type|:doc:`button</reference/forms/types/button>`|
21+
+----------------------+---------------------------------------------------------------------+
22+
| Class|:class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\ResetType`|
23+
+----------------------+---------------------------------------------------------------------+
2424

2525
Inherited options
2626
-----------------

‎reference/forms/types/submit.rst‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@ submit Field Type
55
=================
66

77
..versionadded::2.3
8-
The ``submit`` typeis new inversion 2.3
8+
The ``submit`` typewas added inSymfony 2.3
99

1010
A submit button.
1111

12-
+----------------------+------------------------------------------------------------------------------------------------------------------------+
13-
| Rendered as| ``input`` ``submit`` tag|
14-
+----------------------+------------------------------------------------------------------------------------------------------------------------+
15-
| Inherited| - `attr`_|
16-
| options| - `disabled`_|
17-
|| - `label`_|
18-
|| - `translation_domain`_|
19-
+----------------------+------------------------------------------------------------------------------------------------------------------------+
20-
| Parent type|:doc:`button</reference/forms/types/button>`|
21-
+----------------------+------------------------------------------------------------------------------------------------------------------------+
22-
| Class|:class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\SubmitType`|
23-
+----------------------+------------------------------------------------------------------------------------------------------------------------+
12+
+----------------------+----------------------------------------------------------------------+
13+
| Rendered as| ``input`` ``submit`` tag|
14+
+----------------------+----------------------------------------------------------------------+
15+
| Inherited| - `attr`_|
16+
| options| - `disabled`_|
17+
|| - `label`_|
18+
|| - `translation_domain`_|
19+
+----------------------+----------------------------------------------------------------------+
20+
| Parent type|:doc:`button</reference/forms/types/button>`|
21+
+----------------------+----------------------------------------------------------------------+
22+
| Class|:class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\SubmitType`|
23+
+----------------------+----------------------------------------------------------------------+
2424

2525
Submit buttons feature an additional method
26-
:method:`Symfony\\Component\\Form\\ClickableInterface\\isClicked` that lets you
26+
:method:`Symfony\\Component\\Form\\ClickableInterface::isClicked` that lets you
2727
check whether this button was used to submit the forms. This is especially
2828
useful when:ref:`a form has multiple submit buttons<book-form-submitting-multiple-buttons>`::
2929

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp