silverstripe-framework/templates/forms/FormField.ss
Normann Lou 3b3b515571 API CHANGE Read-only fields no longer include companion hidden fields (see pull request #399)
BUGFIX Remove legacy code and template which is never picked-up so that TextareaField becomes 'readonly' when it is transfered to readonly field. Change TextareaFieldTest test cases to address a 'readonly' textarea field displaying the special html characters correctly.
2012-05-03 14:24:03 +02:00

6 lines
150 B
Scheme

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