mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Consistently self-closing form field tags (#7557)
This is reverting templates back to pre-3.0 conventions, which were dominated by XHTML templates. HTML5 allows both self-closing and unclosed tags, so opting for self-closing to achieve maximum compatibility.
This commit is contained in:
parent
b649c09b08
commit
ce2d31b060
@ -1 +1 @@
|
|||||||
<input $AttributesHTML>
|
<input $AttributesHTML />
|
@ -2,7 +2,7 @@
|
|||||||
<% if Options.Count %>
|
<% if Options.Count %>
|
||||||
<% loop Options %>
|
<% loop Options %>
|
||||||
<li class="$Class">
|
<li class="$Class">
|
||||||
<input id="$ID" class="checkbox" name="$Name" type="checkbox" value="$Value"<% if isChecked %> checked="checked"<% end_if %><% if isDisabled %> disabled="disabled"<% end_if %>>
|
<input id="$ID" class="checkbox" name="$Name" type="checkbox" value="$Value"<% if isChecked %> checked="checked"<% end_if %><% if isDisabled %> disabled="disabled"<% end_if %> />
|
||||||
<label for="$ID">$Title</label>
|
<label for="$ID">$Title</label>
|
||||||
</li>
|
</li>
|
||||||
<% end_loop %>
|
<% end_loop %>
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
<input $AttributesHTML>
|
<input $AttributesHTML />
|
||||||
<input type="hidden" name="MAX_FILE_SIZE" value="$MaxFileSize">
|
<input type="hidden" name="MAX_FILE_SIZE" value="$MaxFileSize" />
|
||||||
|
@ -3,5 +3,5 @@
|
|||||||
<% if ButtonContent %>$ButtonContent<% else %>$Title<% end_if %>
|
<% if ButtonContent %>$ButtonContent<% else %>$Title<% end_if %>
|
||||||
</button>
|
</button>
|
||||||
<% else %>
|
<% else %>
|
||||||
<input $AttributesHTML>
|
<input $AttributesHTML />
|
||||||
<% end_if %>
|
<% end_if %>
|
@ -5,5 +5,5 @@
|
|||||||
$Value
|
$Value
|
||||||
</span>
|
</span>
|
||||||
<% else %>
|
<% else %>
|
||||||
<input $AttributesHTML>
|
<input $AttributesHTML />
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<ul id="$ID" class="$extraClass"<% if Description %> title="$Description"<% end_if %>>
|
<ul id="$ID" class="$extraClass"<% if Description %> title="$Description"<% end_if %>>
|
||||||
<% loop Options %>
|
<% loop Options %>
|
||||||
<li class="$Class">
|
<li class="$Class">
|
||||||
<input id="$ID" class="radio" name="$Name" type="radio" value="$Value"<% if isChecked %> checked<% end_if %><% if isDisabled %> disabled<% end_if %>>
|
<input id="$ID" class="radio" name="$Name" type="radio" value="$Value"<% if isChecked %> checked<% end_if %><% if isDisabled %> disabled<% end_if %> />
|
||||||
<label for="$ID">$Title</label>
|
<label for="$ID">$Title</label>
|
||||||
</li>
|
</li>
|
||||||
<% end_loop %>
|
<% end_loop %>
|
||||||
|
Loading…
Reference in New Issue
Block a user