silverstripe-framework/templates/forms/HTMLReadonlyField.ss
2016-07-14 14:43:53 +12:00

7 lines
224 B
Scheme

<span class="readonly typography" id="$ID">
<% if $Value %>$Value<% else %><i>(not set)</i><% end_if %>
</span>
<% if $IncludeHiddenField %>
<input type="hidden" name="$Name.ATT" value="$ValueEntities.RAW" />
<% end_if %>