mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
4a5d9b03f8
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39001 467b73ca-7a2a-4603-9d3b-597d59a354a9
51 lines
2.1 KiB
Scheme
Executable File
51 lines
2.1 KiB
Scheme
Executable File
<div class="EditableRadioField EditableMultiOptionFormField EditableFormField" id="$Name.Attr">
|
|
<div class="FieldInfo">
|
|
<% if isReadonly %>
|
|
<img class="handle" src="sapphire/images/drag_readonly.gif" alt="These fields cannot be modified" />
|
|
<% else %>
|
|
<img class="handle" src="sapphire/images/drag.gif" alt="Drag to rearrange order of fields" />
|
|
<% end_if %>
|
|
<img class="handle" src="sapphire/images/fe_icons/radio.png" alt="Radio button set" title="Radio button set" />
|
|
$TitleField
|
|
<input type="hidden" name="hiddenDefaultOption" value="$DefaultOption" />
|
|
<a class="toggler" href="#" title="More options"><img src="cms/images/edit.gif" alt="More options" /></a>
|
|
<% if isReadonly %>
|
|
<img src="cms/images/locked.gif" alt="These fields cannot be modified" />
|
|
<% else %>
|
|
<% if CanDelete %>
|
|
<a class="delete" href="#" title="Delete this field"><img src="cms/images/delete.gif" alt="Delete this field" /></a>
|
|
<% else %>
|
|
<img src="cms/images/locked.gif" alt="This field is required for this form and cannot be deleted" />
|
|
<% end_if %>
|
|
<% end_if %>
|
|
</div>
|
|
<div class="hidden">
|
|
$TemplateOption
|
|
</div>
|
|
<div class="ExtraOptions" id="$Name.Attr-extraOptions">
|
|
<div class="EditableDropdownBox FieldDefault">
|
|
<ul class="EditableDropdownOptions" id="$Name.Attr-list">
|
|
<% if isReadonly %>
|
|
<% control Options %>
|
|
$ReadonlyOption
|
|
<% end_control %>
|
|
<% else %>
|
|
<% control Options %>
|
|
$Option
|
|
<% end_control %>
|
|
<li class="AddDropdownOption">
|
|
<input class="text" type="text" name="$Name.Attr[NewOption]" value="" />
|
|
<a href="#" title="Add option to field"><img src="cms/images/add.gif" alt="Add new option" /></a>
|
|
</li>
|
|
<% end_if %>
|
|
</ul>
|
|
</div>
|
|
<% control ExtraOptions %>
|
|
$FieldHolder
|
|
<% end_control %>
|
|
</div>
|
|
<input type="hidden" name="$Name.Attr[Deleted]" value="" />
|
|
<input type="hidden" name="$Name.Attr[CustomParameter]" value="$CustomParameter" />
|
|
<input type="hidden" name="$Name.Attr[Type]" value="EditableRadioField" />
|
|
<input type="hidden" name="$Name.Attr[Sort]" value="-1" />
|
|
</div> |