mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
f6f1085029
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
21 lines
412 B
Scheme
Executable File
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> |