silverstripe-userforms/templates/EditableOption.ss
Stig Lindqvist 93d7da417a MINOR Template updates to support SS 3.0
- Use the correct path to the icons where ever they might be
 - Print out added HTML attributes for FieldEditor to support data-add-url set via PHP
2012-05-07 17:41:29 +12:00

11 lines
597 B
Scheme

<li>
<img class="handle" src="$ModulePath(framework)/images/drag.gif" alt="<% _t('DRAG', 'Drag to rearrange order of options') %>" />
<input type="text" name="{$FieldName}[Title]" value="$Title" />
<input type="hidden" class="sortOptionHidden hidden" name="{$FieldName}[Sort]" value="$Sort" />
<% if canEdit %>
<a href="$ID" class="deleteOption"><img src="$ModulePath(cms)/images/delete.gif" alt="<% _t('DELETE', 'Remove this option') %>" /></a>
<% else %>
<img src="$ModulePath(cms)/images/locked.gif" alt="<% _t('LOCKED', 'These fields cannot be modified') %>" />
<% end_if %>
</li>