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">
|
<ul class="editableOptions" id="$FieldName.ATT-list">
|
||||||
|
|
||||||
<% if canEdit %>
|
<% if canEdit %>
|
||||||
<% control Options %>
|
<% loop Options %>
|
||||||
$EditSegment
|
$EditSegment
|
||||||
<% end_control %>
|
<% end_loop %>
|
||||||
<% if HasAddableOptions %>
|
<% if HasAddableOptions %>
|
||||||
<li class="{$ClassName}Option">
|
<li class="{$ClassName}Option">
|
||||||
<a href="#" rel="$ID" class="addableOption" title="<% _t('ADD', 'Add option to field') %>">
|
<a href="#" rel="$ID" class="addableOption" title="<% _t('ADD', 'Add option to field') %>">
|
||||||
@ -41,9 +41,9 @@
|
|||||||
</li>
|
</li>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<% control Options %>
|
<% loop Options %>
|
||||||
$ReadonlyOption
|
$ReadonlyOption
|
||||||
<% end_control %>
|
<% end_loop %>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
</ul>
|
</ul>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
@ -52,18 +52,18 @@
|
|||||||
<% if FieldConfiguration %>
|
<% if FieldConfiguration %>
|
||||||
<fieldset class="fieldOptionsGroup">
|
<fieldset class="fieldOptionsGroup">
|
||||||
<legend><% _t('FIELDCONFIGURATION', 'Field Configuration') %></legend>
|
<legend><% _t('FIELDCONFIGURATION', 'Field Configuration') %></legend>
|
||||||
<% control FieldConfiguration %>
|
<% loop FieldConfiguration %>
|
||||||
$FieldHolder
|
$FieldHolder
|
||||||
<% end_control %>
|
<% end_loop %>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
|
||||||
<% if FieldValidationOptions %>
|
<% if FieldValidationOptions %>
|
||||||
<fieldset class="fieldOptionsGroup">
|
<fieldset class="fieldOptionsGroup">
|
||||||
<legend><% _t('VALIDATION', 'Validation') %></legend>
|
<legend><% _t('VALIDATION', 'Validation') %></legend>
|
||||||
<% control FieldValidationOptions %>
|
<% loop FieldValidationOptions %>
|
||||||
$FieldHolder
|
$FieldHolder
|
||||||
<% end_control %>
|
<% end_loop %>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
|
||||||
@ -90,13 +90,13 @@
|
|||||||
<label><% _t('WHEN', 'When') %></label>
|
<label><% _t('WHEN', 'When') %></label>
|
||||||
<select class="fieldOption customRuleField" name="{$FieldName}[CustomRules][ConditionField]">
|
<select class="fieldOption customRuleField" name="{$FieldName}[CustomRules][ConditionField]">
|
||||||
<option></option>
|
<option></option>
|
||||||
<% control Parent %>
|
<% loop Parent %>
|
||||||
<% if Fields %>
|
<% if Fields %>
|
||||||
<% control Fields %>
|
<% loop Fields %>
|
||||||
<option value="$Name"><% if Title %>$Title<% else %>$Name<% end_if %></option>
|
<option value="$Name"><% if Title %>$Title<% else %>$Name<% end_if %></option>
|
||||||
<% end_control %>
|
<% end_loop %>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
<% end_control %>
|
<% end_loop %>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<label><% _t('IS', 'Is') %></label>
|
<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>
|
<a href="#" class="deleteCondition" title="<% _t('DELETE', 'Delete') %>"><img src="cms/images/delete.gif" alt="<% _t('DELETE', 'Delete') %>" /></a>
|
||||||
</li>
|
</li>
|
||||||
<% if CustomRules %>
|
<% if CustomRules %>
|
||||||
<% control CustomRules %>
|
<% loop CustomRules %>
|
||||||
<li>
|
<li>
|
||||||
<% include CustomRule %>
|
<% include CustomRule %>
|
||||||
</li>
|
</li>
|
||||||
<% end_control %>
|
<% end_loop %>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
</ul>
|
</ul>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
|
|
||||||
<div class="FieldListHold">
|
<div class="FieldListHold">
|
||||||
<ul class="FieldList" id="Fields_fields">
|
<ul class="FieldList" id="Fields_fields">
|
||||||
<% control Fields %>
|
<% loop Fields %>
|
||||||
$EditSegment
|
$EditSegment
|
||||||
<% end_control %>
|
<% end_loop %>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -18,9 +18,9 @@
|
|||||||
<select name="AddUserFormField" id="AddUserFormField">
|
<select name="AddUserFormField" id="AddUserFormField">
|
||||||
<option value=""><% _t('SELECTAFIELD', 'Select a Field') %></option>
|
<option value=""><% _t('SELECTAFIELD', 'Select a Field') %></option>
|
||||||
|
|
||||||
<% control CreatableFields %>
|
<% loop CreatableFields %>
|
||||||
<option value="$ClassName">$Title</option>
|
<option value="$ClassName">$Title</option>
|
||||||
<% end_control %>
|
<% end_loop %>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<input type="submit" class="action" value="<% _t('ADD', 'Add') %>" />
|
<input type="submit" class="action" value="<% _t('ADD', 'Add') %>" />
|
||||||
|
@ -6,9 +6,9 @@
|
|||||||
<label><% _t('WHEN', 'When') %></label>
|
<label><% _t('WHEN', 'When') %></label>
|
||||||
<select class="fieldOption customRuleField" name="{$FieldName}[CustomRules][$Pos][ConditionField]">
|
<select class="fieldOption customRuleField" name="{$FieldName}[CustomRules][$Pos][ConditionField]">
|
||||||
<option value="" selected="selected"></option>
|
<option value="" selected="selected"></option>
|
||||||
<% control Fields %>
|
<% loop Fields %>
|
||||||
<option value="$Name" <% if isSelected %>selected="selected"<% end_if %>>$Title</option>
|
<option value="$Name" <% if isSelected %>selected="selected"<% end_if %>>$Title</option>
|
||||||
<% end_control %>
|
<% end_loop %>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<label><% _t('IS', 'Is') %></label>
|
<label><% _t('IS', 'Is') %></label>
|
||||||
|
@ -4,9 +4,9 @@ $Body
|
|||||||
<% if HideFormData %>
|
<% if HideFormData %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<dl>
|
<dl>
|
||||||
<% control Fields %>
|
<% loop Fields %>
|
||||||
<dt><strong><% if Title %>$Title<% else %>$Name<% end_if %></strong></dt>
|
<dt><strong><% if Title %>$Title<% else %>$Name<% end_if %></strong></dt>
|
||||||
<dd style="margin: 4px 0 14px 0">$FormattedValue</dd>
|
<dd style="margin: 4px 0 14px 0">$FormattedValue</dd>
|
||||||
<% end_control %>
|
<% end_loop %>
|
||||||
</dl>
|
</dl>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
Loading…
Reference in New Issue
Block a user