silverstripe-userforms/templates/FieldEditor.ss
Sean Harvey f6f1085029 ENHANCEMENT Moved readonly capabilities to EditableFormFiel from EditableMultipleOptionField - this means you can now set readonly on any form field
BUGFIX Check for readonly when checking edit and delete permissions on FieldEditor
BUGFIX Don't just show "None" when the page is in readonly mode and showing the Fields tab, instead show a readonly representation of the field editor
2009-06-08 04:42:17 +00:00

21 lines
412 B
Scheme
Executable File

<div class="FieldEditor <% if isReadonly %>readonly<% end_if %>" id="Fields">
<% include AddField %>
<div class="FieldListHold">
<ul class="FieldList" id="Fields_fields">
<% control Fields %>
$EditSegment
<% end_control %>
</ul>
</div>
<% include AddField %>
<div class="FormOptions">
<h3>Form Options</h3>
<% control FormOptions %>
$FieldHolder
<% end_control %>
</div>
</div>