mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
FIX: update templates for 3.1 template syntax
This commit is contained in:
parent
644dd58558
commit
b445a308ed
@ -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>
|
||||
|
@ -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,9 +18,9 @@
|
||||
<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') %>" />
|
||||
|
@ -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>
|
||||
|
@ -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 %>
|
||||
|
Loading…
Reference in New Issue
Block a user