silverstripe-userforms/templates/FieldEditor.ss

34 lines
939 B
Scheme
Raw Normal View History

<div class="FieldEditor <% if isReadonly %>readonly<% end_if %>" id="Fields" name="$Name.Attr">
<div class="MenuHolder">
<ul class="TopMenu Menu">
<li><% _t('ADD', 'Add') %>:</li>
<% control CreatableFields %>
<li><a href="#" title="<% _t('ADD', 'Add') %> $Title" id="$ClassName">$Title</a></li>
<% end_control %>
</ul>
</div>
<div class="FieldListHold">
<div class="FieldList" id="Fields_fields">
<% control Fields %>
<% if isReadonly %>
$ReadonlyEditSegment
<% else %>
$EditSegment
<% end_if %>
<% end_control %>
</div>
</div>
<div class="MenuHolder">
<ul class="BottomMenu Menu">
<li><% _t('ADD', 'Add') %>:</li>
<% control CreatableFields %>
<li><a href="#" title="<% _t('ADD', 'Add') %> $Title" id="$ClassName">$Title</a></li>
<% end_control %>
</ul>
2009-03-31 02:53:03 +02:00
<div class="FormOptions">
<% control FormOptions %>
$FieldHolder
<% end_control %>
</div>
</div>
</div>