2009-06-25 08:55:42 +02:00
|
|
|
<select class="displayOption customRuleField" name="{$FieldName}[CustomRules][$Pos][Display]">
|
2013-11-06 14:23:47 +01:00
|
|
|
<option value="Show" <% if Display = Show %>selected="selected"<% end_if %>><% _t('CustomRule.SHOWTHISFIELD', 'Show This Field') %></option>
|
|
|
|
<option value="Hide" <% if Display = Hide %>selected="selected"<% end_if %>><% _t('CustomRule.HIDETHISFIELD', 'Hide This Field') %></option>
|
2009-04-24 00:52:08 +02:00
|
|
|
</select>
|
2011-10-21 23:02:04 +02:00
|
|
|
|
2013-11-06 14:23:47 +01:00
|
|
|
<label><% _t('CustomRule.WHEN', 'When') %></label>
|
2009-06-25 08:55:42 +02:00
|
|
|
<select class="fieldOption customRuleField" name="{$FieldName}[CustomRules][$Pos][ConditionField]">
|
2009-04-24 00:52:08 +02:00
|
|
|
<option value="" selected="selected"></option>
|
2013-03-21 10:51:35 +01:00
|
|
|
<% loop Fields %>
|
2010-07-07 11:17:37 +02:00
|
|
|
<option value="$Name" <% if isSelected %>selected="selected"<% end_if %>>$Title</option>
|
2013-03-21 10:51:35 +01:00
|
|
|
<% end_loop %>
|
2009-04-24 00:52:08 +02:00
|
|
|
</select>
|
|
|
|
|
2013-11-06 14:23:47 +01:00
|
|
|
<label><% _t('CustomRule.IS', 'Is') %></label>
|
2009-06-25 08:55:42 +02:00
|
|
|
<select class="conditionOption customRuleField" name="{$FieldName}[CustomRules][$Pos][ConditionOption]">
|
2013-11-06 14:23:47 +01:00
|
|
|
<option value="IsBlank" <% if ConditionOption = IsBlank %>selected="selected"<% end_if %>><% _t('CustomRule.BLANK', 'Blank') %></option>
|
|
|
|
<option value="IsNotBlank" <% if ConditionOption = IsNotBlank %>selected="selected"<% end_if %>><% _t('CustomRule.NOTBLANK', 'Not Blank') %></option>
|
|
|
|
<option value="HasValue" <% if ConditionOption = HasValue %>selected="selected"<% end_if %>><% _t('CustomRule.VALUE', 'Value') %></option>
|
|
|
|
<option value="ValueNot" <% if ConditionOption = ValueNot %>selected="selected"<% end_if %>><% _t('CustomRule.NOTVALUE', 'Not Value') %></option>
|
|
|
|
<option value="ValueLessThan" <% if ConditionOption = ValueLessThan %>selected="selected"<% end_if %>><% _t('CustomRule.LESSTHAN', 'Value Less Than') %></option>
|
|
|
|
<option value="ValueLessThanEqual" <% if ConditionOption = ValueLessThanEqual %>selected="selected"<% end_if %>><% _t('CustomRule.LESSTHANEQUAL', 'Value Less Than Or Equal') %></option>
|
|
|
|
<option value="ValueGreaterThan" <% if ConditionOption = ValueGreaterThan %>selected="selected"<% end_if %>><% _t('CustomRule.GREATERTHAN', 'Value Greater Than') %></option>
|
|
|
|
<option value="ValueGreaterThanEqual" <% if ConditionOption = ValueGreaterThanEqual %>selected="selected"<% end_if %>><% _t('CustomRule.GREATERTHANEQUAL', 'Value Greater Than Or Equal') %></option>
|
2009-04-24 00:52:08 +02:00
|
|
|
</select>
|
|
|
|
|
2011-03-06 03:47:01 +01:00
|
|
|
<input type="text" class="ruleValue <% if ConditionOption %><% if ConditionOption = IsBlank %>hidden<% else_if ConditionOption = IsNotBlank %>hidden<% end_if %><% else %>hidden<% end_if %> customRuleField" name="{$FieldName}[CustomRules][$Pos][Value]" value="$Value" />
|
2009-04-24 00:52:08 +02:00
|
|
|
|
2013-11-06 14:23:47 +01:00
|
|
|
<a href="#" class="deleteCondition" title="<% _t('CustomRule.DELETE', 'Delete') %>"><img src="cms/images/delete.gif" alt="<% _t('CustomRule.DELETE', 'Delete') %>" /></a>
|