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 -->
|
2010-07-07 11:17:37 +02:00
|
|
|
<li class="$ClassName EditableFormField" id="$Name.ATT EditableItem_$Pos $Name">
|
2009-04-21 07:10:39 +02:00
|
|
|
<div class="fieldInfo">
|
2010-09-03 07:06:13 +02:00
|
|
|
<% if canEdit %>
|
2012-05-07 07:06:37 +02:00
|
|
|
<img class="fieldHandler" src="$ModulePath(framework)/images/drag.gif" alt="<% _t('DRAG', 'Drag to rearrange order of fields') %>" />
|
2010-09-03 07:06:13 +02:00
|
|
|
<% else %>
|
2012-05-07 07:06:37 +02:00
|
|
|
<img class="fieldHandler" src="$ModulePath(framework)/images/drag_readonly.gif" alt="<% _t('LOCKED', 'These fields cannot be modified') %>" />
|
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 %>
|
2009-09-15 06:58:00 +02:00
|
|
|
<div class="extraOptions hidden" id="$Name.ATT-extraOptions">
|
2009-05-06 05:34:40 +02:00
|
|
|
<% if HasAddableOptions %>
|
|
|
|
<fieldset class="fieldOptionsGroup">
|
|
|
|
<legend><% _t('OPTIONS', 'Options') %></legend>
|
2009-09-15 06:58:00 +02:00
|
|
|
<ul class="editableOptions" id="$FieldName.ATT-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-07-10 06:51:24 +02:00
|
|
|
<legend><% _t('CUSTOMRULES', 'Custom Rules') %></legend>
|
2009-06-25 07:07:00 +02:00
|
|
|
<ul id="{$FieldName}-customRules">
|
2009-05-06 05:34:40 +02:00
|
|
|
<li>
|
2009-07-10 06:51:24 +02:00
|
|
|
<a href="#" class="addCondition" title="<% _t('ADD', 'Add') %>"><% _t('ADDRULE', 'Add Rule') %></a>
|
2009-05-06 05:34:40 +02:00
|
|
|
</li>
|
2009-12-06 23:41:47 +01:00
|
|
|
<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>
|
|
|
|
|
2009-07-10 06:51:24 +02:00
|
|
|
<label class="left"><% _t('FIELDONDEFAULT', 'Field On Default') %></label>
|
2009-05-06 05:34:40 +02:00
|
|
|
</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>
|
2009-11-02 08:22:30 +01:00
|
|
|
<option value="ValueLessThan"><% _t('LESSTHAN', 'Value Less Than') %></option>
|
|
|
|
<option value="ValueLessThanEqual"><% _t('LESSTHANEQUAL', 'Value Less Than Or Equal') %></option>
|
|
|
|
<option value="ValueGreaterThan"><% _t('GREATERTHAN', 'Value Greater Than') %></option>
|
|
|
|
<option value="ValueGreaterThanEqual"><% _t('GREATERTHANEQUAL', 'Value Greater Than Or Equal') %></option>
|
2009-05-06 05:34:40 +02:00
|
|
|
</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>
|
2011-03-06 03:47:01 +01:00
|
|
|
<% if CustomRules %>
|
|
|
|
<% control CustomRules %>
|
|
|
|
<li>
|
|
|
|
<% include CustomRule %>
|
|
|
|
</li>
|
|
|
|
<% end_control %>
|
|
|
|
<% end_if %>
|
2009-04-24 00:52:08 +02:00
|
|
|
</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="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>
|