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-04-21 07:10:39 +02:00
|
|
|
<a class="moreOptions" href="#" title="<% _t('MOREOPTIONS', 'More Options') %>"><% _t('MOREOPTIONS','More Options') %></a>
|
2009-04-17 04:26:40 +02:00
|
|
|
<% end_if %>
|
|
|
|
|
2009-04-21 07:10:39 +02:00
|
|
|
<% if CanDelete %>
|
|
|
|
<a class="delete" href="#" title="<% _t('DELETE', 'Delete') %>">
|
|
|
|
<% _t('DELETE', 'Delete') %>
|
|
|
|
</a>
|
|
|
|
<% end_if %>
|
|
|
|
</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>
|
|
|
|
<ul class="editableOptions" id="$Name.Attr-list">
|
2009-04-17 04:26:40 +02:00
|
|
|
|
2009-05-06 05:34:40 +02:00
|
|
|
<% if isReadonly %>
|
|
|
|
<% control Options %>
|
|
|
|
$ReadonlyOption
|
|
|
|
<% end_control %>
|
|
|
|
<% else %>
|
|
|
|
<% 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 %>
|
|
|
|
<% 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 %>
|
|
|
|
<fieldset class="customRules fieldOptionsGroup">
|
|
|
|
<legend>Custom Rules</legend>
|
2009-04-24 00:52:08 +02:00
|
|
|
<ul id="$Name.Attr-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">
|
|
|
|
<select name="$Name.Attr[CustomSettings][ShowOnLoad]">
|
|
|
|
<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">
|
|
|
|
<select class="displayOption customRuleField" name="{$Name}[CustomRules][Display]">
|
|
|
|
<option value="Show"><% _t('SHOWTHISFIELD', 'Show This Field') %></option>
|
|
|
|
<option value="Hide"><% _t('HIDETHISFIELD', 'Hide This Field') %></option>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<label><% _t('WHEN', 'When') %></label>
|
|
|
|
<select class="fieldOption customRuleField" name="{$Name}[CustomRules][ConditionField]">
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<label><% _t('IS', 'Is') %></label>
|
|
|
|
<select class="conditionOption customRuleField" name="{$Name}[CustomRules][ConditionOption]">
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<input type="text" class="ruleValue hidden customRuleField" name="{$Name}[CustomRules][Value]" />
|
|
|
|
|
|
|
|
<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 -->
|
|
|
|
<input type="hidden" class="canDeleteHidden" name="$Name.Attr[CanDelete]" value="$CanDelete" />
|
|
|
|
<input type="hidden" class="typeHidden" name="$Name.Attr[Type]" value="$ClassName" />
|
2009-04-20 01:52:44 +02:00
|
|
|
<input type="hidden" class="sortHidden" name="$Name.Attr[Sort]" value="$Sort" />
|
2009-04-18 04:49:46 +02:00
|
|
|
</li>
|