2009-04-24 00:52:08 +02:00
|
|
|
<!-- JS Relys on EditableFormField as a class - and the 3 ids in this order - do not change -->
|
|
|
|
<li class="$ClassName EditableFormField" id="$Name.Attr EditableItem_$Pos $BaseName">
|
2009-04-21 07:10:39 +02:00
|
|
|
<div class="fieldInfo">
|
2008-09-29 05:18:23 +02:00
|
|
|
<% if isReadonly %>
|
2009-04-18 04:49:46 +02:00
|
|
|
<img class="fieldHandler" src="sapphire/images/drag_readonly.gif" alt="<% _t('LOCKED', 'These fields cannot be modified') %>" />
|
2008-09-29 05:18:23 +02:00
|
|
|
<% else %>
|
2009-04-18 04:49:46 +02:00
|
|
|
<img class="fieldHandler" src="sapphire/images/drag.gif" alt="<% _t('DRAG', 'Drag to rearrange order of fields') %>" />
|
2008-09-29 05:18:23 +02:00
|
|
|
<% end_if %>
|
2009-04-21 07:10:39 +02:00
|
|
|
|
2009-04-20 05:07:57 +02:00
|
|
|
<img class="icon" src="$Icon" alt="$ClassName" title="$singular_name" />
|
2009-04-21 07:10:39 +02:00
|
|
|
|
2008-09-29 05:18:23 +02:00
|
|
|
$TitleField
|
2009-04-21 07:10:39 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="fieldActions">
|
2009-04-17 04:26:40 +02:00
|
|
|
<% if showExtraOptions %>
|
2009-05-06 05:46:12 +02:00
|
|
|
<a class="moreOptions" href="#" title="<% _t('SHOWOPTIONS', 'Show Options') %>"><% _t('SHOWOPTIONS','Show Options') %></a>
|
2009-04-17 04:26:40 +02:00
|
|
|
<% end_if %>
|
|
|
|
|
2009-05-14 23:40:03 +02:00
|
|
|
<% if canDelete %>
|
2009-06-08 06:42:17 +02:00
|
|
|
<a class="delete" href="#" title="<% _t('DELETE', 'Delete') %>"><% _t('DELETE', 'Delete') %></a>
|
|
|
|
<% end_if %>
|
2009-04-21 07:10:39 +02:00
|
|
|
</div>
|
2009-04-17 04:26:40 +02:00
|
|
|
|
|
|
|
<% if showExtraOptions %>
|
|
|
|
<div class="extraOptions hidden" id="$Name.Attr-extraOptions">
|
2009-05-06 05:34:40 +02:00
|
|
|
<% if HasAddableOptions %>
|
|
|
|
<fieldset class="fieldOptionsGroup">
|
|
|
|
<legend><% _t('OPTIONS', 'Options') %></legend>
|
2009-05-22 01:31:46 +02:00
|
|
|
<ul class="editableOptions" id="$FieldName.Attr-list">
|
2009-04-17 04:26:40 +02:00
|
|
|
|
2009-05-14 23:40:03 +02:00
|
|
|
<% if canEdit %>
|
2009-05-06 05:34:40 +02:00
|
|
|
<% control Options %>
|
|
|
|
$EditSegment
|
|
|
|
<% end_control %>
|
|
|
|
<% if HasAddableOptions %>
|
|
|
|
<li class="{$ClassName}Option">
|
|
|
|
<a href="#" rel="$ID" class="addableOption" title="<% _t('ADD', 'Add option to field') %>">
|
|
|
|
Add Option
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<% end_if %>
|
2009-05-22 01:31:46 +02:00
|
|
|
<% else %>
|
|
|
|
<% control Options %>
|
|
|
|
$ReadonlyOption
|
|
|
|
<% end_control %>
|
2009-05-06 05:34:40 +02:00
|
|
|
<% end_if %>
|
|
|
|
</ul>
|
|
|
|
</fieldset>
|
|
|
|
<% end_if %>
|
2009-04-24 00:52:08 +02:00
|
|
|
|
2009-05-06 05:34:40 +02:00
|
|
|
<% if FieldConfiguration %>
|
|
|
|
<fieldset class="fieldOptionsGroup">
|
|
|
|
<legend><% _t('FIELDCONFIGURATION', 'Field Configuration') %></legend>
|
|
|
|
<% control FieldConfiguration %>
|
|
|
|
$FieldHolder
|
|
|
|
<% end_control %>
|
|
|
|
</fieldset>
|
|
|
|
<% end_if %>
|
2009-04-24 00:52:08 +02:00
|
|
|
|
2009-05-06 05:34:40 +02:00
|
|
|
<% if FieldValidationOptions %>
|
|
|
|
<fieldset class="fieldOptionsGroup">
|
|
|
|
<legend><% _t('VALIDATION', 'Validation') %></legend>
|
|
|
|
<% control FieldValidationOptions %>
|
|
|
|
$FieldHolder
|
|
|
|
<% end_control %>
|
|
|
|
</fieldset>
|
|
|
|
<% end_if %>
|
2009-06-25 07:07:00 +02:00
|
|
|
|
|
|
|
<fieldset class="customRules fieldOptionsGroup">
|
2009-05-06 05:34:40 +02:00
|
|
|
<legend>Custom Rules</legend>
|
2009-06-25 07:07:00 +02:00
|
|
|
<ul id="{$FieldName}-customRules">
|
2009-05-06 05:34:40 +02:00
|
|
|
<li>
|
|
|
|
<a href="#" class="addCondition" title="<% _t('ADD', 'Add') %>">
|
|
|
|
Add Rule
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="addCustomRule">
|
2009-06-25 07:07:00 +02:00
|
|
|
<select name="{$FieldName}[CustomSettings][ShowOnLoad]">
|
2009-05-06 05:34:40 +02:00
|
|
|
<option value="Show" <% if ShowOnLoad %>selected="selected"<% end_if %>><% _t('SHOW', 'Show') %></option>
|
|
|
|
<option value="Hide" <% if ShowOnLoad %><% else %>selected="selected"<% end_if %>><% _t('HIDE', 'Hide') %></option>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<label class="left">Field On Default</label>
|
|
|
|
</li>
|
|
|
|
<li class="hidden">
|
2009-05-22 01:31:46 +02:00
|
|
|
<select class="displayOption customRuleField" name="{$FieldName}[CustomRules][Display]">
|
2009-05-06 05:34:40 +02:00
|
|
|
<option value="Show"><% _t('SHOWTHISFIELD', 'Show This Field') %></option>
|
|
|
|
<option value="Hide"><% _t('HIDETHISFIELD', 'Hide This Field') %></option>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<label><% _t('WHEN', 'When') %></label>
|
2009-05-22 01:31:46 +02:00
|
|
|
<select class="fieldOption customRuleField" name="{$FieldName}[CustomRules][ConditionField]">
|
2009-06-25 08:55:42 +02:00
|
|
|
<option></option>
|
|
|
|
<% control Parent %>
|
|
|
|
<% if Fields %>
|
|
|
|
<% control Fields %>
|
|
|
|
<option value="$Name"><% if Title %>$Title<% else %>$Name<% end_if %></option>
|
|
|
|
<% end_control %>
|
|
|
|
<% end_if %>
|
|
|
|
<% end_control %>
|
2009-05-06 05:34:40 +02:00
|
|
|
</select>
|
|
|
|
|
|
|
|
<label><% _t('IS', 'Is') %></label>
|
2009-05-22 01:31:46 +02:00
|
|
|
<select class="conditionOption customRuleField" name="{$FieldName}[CustomRules][ConditionOption]">
|
2009-05-06 05:34:40 +02:00
|
|
|
<option value=""></option>
|
|
|
|
<option value="IsBlank"><% _t('BLANK', 'Blank') %></option>
|
|
|
|
<option value="IsNotBlank"><% _t('NOTBLANK', 'Not Blank') %></option>
|
|
|
|
<option value="HasValue"><% _t('VALUE', 'Value') %></option>
|
|
|
|
<option value="ValueNot"><% _t('NOTVALUE', 'Not Value') %></option>
|
|
|
|
</select>
|
|
|
|
|
2009-05-22 01:31:46 +02:00
|
|
|
<input type="text" class="ruleValue hidden customRuleField" name="{$FieldName}[CustomRules][Value]" />
|
2009-05-06 05:34:40 +02:00
|
|
|
|
|
|
|
<a href="#" class="deleteCondition" title="<% _t('DELETE', 'Delete') %>"><img src="cms/images/delete.gif" alt="<% _t('DELETE', 'Delete') %>" /></a>
|
|
|
|
</li>
|
2009-04-24 00:52:08 +02:00
|
|
|
<% control CustomRules %>
|
2009-05-06 05:34:40 +02:00
|
|
|
<li>
|
2009-04-24 00:52:08 +02:00
|
|
|
<% include CustomRule %>
|
|
|
|
</li>
|
|
|
|
<% end_control %>
|
|
|
|
</ul>
|
2009-05-06 05:34:40 +02:00
|
|
|
</fieldset>
|
2008-09-29 05:18:23 +02:00
|
|
|
</div>
|
2009-04-17 04:26:40 +02:00
|
|
|
<% end_if %>
|
|
|
|
|
2009-04-18 04:49:46 +02:00
|
|
|
<!-- Hidden option Fields -->
|
2009-05-28 05:51:48 +02:00
|
|
|
<input type="hidden" class="canDeleteHidden" name="{$FieldName}[CanDelete]" value="$CanDelete" />
|
|
|
|
<input type="hidden" class="typeHidden" name="{$FieldName}[Type]" value="$ClassName" />
|
2009-06-25 08:55:42 +02:00
|
|
|
<input type="hidden" class="sortHidden" name="{$FieldName}[Sort]" value="$Sort" />
|
2009-04-18 04:49:46 +02:00
|
|
|
</li>
|