2009-06-25 08:55:42 +02:00
<select class= "displayOption customRuleField" name= "{$FieldName}[CustomRules][$Pos][Display]" >
2009-04-24 00:52:08 +02:00
<option value= "Show" <% if Display = Show %>selected= "selected" <% end_if %>><% _t ( 'SHOWTHISFIELD ', 'Show This Field ' ) %></option>
<option value= "Hide" <% if Display = Hide %><% if First %><% else %>selected= "selected" <% end_if %><% end_if %>><% _t ( 'HIDETHISFIELD ', 'Hide This Field ' ) %></option>
</select>
<label><% _t ( '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>
<% control Fields %>
2010-07-07 11:17:37 +02:00
<option value= "$Name" <% if isSelected %>selected= "selected" <% end_if %>>$Title</option>
2009-04-24 00:52:08 +02:00
<% end_control %>
</select>
<label><% _t ( 'IS ', 'Is ' ) %></label>
2009-06-25 08:55:42 +02:00
<select class= "conditionOption customRuleField" name= "{$FieldName}[CustomRules][$Pos][ConditionOption]" >
2009-04-24 00:52:08 +02:00
<option value= "IsBlank" <% if ConditionOption = IsBlank %>selected= "selected" <% end_if %>><% _t ( 'BLANK ', 'Blank ' ) %></option>
<option value= "IsNotBlank" <% if ConditionOption = IsNotBlank %>selected= "selected" <% end_if %>><% _t ( 'NOTBLANK ', 'Not Blank ' ) %></option>
<option value= "HasValue" <% if ConditionOption = HasValue %>selected= "selected" <% end_if %>><% _t ( 'VALUE ', 'Value ' ) %></option>
<option value= "ValueNot" <% if ConditionOption = ValueNot %>selected= "selected" <% end_if %>><% _t ( 'NOTVALUE ', 'Not Value ' ) %></option>
2009-11-02 08:22:30 +01:00
<option value= "ValueLessThan" <% if ConditionOption = ValueLessThan %>selected= "selected" <% end_if %>><% _t ( 'LESSTHAN ', 'Value Less Than ' ) %></option>
<option value= "ValueLessThanEqual" <% if ConditionOption = ValueLessThanEqual %>selected= "selected" <% end_if %>><% _t ( 'LESSTHANEQUAL ', 'Value Less Than Or Equal ' ) %></option>
<option value= "ValueGreaterThan" <% if ConditionOption = ValueGreaterThan %>selected= "selected" <% end_if %>><% _t ( 'GREATERTHAN ', 'Value Greater Than ' ) %></option>
<option value= "ValueGreaterThanEqual" <% if ConditionOption = ValueGreaterThanEqual %>selected= "selected" <% end_if %>><% _t ( 'GREATERTHANEQUAL ', 'Value Greater Than Or Equal ' ) %></option>
2009-04-24 00:52:08 +02:00
</select>
2009-06-25 08:55:42 +02:00
<input type= "text" class= "ruleValue <% if Value %><% else %>hidden<% end_if %> customRuleField" name= "{$FieldName}[CustomRules][$Pos][Value]" value= "$Value" />
2009-04-24 00:52:08 +02:00
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>