silverstripe-userforms/templates/FieldEditor.ss

25 lines
514 B
Scheme
Executable File

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