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
This commit is contained in:
Stig Lindqvist 2012-05-07 17:06:37 +12:00
parent 4f50dd287e
commit 93d7da417a
3 changed files with 6 additions and 7 deletions

View File

@ -2,9 +2,9 @@
<li class="$ClassName EditableFormField" id="$Name.ATT EditableItem_$Pos $Name"> <li class="$ClassName EditableFormField" id="$Name.ATT EditableItem_$Pos $Name">
<div class="fieldInfo"> <div class="fieldInfo">
<% if canEdit %> <% if canEdit %>
<img class="fieldHandler" src="framework/images/drag.gif" alt="<% _t('DRAG', 'Drag to rearrange order of fields') %>" /> <img class="fieldHandler" src="$ModulePath(framework)/images/drag.gif" alt="<% _t('DRAG', 'Drag to rearrange order of fields') %>" />
<% else %> <% else %>
<img class="fieldHandler" src="framework/images/drag_readonly.gif" alt="<% _t('LOCKED', 'These fields cannot be modified') %>" /> <img class="fieldHandler" src="$ModulePath(framework)/images/drag_readonly.gif" alt="<% _t('LOCKED', 'These fields cannot be modified') %>" />
<% end_if %> <% end_if %>
<img class="icon" src="$Icon" alt="$ClassName" title="$singular_name" /> <img class="icon" src="$Icon" alt="$ClassName" title="$singular_name" />

View File

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

View File

@ -1,8 +1,7 @@
<% require css(userforms/css/FieldEditor.css) %> <% require css(userforms/css/FieldEditor.css) %>
<% require javascript(framework/thirdparty/jquery-ui/jquery-ui.js) %>
<% require javascript(userforms/javascript/UserForm.js) %> <% require javascript(userforms/javascript/UserForm.js) %>
<div class="FieldEditor <% if canEdit %><% else %>readonly<% end_if %>" id="Fields"> <div class="FieldEditor <% if canEdit %><% else %>readonly<% end_if %>" id="Fields" $AttributesHTML>
<div class="FieldListHold"> <div class="FieldListHold">
<ul class="FieldList" id="Fields_fields"> <ul class="FieldList" id="Fields_fields">