FIX: update templates for 3.1 template syntax

This commit is contained in:
ARNHOE 2013-03-21 10:51:35 +01:00 committed by Will Rossiter
parent 644dd58558
commit b445a308ed
4 changed files with 23 additions and 23 deletions

View File

@ -30,9 +30,9 @@
<ul class="editableOptions" id="$FieldName.ATT-list">
<% if canEdit %>
<% control Options %>
<% loop Options %>
$EditSegment
<% end_control %>
<% end_loop %>
<% if HasAddableOptions %>
<li class="{$ClassName}Option">
<a href="#" rel="$ID" class="addableOption" title="<% _t('ADD', 'Add option to field') %>">
@ -41,9 +41,9 @@
</li>
<% end_if %>
<% else %>
<% control Options %>
<% loop Options %>
$ReadonlyOption
<% end_control %>
<% end_loop %>
<% end_if %>
</ul>
</fieldset>
@ -52,18 +52,18 @@
<% if FieldConfiguration %>
<fieldset class="fieldOptionsGroup">
<legend><% _t('FIELDCONFIGURATION', 'Field Configuration') %></legend>
<% control FieldConfiguration %>
<% loop FieldConfiguration %>
$FieldHolder
<% end_control %>
<% end_loop %>
</fieldset>
<% end_if %>
<% if FieldValidationOptions %>
<fieldset class="fieldOptionsGroup">
<legend><% _t('VALIDATION', 'Validation') %></legend>
<% control FieldValidationOptions %>
<% loop FieldValidationOptions %>
$FieldHolder
<% end_control %>
<% end_loop %>
</fieldset>
<% end_if %>
@ -90,13 +90,13 @@
<label><% _t('WHEN', 'When') %></label>
<select class="fieldOption customRuleField" name="{$FieldName}[CustomRules][ConditionField]">
<option></option>
<% control Parent %>
<% loop Parent %>
<% if Fields %>
<% control Fields %>
<% loop Fields %>
<option value="$Name"><% if Title %>$Title<% else %>$Name<% end_if %></option>
<% end_control %>
<% end_loop %>
<% end_if %>
<% end_control %>
<% end_loop %>
</select>
<label><% _t('IS', 'Is') %></label>
@ -117,11 +117,11 @@
<a href="#" class="deleteCondition" title="<% _t('DELETE', 'Delete') %>"><img src="cms/images/delete.gif" alt="<% _t('DELETE', 'Delete') %>" /></a>
</li>
<% if CustomRules %>
<% control CustomRules %>
<% loop CustomRules %>
<li>
<% include CustomRule %>
</li>
<% end_control %>
<% end_loop %>
<% end_if %>
</ul>
</fieldset>

View File

@ -5,9 +5,9 @@
<div class="FieldListHold">
<ul class="FieldList" id="Fields_fields">
<% control Fields %>
<% loop Fields %>
$EditSegment
<% end_control %>
<% end_loop %>
</ul>
</div>
@ -18,13 +18,13 @@
<select name="AddUserFormField" id="AddUserFormField">
<option value=""><% _t('SELECTAFIELD', 'Select a Field') %></option>
<% control CreatableFields %>
<% loop CreatableFields %>
<option value="$ClassName">$Title</option>
<% end_control %>
<% end_loop %>
</select>
<input type="submit" class="action" value="<% _t('ADD', 'Add') %>" />
</div>
<% end_if %>
</div>
</div>

View File

@ -6,9 +6,9 @@
<label><% _t('WHEN', 'When') %></label>
<select class="fieldOption customRuleField" name="{$FieldName}[CustomRules][$Pos][ConditionField]">
<option value="" selected="selected"></option>
<% control Fields %>
<% loop Fields %>
<option value="$Name" <% if isSelected %>selected="selected"<% end_if %>>$Title</option>
<% end_control %>
<% end_loop %>
</select>
<label><% _t('IS', 'Is') %></label>

View File

@ -4,9 +4,9 @@ $Body
<% if HideFormData %>
<% else %>
<dl>
<% control Fields %>
<% loop Fields %>
<dt><strong><% if Title %>$Title<% else %>$Name<% end_if %></strong></dt>
<dd style="margin: 4px 0 14px 0">$FormattedValue</dd>
<% end_control %>
<% end_loop %>
</dl>
<% end_if %>