silverstripe-framework/templates/forms/FormField.ss

10 lines
223 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 %>