mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-08-31 14:57:50 +02:00
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.
10 lines
225 B
Scheme
10 lines
225 B
Scheme
<% if isReadonly %>
|
|
<span id="$ID"
|
|
<% if extraClass %>class="$extraClass"<% end_if %>
|
|
<% if $Description %>title="$Description"<% end_if %>>
|
|
$Value
|
|
</span>
|
|
<% else %>
|
|
<input $AttributesHTML />
|
|
<% end_if %>
|