silverstripe-framework/templates/forms/FormField.ss

8 lines
157 B
Scheme
Raw Normal View History

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