@@ -101,7 +101,7 @@ Output:
101
101
.. code-block :: html
102
102
103
103
<form method =" post" action =" /articles/edit/5" >
104
- <input type =" hidden" name =" _method" value =" PUT" / >
104
+ <input type =" hidden" name =" _method" value =" PUT" >
105
105
106
106
.. note ::
107
107
@@ -377,7 +377,7 @@ methods of FormHelper.
377
377
By default the ``control() `` method will employ the following widget templates::
378
378
379
379
'inputContainer' => '<div class="input {{type}}{{required}}">{{content}}</div>'
380
- 'input' => '<input type="{{type}}" name="{{name}}"{{attrs}}/ >'
380
+ 'input' => '<input type="{{type}}" name="{{name}}"{{attrs}}>'
381
381
'requiredClass' => 'required'
382
382
383
383
In case of validation errors it will also use::
@@ -567,11 +567,11 @@ as well as HTML attributes. This subsection will cover the options specific to
567
567
568
568
<div class =" input file" >
569
569
<label for =" field" >Field</label >
570
- <input type =" file" name =" field" value =" " id =" field" / >
570
+ <input type =" file" name =" field" value =" " id =" field" >
571
571
</div >
572
572
<div class =" input email" >
573
573
<label for =" email" >Email</label >
574
- <input type =" email" name =" email" value =" " id =" email" / >
574
+ <input type =" email" name =" email" value =" " id =" email" >
575
575
</div >
576
576
577
577
* ``$options['label'] `` - Either a string caption or an array of
@@ -591,7 +591,7 @@ as well as HTML attributes. This subsection will cover the options specific to
591
591
592
592
<div class =" input" >
593
593
<label for =" name" >The User Alias</label >
594
- <input name =" name" type =" text" value =" " id =" name" / >
594
+ <input name =" name" type =" text" value =" " id =" name" >
595
595
</div >
596
596
597
597
Alternatively, set this key to ``false `` to disable the generation of the
@@ -606,7 +606,7 @@ as well as HTML attributes. This subsection will cover the options specific to
606
606
.. code-block :: html
607
607
608
608
<div class =" input" >
609
- <input name =" name" type =" text" value =" " id =" name" / >
609
+ <input name =" name" type =" text" value =" " id =" name" >
610
610
</div >
611
611
612
612
If the label is disabled, and a ``placeholder `` attribute is provided, the
@@ -631,7 +631,7 @@ as well as HTML attributes. This subsection will cover the options specific to
631
631
632
632
<div class =" input" >
633
633
<label for =" name" class =" thingy" >The User Alias</label >
634
- <input name =" name" type =" text" value =" " id =" name" / >
634
+ <input name =" name" type =" text" value =" " id =" name" >
635
635
</div >
636
636
637
637
* ``$options['options'] `` - You can provide in here an array containing
@@ -830,7 +830,7 @@ Will output:
830
830
831
831
.. code-block :: html
832
832
833
- <input name =" id" type =" hidden" / >
833
+ <input name =" id" type =" hidden" >
834
834
835
835
Creating Textareas
836
836
------------------
@@ -987,8 +987,8 @@ methods are described in each method's own section.)
987
987
988
988
.. code-block :: html
989
989
990
- <input type =" hidden" name =" published" value =" 0" / >
991
- <input type =" checkbox" name =" published" value =" 1" / >
990
+ <input type =" hidden" name =" published" value =" 0" >
991
+ <input type =" checkbox" name =" published" value =" 1" >
992
992
993
993
This can be disabled by setting ``'hiddenField' `` to ``false ``::
994
994
@@ -1011,34 +1011,34 @@ methods are described in each method's own section.)
1011
1011
.. code-block :: html
1012
1012
1013
1013
<h2 >Primary Colors</h2 >
1014
- <input type =" hidden" name =" color" value =" 0" / >
1014
+ <input type =" hidden" name =" color" value =" 0" >
1015
1015
<label for =" color-red" >
1016
- <input type =" checkbox" name =" color[]" value =" 5" id =" color-red" / >
1016
+ <input type =" checkbox" name =" color[]" value =" 5" id =" color-red" >
1017
1017
Red
1018
1018
</label >
1019
1019
1020
1020
<label for =" color-blue" >
1021
- <input type =" checkbox" name =" color[]" value =" 5" id =" color-blue" / >
1021
+ <input type =" checkbox" name =" color[]" value =" 5" id =" color-blue" >
1022
1022
Blue
1023
1023
</label >
1024
1024
1025
1025
<label for =" color-yellow" >
1026
- <input type =" checkbox" name =" color[]" value =" 5" id =" color-yellow" / >
1026
+ <input type =" checkbox" name =" color[]" value =" 5" id =" color-yellow" >
1027
1027
Yellow
1028
1028
</label >
1029
1029
1030
1030
<h2 >Tertiary Colors</h2 >
1031
- <input type =" hidden" name =" color" value =" 0" / >
1031
+ <input type =" hidden" name =" color" value =" 0" >
1032
1032
<label for =" color-green" >
1033
- <input type =" checkbox" name =" color[]" value =" 5" id =" color-green" / >
1033
+ <input type =" checkbox" name =" color[]" value =" 5" id =" color-green" >
1034
1034
Green
1035
1035
</label >
1036
1036
<label for =" color-purple" >
1037
- <input type =" checkbox" name =" color[]" value =" 5" id =" color-purple" / >
1037
+ <input type =" checkbox" name =" color[]" value =" 5" id =" color-purple" >
1038
1038
Purple
1039
1039
</label >
1040
1040
<label for =" color-orange" >
1041
- <input type =" checkbox" name =" color[]" value =" 5" id =" color-orange" / >
1041
+ <input type =" checkbox" name =" color[]" value =" 5" id =" color-orange" >
1042
1042
Orange
1043
1043
</label >
1044
1044
@@ -1612,7 +1612,7 @@ Output:
1612
1612
1613
1613
.. code-block :: html
1614
1614
1615
- <input type =" datetime-local" name =" registered" / >
1615
+ <input type =" datetime-local" name =" registered" >
1616
1616
1617
1617
The value for the input can be any valid datetime string or ``DateTime `` instance.
1618
1618
@@ -1624,7 +1624,7 @@ Output:
1624
1624
1625
1625
.. code-block :: html
1626
1626
1627
- <input type =" datetime-local" name =" registered" value =" 2019-02-08T18:20:10" / >
1627
+ <input type =" datetime-local" name =" registered" value =" 2019-02-08T18:20:10" >
1628
1628
1629
1629
Creating Date Controls
1630
1630
~~~~~~~~~~~~~~~~~~~~~~
@@ -1646,7 +1646,7 @@ Output:
1646
1646
1647
1647
.. code-block :: html
1648
1648
1649
- <input type =" date" name =" registered" / >
1649
+ <input type =" date" name =" registered" >
1650
1650
1651
1651
Creating Time Controls
1652
1652
~~~~~~~~~~~~~~~~~~~~~~
@@ -1668,7 +1668,7 @@ Output:
1668
1668
1669
1669
.. code-block :: html
1670
1670
1671
- <input type =" time" name =" released" / >
1671
+ <input type =" time" name =" released" >
1672
1672
1673
1673
Creating Month Controls
1674
1674
~~~~~~~~~~~~~~~~~~~~~~~
@@ -1690,7 +1690,7 @@ Will output:
1690
1690
1691
1691
.. code-block :: html
1692
1692
1693
- <input type =" month" name =" mob" / >
1693
+ <input type =" month" name =" mob" >
1694
1694
1695
1695
Creating Year Controls
1696
1696
~~~~~~~~~~~~~~~~~~~~~~
@@ -1877,7 +1877,7 @@ the field's required and notBlank validation rules will be used in lieu of the d
1877
1877
browser HTML5 required messages. Enabling the option will add the ``onvalid `` and ``oninvalid ``
1878
1878
event attributes to your fields, for example::
1879
1879
1880
- <input type="text" name="field" required onvalid="this.setCustomValidity('')" oninvalid="this.setCustomValidity('Custom notBlank message')" / >
1880
+ <input type="text" name="field" required onvalid="this.setCustomValidity('')" oninvalid="this.setCustomValidity('Custom notBlank message')">
1881
1881
1882
1882
If you want to manually set those events with custom JavaScript, you can set the ``autoSetCustomValidity ``
1883
1883
option to ``false `` and use the special ``customValidityMessage `` template variable instead. This
@@ -1917,7 +1917,7 @@ relative to *webroot/img*.
1917
1917
1918
1918
By default it will use the following widget templates::
1919
1919
1920
- 'inputSubmit' => '<input type="{{type}}"{{attrs}}/ >'
1920
+ 'inputSubmit' => '<input type="{{type}}"{{attrs}}>'
1921
1921
'submitContainer' => '<div class="submit">{{content}}</div>'
1922
1922
1923
1923
**Options for Submit **
0 commit comments