silverstripe-framework/templates/forms/FormField.ss

8 lines
159 B
Scheme

<% if $isReadonly %>
<span id="$ID"<% if $extraClass %> class="$extraClass"<% end_if %>>
$Value
</span>
<% else %>
<input $AttributesHTML />
<% end_if %>