@@ -96,7 +96,7 @@ FormHelper は、 *追加* または *編集* のフォームを作成するか
96
96
.. code-block :: html
97
97
98
98
<form method =" post" action =" /articles/edit/5" >
99
- <input type =" hidden" name =" _method" value =" PUT" / >
99
+ <input type =" hidden" name =" _method" value =" PUT" >
100
100
101
101
.. note ::
102
102
@@ -351,7 +351,7 @@ where request data is retained, you need to put ``context`` first::
351
351
デフォルトでは、 ``control() `` メソッドは、次のウィジェットテンプレートを使用します。 ::
352
352
353
353
'inputContainer' => '<div class="input {{type}}{{required}}">{{content}}</div>'
354
- 'input' => '<input type="{{type}}" name="{{name}}"{{attrs}}/ >'
354
+ 'input' => '<input type="{{type}}" name="{{name}}"{{attrs}}>'
355
355
356
356
検証エラーが発生した場合は、以下も使われます。 ::
357
357
@@ -526,11 +526,11 @@ HTML 属性を受け付けます。以下は ``FormHelper::control()`` で特有
526
526
527
527
<div class =" input file" >
528
528
<label for =" field" >Field</label >
529
- <input type =" file" name =" field" value =" " id =" field" / >
529
+ <input type =" file" name =" field" value =" " id =" field" >
530
530
</div >
531
531
<div class =" input email" >
532
532
<label for =" email" >Email</label >
533
- <input type =" email" name =" email" value =" " id =" email" / >
533
+ <input type =" email" name =" email" value =" " id =" email" >
534
534
</div >
535
535
536
536
* ``$options['label'] `` - 文字列の見出しや :ref: `ラベルのオプション<create-label> ` の配列。
@@ -549,7 +549,7 @@ HTML 属性を受け付けます。以下は ``FormHelper::control()`` で特有
549
549
550
550
<div class =" input" >
551
551
<label for =" name" >The User Alias</label >
552
- <input name =" name" type =" text" value =" " id =" name" / >
552
+ <input name =" name" type =" text" value =" " id =" name" >
553
553
</div >
554
554
555
555
あるいは、 ``label `` 要素の出力を無効にするには、このキーに ``false `` を設定します。
@@ -563,7 +563,7 @@ HTML 属性を受け付けます。以下は ``FormHelper::control()`` で特有
563
563
.. code-block :: html
564
564
565
565
<div class =" input" >
566
- <input name =" name" type =" text" value =" " id =" name" / >
566
+ <input name =" name" type =" text" value =" " id =" name" >
567
567
</div >
568
568
569
569
これに配列を設定すると、 ``label `` 要素の追加オプションが提供されます。
@@ -584,7 +584,7 @@ HTML 属性を受け付けます。以下は ``FormHelper::control()`` で特有
584
584
585
585
<div class =" input" >
586
586
<label for =" name" class =" thingy" >The User Alias</label >
587
- <input name =" name" type =" text" value =" " id =" name" / >
587
+ <input name =" name" type =" text" value =" " id =" name" >
588
588
</div >
589
589
590
590
* ``$options['options'] `` - ここには、アイテムの配列を引数として必要とする ``radio `` や
@@ -765,7 +765,7 @@ FormHelper で利用可能なメソッドには、さらに特定のフォーム
765
765
766
766
.. code-block :: html
767
767
768
- <input name =" id" type =" hidden" / >
768
+ <input name =" id" type =" hidden" >
769
769
770
770
テキストエリアの作成
771
771
--------------------
@@ -914,8 +914,8 @@ textarea コントロールフィールドを作成します。使用される
914
914
915
915
.. code-block :: html
916
916
917
- <input type =" hidden" name =" published" value =" 0" / >
918
- <input type =" checkbox" name =" published" value =" 1" / >
917
+ <input type =" hidden" name =" published" value =" 0" >
918
+ <input type =" checkbox" name =" published" value =" 1" >
919
919
920
920
これは ``'hiddenField' `` を ``false `` とすることで無効にできます。 ::
921
921
@@ -936,34 +936,34 @@ textarea コントロールフィールドを作成します。使用される
936
936
.. code-block :: html
937
937
938
938
<h2 >Primary Colors</h2 >
939
- <input type =" hidden" name =" color" value =" 0" / >
939
+ <input type =" hidden" name =" color" value =" 0" >
940
940
<label for =" color-red" >
941
- <input type =" checkbox" name =" color[]" value =" 5" id =" color-red" / >
941
+ <input type =" checkbox" name =" color[]" value =" 5" id =" color-red" >
942
942
Red
943
943
</label >
944
944
945
945
<label for =" color-blue" >
946
- <input type =" checkbox" name =" color[]" value =" 5" id =" color-blue" / >
946
+ <input type =" checkbox" name =" color[]" value =" 5" id =" color-blue" >
947
947
Blue
948
948
</label >
949
949
950
950
<label for =" color-yellow" >
951
- <input type =" checkbox" name =" color[]" value =" 5" id =" color-yellow" / >
951
+ <input type =" checkbox" name =" color[]" value =" 5" id =" color-yellow" >
952
952
Yellow
953
953
</label >
954
954
955
955
<h2 >Tertiary Colors</h2 >
956
- <input type =" hidden" name =" color" value =" 0" / >
956
+ <input type =" hidden" name =" color" value =" 0" >
957
957
<label for =" color-green" >
958
- <input type =" checkbox" name =" color[]" value =" 5" id =" color-green" / >
958
+ <input type =" checkbox" name =" color[]" value =" 5" id =" color-green" >
959
959
Green
960
960
</label >
961
961
<label for =" color-purple" >
962
- <input type =" checkbox" name =" color[]" value =" 5" id =" color-purple" / >
962
+ <input type =" checkbox" name =" color[]" value =" 5" id =" color-purple" >
963
963
Purple
964
964
</label >
965
965
<label for =" color-orange" >
966
- <input type =" checkbox" name =" color[]" value =" 5" id =" color-orange" / >
966
+ <input type =" checkbox" name =" color[]" value =" 5" id =" color-orange" >
967
967
Orange
968
968
</label >
969
969
@@ -1622,7 +1622,7 @@ CakePHP が Windows サーバー上にインストールされている場合、
1622
1622
1623
1623
.. code-block :: html
1624
1624
1625
- <input type =" datetime-local" name =" registered" value =" 2019-02-08T18:20:10" / >
1625
+ <input type =" datetime-local" name =" registered" value =" 2019-02-08T18:20:10" >
1626
1626
1627
1627
日付コントロールの作成
1628
1628
~~~~~~~~~~~~~~~~~~~~~~
@@ -1663,7 +1663,7 @@ CakePHP が Windows サーバー上にインストールされている場合、
1663
1663
1664
1664
.. code-block :: html
1665
1665
1666
- <input type =" date" name =" registered" / >
1666
+ <input type =" date" name =" registered" >
1667
1667
1668
1668
時間コントロールの作成
1669
1669
~~~~~~~~~~~~~~~~~~~~~~
@@ -1722,7 +1722,7 @@ CakePHP が Windows サーバー上にインストールされている場合、
1722
1722
1723
1723
.. code-block :: html
1724
1724
1725
- <input type =" time" name =" released" / >
1725
+ <input type =" time" name =" released" >
1726
1726
1727
1727
月コントロールの作成
1728
1728
~~~~~~~~~~~~~~~~~~~~
@@ -1743,7 +1743,7 @@ Will output:
1743
1743
1744
1744
.. code-block :: html
1745
1745
1746
- <input type =" month" name =" mob" / >
1746
+ <input type =" month" name =" mob" >
1747
1747
1748
1748
時間コントロールの作成
1749
1749
~~~~~~~~~~~~~~~~~~~~~~
@@ -1938,7 +1938,7 @@ notBlank バリデーションメッセージに対するエラーメッセー
1938
1938
このオプションを有効にすると、フィールドに ``onvalid `` と ``oninvalid `` イベント属性が追加されます。
1939
1939
例えば、 ::
1940
1940
1941
- <input type="text" name="field" required onvalid="this.setCustomValidity('')" oninvalid="this.setCustomValidity('Custom notBlank message')" / >
1941
+ <input type="text" name="field" required onvalid="this.setCustomValidity('')" oninvalid="this.setCustomValidity('Custom notBlank message')">
1942
1942
1943
1943
カスタム Javascript を使用してこれらのイベントを手動で設定したい場合は、
1944
1944
``autoSetCustomValidity `` オプションを ``false `` に設定して、
@@ -1976,7 +1976,7 @@ Submit 要素の作成
1976
1976
1977
1977
デフォルトで次のウィジェットテンプレートを使用します。 ::
1978
1978
1979
- 'inputSubmit' => '<input type="{{type}}"{{attrs}}/ >'
1979
+ 'inputSubmit' => '<input type="{{type}}"{{attrs}}>'
1980
1980
'submitContainer' => '<div class="submit">{{content}}</div>'
1981
1981
1982
1982
**Submit のオプション **
0 commit comments