Updated loop/if/with to be more consistent

This commit is contained in:
ARNHOE 2013-07-13 13:00:46 +02:00 committed by Cam Spiers
parent d80b16597a
commit 2427d57fa5
47 changed files with 176 additions and 170 deletions

View File

@ -1,15 +1,15 @@
<div class="breadcrumbs-wrapper" data-pjax-fragment="Breadcrumbs"> <div class="breadcrumbs-wrapper" data-pjax-fragment="Breadcrumbs">
<h2 id="page-title-heading"> <h2 id="page-title-heading">
<% if ToplevelController %> <% if $ToplevelController %>
<span class="section-icon icon icon-16 icon-{$ToplevelController.MenuCurrentItem.Code.LowerCase}"></span> <span class="section-icon icon icon-16 icon-{$ToplevelController.MenuCurrentItem.Code.LowerCase}"></span>
<% else_if Controller %> <% else_if $Controller %>
<span class="section-icon icon icon-16 icon-{$Controller.MenuCurrentItem.Code.LowerCase}"></span> <span class="section-icon icon icon-16 icon-{$Controller.MenuCurrentItem.Code.LowerCase}"></span>
<% else %> <% else %>
<span class="section-icon icon icon-16 icon-{$MenuCurrentItem.Code.LowerCase}"></span> <span class="section-icon icon icon-16 icon-{$MenuCurrentItem.Code.LowerCase}"></span>
<% end_if %> <% end_if %>
<% loop Breadcrumbs %> <% loop $Breadcrumbs %>
<% if Last %> <% if $Last %>
<span class="cms-panel-link crumb last">$Title.XML</span> <span class="cms-panel-link crumb last">$Title.XML</span>
<% else %> <% else %>
<a class="cms-panel-link crumb" href="$Link">$Title.XML</a> <a class="cms-panel-link crumb" href="$Link">$Title.XML</a>

View File

@ -1,18 +1,18 @@
<div id="settings-controller-cms-content" class="cms-content center cms-tabset $BaseCSSClasses" data-layout-type="border" data-pjax-fragment="Content CurrentForm"> <div id="settings-controller-cms-content" class="cms-content center cms-tabset $BaseCSSClasses" data-layout-type="border" data-pjax-fragment="Content CurrentForm">
<div class="cms-content-header north"> <div class="cms-content-header north">
<% with EditForm %> <% with $EditForm %>
<div class="cms-content-header-info"> <div class="cms-content-header-info">
<% with Controller %> <% with $Controller %>
<% include CMSBreadcrumbs %> <% include CMSBreadcrumbs %>
<% end_with %> <% end_with %>
</div> </div>
<% if Fields.hasTabset %> <% if $Fields.hasTabset %>
<% with Fields.fieldByName('Root') %> <% with $Fields.fieldByName('Root') %>
<div class="cms-content-header-tabs"> <div class="cms-content-header-tabs">
<ul class="cms-tabset-nav-primary"> <ul class="cms-tabset-nav-primary">
<% loop Tabs %> <% loop $Tabs %>
<li<% if extraClass %> class="$extraClass"<% end_if %>><a href="#$id">$Title</a></li> <li<% if $extraClass %> class="$extraClass"<% end_if %>><a href="#$id">$Title</a></li>
<% end_loop %> <% end_loop %>
</ul> </ul>
</div> </div>

View File

@ -5,12 +5,12 @@
<%-- e.g. through LeftAndMain_EditForm.ss. --%> <%-- e.g. through LeftAndMain_EditForm.ss. --%>
<div $AttributesHTML> <div $AttributesHTML>
<% loop Tabs %> <% loop $Tabs %>
<% if Tabs %> <% if $Tabs %>
$FieldHolder $FieldHolder
<% else %> <% else %>
<div $AttributesHTML> <div $AttributesHTML>
<% loop Fields %> <% loop $Fields %>
$FieldHolder $FieldHolder
<% end_loop %> <% end_loop %>
</div> </div>

View File

@ -1,7 +1,7 @@
<% if Backlink %> <% if $Backlink %>
<div class="cms_backlink"> <div class="cms_backlink">
<a class="backlink ss-ui-button cms-panel-link" data-icon="back" href="$Backlink"> <a class="backlink ss-ui-button cms-panel-link" data-icon="back" href="$Backlink">
<% _t('BackLink_Button.ss.Back', 'Back') %> <% _t('BackLink_Button.ss.Back', 'Back') %>
</a> </a>
</div> </div>
<% end_if %> <% end_if %>

View File

@ -1,7 +1,7 @@
<% if ToplevelController %> <% if $ToplevelController %>
<span class="section-icon icon icon-16 icon-{$ToplevelController.MenuCurrentItem.Code.LowerCase}"></span> <span class="section-icon icon icon-16 icon-{$ToplevelController.MenuCurrentItem.Code.LowerCase}"></span>
<% else_if Controller %> <% else_if $Controller %>
<span class="section-icon icon icon-16 icon-{$Controller.MenuCurrentItem.Code.LowerCase}"></span> <span class="section-icon icon icon-16 icon-{$Controller.MenuCurrentItem.Code.LowerCase}"></span>
<% else %> <% else %>
<span class="section-icon icon icon-16 icon-{$MenuCurrentItem.Code.LowerCase}"></span> <span class="section-icon icon icon-16 icon-{$MenuCurrentItem.Code.LowerCase}"></span>
<% end_if %> <% end_if %>

View File

@ -1,20 +1,20 @@
<% with EditorToolbar %> <% with $EditorToolbar %>
<div class="mceToolbarExternal" id="mce_editor_toolbar"> <div class="mceToolbarExternal" id="mce_editor_toolbar">
<table width="100%" border="0"> <table width="100%" border="0">
<tbody> <tbody>
<tr> <tr>
<td> <td>
<% loop Buttons %> <% loop $Buttons %>
<% if Type = button %> <% if $Type = button %>
<a href="#$Command"> <a href="#$Command">
<img width="20" height="20" class="mceButtonNormal" title="$Title" alt="$Title" src="$Icon" id="mce_editor_$IDSegment" /> <img width="20" height="20" class="mceButtonNormal" title="$Title" alt="$Title" src="$Icon" id="mce_editor_$IDSegment" />
</a> </a>
<% else_if Type = dropdown %> <% else_if $Type = dropdown %>
<select name="$Command" class="mceSelectList" id="mce_editor_$IDSegment">$Options</select> <select name="$Command" class="mceSelectList" id="mce_editor_$IDSegment">$Options</select>
<% else_if Type = separator %> <% else_if $Type = separator %>
<img width="1" height="15" class="mceSeparatorLine" src="{$MceRoot}themes/advanced/images/separator.gif" alt="|" /> <img width="1" height="15" class="mceSeparatorLine" src="{$MceRoot}themes/advanced/images/separator.gif" alt="|" />
<% else_if Type = break %> <% else_if $Type = break %>
<br /> <br />
<% end_if %> <% end_if %>
<% end_loop %> <% end_loop %>

View File

@ -1,19 +1,19 @@
<% if IncludeFormTag %> <% if $IncludeFormTag %>
<form $FormAttributes data-layout-type="border"> <form $FormAttributes data-layout-type="border">
<% end_if %> <% end_if %>
<div class="cms-content-header north"> <div class="cms-content-header north">
<div class="cms-content-header-info"> <div class="cms-content-header-info">
<% include BackLink_Button %> <% include BackLink_Button %>
<% with Controller %> <% with $Controller %>
<% include CMSBreadcrumbs %> <% include CMSBreadcrumbs %>
<% end_with %> <% end_with %>
</div> </div>
<% if Fields.hasTabset %> <% if $Fields.hasTabset %>
<% with Fields.fieldByName('Root') %> <% with $Fields.fieldByName('Root') %>
<div class="cms-content-header-tabs cms-tabset-nav-primary"> <div class="cms-content-header-tabs cms-tabset-nav-primary">
<ul> <ul>
<% loop Tabs %> <% loop $Tabs %>
<li<% if extraClass %> class="$extraClass"<% end_if %>><a href="#$id">$Title</a></li> <li<% if $extraClass %> class="$extraClass"<% end_if %>><a href="#$id">$Title</a></li>
<% end_loop %> <% end_loop %>
</ul> </ul>
</div> </div>
@ -23,20 +23,20 @@
<!-- <div class="cms-content-search">...</div> --> <!-- <div class="cms-content-search">...</div> -->
</div> </div>
<% with Controller %> <% with $Controller %>
$EditFormTools $EditFormTools
<% end_with %> <% end_with %>
<div class="cms-content-fields center <% if not $Fields.hasTabset %>cms-panel-padded<% end_if %>"> <div class="cms-content-fields center <% if not $Fields.hasTabset %>cms-panel-padded<% end_if %>">
<% if Message %> <% if $Message %>
<p id="{$FormName}_error" class="message $MessageType">$Message</p> <p id="{$FormName}_error" class="message $MessageType">$Message</p>
<% else %> <% else %>
<p id="{$FormName}_error" class="message $MessageType" style="display: none"></p> <p id="{$FormName}_error" class="message $MessageType" style="display: none"></p>
<% end_if %> <% end_if %>
<fieldset> <fieldset>
<% if Legend %><legend>$Legend</legend><% end_if %> <% if $Legend %><legend>$Legend</legend><% end_if %>
<% loop Fields %> <% loop $Fields %>
$FieldHolder $FieldHolder
<% end_loop %> <% end_loop %>
<div class="clear"><!-- --></div> <div class="clear"><!-- --></div>
@ -44,12 +44,12 @@
</div> </div>
<div class="cms-content-actions cms-content-controls south"> <div class="cms-content-actions cms-content-controls south">
<% if Actions %> <% if $Actions %>
<div class="Actions"> <div class="Actions">
<% loop Actions %> <% loop $Actions %>
$Field $Field
<% end_loop %> <% end_loop %>
<% if Controller.LinkPreview %> <% if $Controller.LinkPreview %>
<a href="$Controller.LinkPreview" class="cms-preview-toggle-link ss-ui-button" data-icon="preview"> <a href="$Controller.LinkPreview" class="cms-preview-toggle-link ss-ui-button" data-icon="preview">
<% _t('LeftAndMain.PreviewButton', 'Preview') %> &raquo; <% _t('LeftAndMain.PreviewButton', 'Preview') %> &raquo;
</a> </a>
@ -57,6 +57,6 @@
</div> </div>
<% end_if %> <% end_if %>
</div> </div>
<% if IncludeFormTag %> <% if $IncludeFormTag %>
</form> </form>
<% end_if %> <% end_if %>

View File

@ -2,18 +2,18 @@
<div class="cms-logo-header north"> <div class="cms-logo-header north">
<div class="cms-logo"> <div class="cms-logo">
<a href="$ApplicationLink" target="_blank" title="$ApplicationName (Version - $CMSVersion)"> <a href="$ApplicationLink" target="_blank" title="$ApplicationName (Version - $CMSVersion)">
$ApplicationName <% if CMSVersion %><abbr class="version">$CMSVersion</abbr><% end_if %> $ApplicationName <% if $CMSVersion %><abbr class="version">$CMSVersion</abbr><% end_if %>
</a> </a>
<span><% if SiteConfig %>$SiteConfig.Title<% else %>$ApplicationName<% end_if %></span> <span><% if $SiteConfig %>$SiteConfig.Title<% else %>$ApplicationName<% end_if %></span>
</div> </div>
<div class="cms-login-status"> <div class="cms-login-status">
<a href="Security/logout" class="logout-link" title="<% _t('LeftAndMain_Menu.ss.LOGOUT','Log out') %>"><% _t('LeftAndMain_Menu.ss.LOGOUT','Log out') %></a> <a href="Security/logout" class="logout-link" title="<% _t('LeftAndMain_Menu.ss.LOGOUT','Log out') %>"><% _t('LeftAndMain_Menu.ss.LOGOUT','Log out') %></a>
<% with CurrentMember %> <% with $CurrentMember %>
<span> <span>
<% _t('LeftAndMain_Menu.ss.Hello','Hi') %> <% _t('LeftAndMain_Menu.ss.Hello','Hi') %>
<a href="{$AbsoluteBaseURL}admin/myprofile" class="profile-link"> <a href="{$AbsoluteBaseURL}admin/myprofile" class="profile-link">
<% if FirstName && Surname %>$FirstName $Surname<% else_if FirstName %>$FirstName<% else %>$Email<% end_if %> <% if $FirstName && $Surname %>$FirstName $Surname<% else_if $FirstName %>$FirstName<% else %>$Email<% end_if %>
</a> </a>
</span> </span>
<% end_with %> <% end_with %>
@ -22,9 +22,9 @@
<div class="cms-panel-content center"> <div class="cms-panel-content center">
<ul class="cms-menu-list"> <ul class="cms-menu-list">
<% loop MainMenu %> <% loop $MainMenu %>
<li class="$LinkingMode $FirstLast <% if LinkingMode == 'link' %><% else %>opened<% end_if %>" id="Menu-$Code" title="$Title.ATT"> <li class="$LinkingMode $FirstLast <% if $LinkingMode == 'link' %><% else %>opened<% end_if %>" id="Menu-$Code" title="$Title.ATT">
<a href="$Link" <% if Code == 'Help' %>target="_blank"<% end_if%>> <a href="$Link" <% if $Code == 'Help' %>target="_blank"<% end_if%>>
<span class="icon icon-16 icon-{$Code.LowerCase}">&nbsp;</span> <span class="icon icon-16 icon-{$Code.LowerCase}">&nbsp;</span>
<span class="text">$Title</span> <span class="text">$Title</span>
</a> </a>

View File

@ -19,13 +19,13 @@
</select> </select>
</span> </span>
<% if Items %> <% if $Items %>
<% if Items.Count < 5 %> <% if $Items.Count < 5 %>
<fieldset id="preview-states" class="cms-preview-states switch-states size_{$Items.Count}"> <fieldset id="preview-states" class="cms-preview-states switch-states size_{$Items.Count}">
<div class="switch"> <div class="switch">
<% loop Items %> <% loop $Items %>
<input id="$Title" data-name="$Name" class="state-name $FirstLast" data-link="$Link" name="view" type="radio" <% if isActive %>checked<% end_if %>> <input id="$Title" data-name="$Name" class="state-name $FirstLast" data-link="$Link" name="view" type="radio" <% if $isActive %>checked<% end_if %>>
<label for="$Title"<% if isActive %> class="active"<% end_if %>><span>$Title</span></label> <label for="$Title"<% if $isActive %> class="active"<% end_if %>><span>$Title</span></label>
<% end_loop %> <% end_loop %>
<span class="slide-button"></span> <span class="slide-button"></span>
</div> </div>
@ -33,8 +33,8 @@
<% else %> <% else %>
<span id="preview-state-dropdown" class="cms-preview-states field dropdown"> <span id="preview-state-dropdown" class="cms-preview-states field dropdown">
<select title="<% _t('SilverStripeNavigator.PreviewState', 'Preview State') %>" id="preview-states" class="preview-state dropdown nolabel" autocomplete="off" name="preview-state"> <select title="<% _t('SilverStripeNavigator.PreviewState', 'Preview State') %>" id="preview-states" class="preview-state dropdown nolabel" autocomplete="off" name="preview-state">
<% loop Items %> <% loop $Items %>
<option name="$Name" data-name="$Name" data-link="$Link" class="state-name $FirstLast" value="$Link" <% if isActive %>selected<% end_if %>> <option name="$Name" data-name="$Name" data-link="$Link" class="state-name $FirstLast" value="$Link" <% if $isActive %>selected<% end_if %>>
$Title $Title
</option> </option>
<% end_loop %> <% end_loop %>
@ -42,4 +42,4 @@
</span> </span>
<% end_if %> <% end_if %>
<% end_if %> <% end_if %>
</div> </div>

View File

@ -4,7 +4,7 @@
<div class="cms-content-header-info"> <div class="cms-content-header-info">
<h2> <h2>
<% include CMSSectionIcon %> <% include CMSSectionIcon %>
<% if SectionTitle %> <% if $SectionTitle %>
$SectionTitle $SectionTitle
<% else %> <% else %>
<% _t('ModelAdmin.Title', 'Data Models') %> <% _t('ModelAdmin.Title', 'Data Models') %>
@ -14,7 +14,7 @@
<div class="cms-content-header-tabs cms-tabset-nav-primary ss-ui-tabs-nav"> <div class="cms-content-header-tabs cms-tabset-nav-primary ss-ui-tabs-nav">
<ul> <ul>
<% loop ManagedModelTabs %> <% loop $ManagedModelTabs %>
<li class="tab-$ClassName $LinkOrCurrent<% if $LinkOrCurrent == 'current' %> ui-tabs-active<% end_if %>"> <li class="tab-$ClassName $LinkOrCurrent<% if $LinkOrCurrent == 'current' %> ui-tabs-active<% end_if %>">
<a href="$Link" class="cms-panel-link" title="Form_EditForm">$Title</a> <a href="$Link" class="cms-panel-link" title="Form_EditForm">$Title</a>
</li> </li>

View File

@ -3,7 +3,7 @@
<div class="details" id="SpecDetailsFor{$ModelName}"> <div class="details" id="SpecDetailsFor{$ModelName}">
<h4><% sprintf(_t('ModelAdmin_ImportSpec.ss.IMPORTSPECTITLE', 'Specification for %s'),$ModelName) %></h4> <h4><% sprintf(_t('ModelAdmin_ImportSpec.ss.IMPORTSPECTITLE', 'Specification for %s'),$ModelName) %></h4>
<h5><% _t('ModelAdmin_ImportSpec.ss.IMPORTSPECFIELDS', 'Database columns') %></h5> <h5><% _t('ModelAdmin_ImportSpec.ss.IMPORTSPECFIELDS', 'Database columns') %></h5>
<% loop Fields %> <% loop $Fields %>
<dl> <dl>
<dt><em>$Name</em></dt> <dt><em>$Name</em></dt>
<dd>$Description</dd> <dd>$Description</dd>
@ -11,7 +11,7 @@
<% end_loop %> <% end_loop %>
<h5><% _t('ModelAdmin_ImportSpec.ss.IMPORTSPECRELATIONS', 'Relations') %></h5> <h5><% _t('ModelAdmin_ImportSpec.ss.IMPORTSPECRELATIONS', 'Relations') %></h5>
<% loop Relations %> <% loop $Relations %>
<dl> <dl>
<dt><em>$Name</em></dt> <dt><em>$Name</em></dt>
<dd>$Description</dd> <dd>$Description</dd>

View File

@ -3,7 +3,7 @@
<h3 class="cms-panel-header"><% _t('ModelAdmin_Tools.ss.FILTER', 'Filter') %></h3> <h3 class="cms-panel-header"><% _t('ModelAdmin_Tools.ss.FILTER', 'Filter') %></h3>
$SearchForm $SearchForm
<% if ImportForm %> <% if $ImportForm %>
<h3 class="cms-panel-header"><% _t('ModelAdmin_Tools.ss.IMPORT', 'Import') %></h3> <h3 class="cms-panel-header"><% _t('ModelAdmin_Tools.ss.IMPORT', 'Import') %></h3>
$ImportForm $ImportForm
<% end_if %> <% end_if %>

View File

@ -1,7 +1,7 @@
<h3><% _t('ModelSidebar.ss.SEARCHLISTINGS','Search') %></h3> <h3><% _t('ModelSidebar.ss.SEARCHLISTINGS','Search') %></h3>
$SearchForm $SearchForm
<% if ImportForm %> <% if $ImportForm %>
<h3><% _t('ModelSidebar.ss.IMPORT_TAB_HEADER', 'Import') %></h3> <h3><% _t('ModelSidebar.ss.IMPORT_TAB_HEADER', 'Import') %></h3>
$ImportForm $ImportForm
<% end_if %> <% end_if %>

View File

@ -8,17 +8,17 @@
<body> <body>
<div class="mainblock" style="width: 290px;"> <div class="mainblock" style="width: 290px;">
<% if UseSimpleForm %> <% if $UseSimpleForm %>
$EditImageSimpleForm $EditImageSimpleForm
<% else %> <% else %>
$EditImageForm $EditImageForm
<% end_if %> <% end_if %>
</div> </div>
<% if Image.ID %> <% if $Image.ID %>
<div class="mainblock" > <div class="mainblock" >
$Image.CMSThumbnail $Image.CMSThumbnail
<% if DeleteImageForm %> <% if $DeleteImageForm %>
$DeleteImageForm $DeleteImageForm
<% end_if %> <% end_if %>
</div> </div>
@ -26,4 +26,4 @@
</body> </body>
</html> </html>

View File

@ -1,27 +1,27 @@
<% if IncludeFormTag %> <% if $IncludeFormTag %>
<form $AttributesHTML> <form $AttributesHTML>
<% end_if %> <% end_if %>
<% if Message %> <% if $Message %>
<p id="{$FormName}_error" class="message $MessageType">$Message</p> <p id="{$FormName}_error" class="message $MessageType">$Message</p>
<% else %> <% else %>
<p id="{$FormName}_error" class="message $MessageType" style="display: none"></p> <p id="{$FormName}_error" class="message $MessageType" style="display: none"></p>
<% end_if %> <% end_if %>
<fieldset> <fieldset>
<% if Legend %><legend>$Legend</legend><% end_if %> <% if $Legend %><legend>$Legend</legend><% end_if %>
<% loop Fields %> <% loop $Fields %>
$FieldHolder $FieldHolder
<% end_loop %> <% end_loop %>
<div class="clear"><!-- --></div> <div class="clear"><!-- --></div>
</fieldset> </fieldset>
<% if Actions %> <% if $Actions %>
<div class="Actions"> <div class="Actions">
<% loop Actions %> <% loop $Actions %>
$Field $Field
<% end_loop %> <% end_loop %>
</div> </div>
<% end_if %> <% end_if %>
<% if IncludeFormTag %> <% if $IncludeFormTag %>
</form> </form>
<% end_if %> <% end_if %>

View File

@ -1,5 +1,5 @@
<div class="add-existing-autocompleter"> <div class="add-existing-autocompleter">
<% loop Fields %> <% loop $Fields %>
<span>$Field</span> <span>$Field</span>
<% end_loop %> <% end_loop %>
</div> </div>

View File

@ -1,5 +1,5 @@
<tr class="filter-header" style="display:none;"> <tr class="filter-header" style="display:none;">
<% loop Fields %> <% loop $Fields %>
<th class="extra">$Field</th> <th class="extra">$Field</th>
<% end_loop %> <% end_loop %>
</tr> </tr>

View File

@ -7,8 +7,8 @@
$NumRecords $NumRecords
</span> </span>
<% if Message %> <% if $Message %>
<div class="datagrid-footer-message">$Message</div> <div class="datagrid-footer-message">$Message</div>
<% end_if %> <% end_if %>
</td> </td>
</tr> </tr>

View File

@ -1,5 +1,5 @@
<% if Backlink %> <% if $Backlink %>
<a href="$Backlink"><% _t('Go back', 'Go back' ) %></a> <a href="$Backlink"><% _t('Go back', 'Go back' ) %></a>
<% end_if %> <% end_if %>
$ItemEditForm $ItemEditForm

View File

@ -1,5 +1,5 @@
<tr class="sortable-header"> <tr class="sortable-header">
<% loop Fields %> <% loop $Fields %>
<th class="main col-$getName">$Field</th> <th class="main col-$getName">$Field</th>
<% end_loop %> <% end_loop %>
</tr> </tr>

View File

@ -1,7 +1,7 @@
<tr class="title"> <tr class="title">
<th colspan="$ColumnCount"> <th colspan="$ColumnCount">
<% if Title %><h2>$Title</h2><% end_if %> <% if $Title %><h2>$Title</h2><% end_if %>
<div class="right">\$DefineFragment(toolbar-header-right)</div> <div class="right">\$DefineFragment(toolbar-header-right)</div>
<div class="left">\$DefineFragment(toolbar-header-left)</div> <div class="left">\$DefineFragment(toolbar-header-left)</div>
</th> </th>
</tr> </tr>

View File

@ -1,3 +1,3 @@
<button $AttributesHTML> <button $AttributesHTML>
<% if ButtonContent %>$ButtonContent<% else %>$Title<% end_if %> <% if $ButtonContent %>$ButtonContent<% else %>$Title<% end_if %>
</button> </button>

View File

@ -1,11 +1,11 @@
<tr class="ss-gridfield-item ss-gridfield-{$EvenOdd} $FirstLast" data-id="$ID"> <tr class="ss-gridfield-item ss-gridfield-{$EvenOdd} $FirstLast" data-id="$ID">
<% if $GridField.ExtraColumnsCount %> <% if $GridField.ExtraColumnsCount %>
<% loop Fields %> <% loop $Fields %>
<td>$Value</td> <td>$Value</td>
<% end_loop %> <% end_loop %>
<td colspan="$GridField.ExtraColumnsCount" class="ss-gridfield-last"></td> <td colspan="$GridField.ExtraColumnsCount" class="ss-gridfield-last"></td>
<% else %> <% else %>
<% loop Fields %> <% loop $Fields %>
<td <% if FirstLast %>class="ss-gridfield-{$FirstLast}"<% end_if %>>$Value</td> <td <% if FirstLast %>class="ss-gridfield-{$FirstLast}"<% end_if %>>$Value</td>
<% end_loop %> <% end_loop %>
<% end_if %> <% end_if %>

View File

@ -7,12 +7,12 @@
<% if $Title %><h3>$Title</h3><% end_if %> <% if $Title %><h3>$Title</h3><% end_if %>
<table> <table>
<thead> <thead>
<tr><% loop Header %><th>$CellString</th><% end_loop %></tr> <tr><% loop $Header %><th>$CellString</th><% end_loop %></tr>
</thead> </thead>
<tbody> <tbody>
<% if ItemRows %> <% if $ItemRows %>
<% loop ItemRows %> <% loop $ItemRows %>
<tr><% loop ItemRow %><td>$CellString</td><% end_loop %></tr> <tr><% loop $ItemRow %><td>$CellString</td><% end_loop %></tr>
<% end_loop %> <% end_loop %>
<% else %> <% else %>
<tr> <tr>

View File

@ -38,10 +38,10 @@
</div> </div>
</div> </div>
</div> </div>
<% if Info %><div class="info">$Info</div><% end_if %> <% if $Info %><div class="info">$Info</div><% end_if %>
<div class="details ss-uploadfield-item-editform loading"> <div class="details ss-uploadfield-item-editform loading">
<fieldset> <fieldset>
<% loop Fields %> <% loop $Fields %>
$FieldHolder $FieldHolder
<% end_loop %> <% end_loop %>
</fieldset> </fieldset>

View File

@ -1,4 +1,4 @@
<% if canEdit %> <% if $canEdit %>
<button class="ss-uploadfield-item-edit ss-ui-button ui-corner-all" title="<% _t('UploadField.EDITINFO', 'Edit this file') %>" data-icon="pencil"> <button class="ss-uploadfield-item-edit ss-ui-button ui-corner-all" title="<% _t('UploadField.EDITINFO', 'Edit this file') %>" data-icon="pencil">
<% _t('UploadField.EDIT', 'Edit') %> <% _t('UploadField.EDIT', 'Edit') %>
<span class="toggle-details"> <span class="toggle-details">
@ -8,10 +8,10 @@
<% end_if %> <% end_if %>
<button class="ss-uploadfield-item-remove ss-ui-button ui-corner-all" title="<% _t('UploadField.REMOVEINFO', 'Remove this file from here, but do not delete it from the file store') %>" data-icon="plug-disconnect-prohibition"> <button class="ss-uploadfield-item-remove ss-ui-button ui-corner-all" title="<% _t('UploadField.REMOVEINFO', 'Remove this file from here, but do not delete it from the file store') %>" data-icon="plug-disconnect-prohibition">
<% _t('UploadField.REMOVE', 'Remove') %></button> <% _t('UploadField.REMOVE', 'Remove') %></button>
<% if canDelete %> <% if $canDelete %>
<button data-href="$UploadFieldDeleteLink" class="ss-uploadfield-item-delete ss-ui-button ui-corner-all" title="<% _t('UploadField.DELETEINFO', 'Permanently delete this file from the file store') %>" data-icon="minus-circle"><% _t('UploadField.DELETE', 'Delete from files') %></button> <button data-href="$UploadFieldDeleteLink" class="ss-uploadfield-item-delete ss-ui-button ui-corner-all" title="<% _t('UploadField.DELETEINFO', 'Permanently delete this file from the file store') %>" data-icon="minus-circle"><% _t('UploadField.DELETE', 'Delete from files') %></button>
<% end_if %> <% end_if %>
<% if UploadField.canAttachExisting %> <% if $UploadField.canAttachExisting %>
<button class="ss-uploadfield-item-choose-another ss-uploadfield-fromfiles ss-ui-button ui-corner-all" title="<% _t('UploadField.CHOOSEANOTHERINFO', 'Replace this file with another one from the file store') %>" data-icon="network-cloud"> <button class="ss-uploadfield-item-choose-another ss-uploadfield-fromfiles ss-ui-button ui-corner-all" title="<% _t('UploadField.CHOOSEANOTHERINFO', 'Replace this file with another one from the file store') %>" data-icon="network-cloud">
<% _t('UploadField.CHOOSEANOTHERFILE', 'Choose another file') %></button> <% _t('UploadField.CHOOSEANOTHERFILE', 'Choose another file') %></button>
<% end_if %> <% end_if %>

View File

@ -6,14 +6,14 @@
<atom:link href="$Link" rel="self" type="application/rss+xml" /> <atom:link href="$Link" rel="self" type="application/rss+xml" />
<description>$Description.XML</description> <description>$Description.XML</description>
<% loop Entries %> <% loop $Entries %>
<item> <item>
<title>$Title.XML</title> <title>$Title.XML</title>
<link>$AbsoluteLink</link> <link>$AbsoluteLink</link>
<% if Description %><description>$Description.AbsoluteLinks.XML</description><% end_if %> <% if $Description %><description>$Description.AbsoluteLinks.XML</description><% end_if %>
<% if Date %><pubDate>$Date.Rfc822</pubDate> <% if $Date %><pubDate>$Date.Rfc822</pubDate>
<% else %><pubDate>$Created.Rfc822</pubDate><% end_if %> <% else %><pubDate>$Created.Rfc822</pubDate><% end_if %>
<% if Author %><dc:creator>$Author.XML</dc:creator><% end_if %> <% if $Author %><dc:creator>$Author.XML</dc:creator><% end_if %>
<guid>$AbsoluteLink</guid> <guid>$AbsoluteLink</guid>
</item> </item>
<% end_loop %> <% end_loop %>

View File

@ -1,5 +1,5 @@
<p id="$Name" class="field $Type"> <p id="$Name" class="field $Type">
$Field $Field
<label class="right" for="$id">$Title</label> <label class="right" for="$id">$Title</label>
<% if Message %><span class="message $MessageType">$Message</span><% end_if %> <% if $Message %><span class="message $MessageType">$Message</span><% end_if %>
</p> </p>

View File

@ -1,15 +1,15 @@
<form $FormAttributes> <form $FormAttributes>
<% if Message %> <% if $Message %>
<p id="{$FormName}_error" class="message $MessageType">$Message</p> <p id="{$FormName}_error" class="message $MessageType">$Message</p>
<% else %> <% else %>
<p id="{$FormName}_error" class="message $MessageType" style="display: none"></p> <p id="{$FormName}_error" class="message $MessageType" style="display: none"></p>
<% end_if %> <% end_if %>
<fieldset> <fieldset>
<% loop Fields %> <% loop $Fields %>
$FieldHolder $FieldHolder
<% end_loop %> <% end_loop %>
<% loop Actions %> <% loop $Actions %>
$Field $Field
<% end_loop %> <% end_loop %>
</fieldset> </fieldset>
</form> </form>

View File

@ -13,7 +13,7 @@
<div class="clear"><!-- --></div> <div class="clear"><!-- --></div>
</label> </label>
<div class="ss-uploadfield-item-actions"> <div class="ss-uploadfield-item-actions">
<% if Top.isActive %> <% if $Top.isActive %>
$UploadFieldFileButtons $UploadFieldFileButtons
<% end_if %> <% end_if %>
</div> </div>
@ -25,7 +25,7 @@
<% end_loop %> <% end_loop %>
<% end_if %> <% end_if %>
</ul> </ul>
<% if canUpload || canAttachExisting %> <% if $canUpload || $canAttachExisting %>
<div class="ss-uploadfield-item ss-uploadfield-addfile<% if $CustomisedItems %> borderTop<% end_if %>"> <div class="ss-uploadfield-item ss-uploadfield-addfile<% if $CustomisedItems %> borderTop<% end_if %>">
<% if canUpload %> <% if canUpload %>
<div class="ss-uploadfield-item-preview ss-uploadfield-dropzone ui-corner-all"> <div class="ss-uploadfield-item-preview ss-uploadfield-dropzone ui-corner-all">
@ -43,21 +43,21 @@
<% else %> <% else %>
<b><% _t('UploadField.ATTACHFILE', 'Attach a file') %></b> <b><% _t('UploadField.ATTACHFILE', 'Attach a file') %></b>
<% end_if %> <% end_if %>
<% if canPreviewFolder %> <% if $canPreviewFolder %>
<small>(<%t UploadField.UPLOADSINTO 'saves into /{path}' path=$FolderName %>)</small> <small>(<%t UploadField.UPLOADSINTO 'saves into /{path}' path=$FolderName %>)</small>
<% end_if %> <% end_if %>
</label> </label>
<% if canUpload %> <% if $canUpload %>
<label class="ss-uploadfield-fromcomputer ss-ui-button ui-corner-all" title="<% _t('UploadField.FROMCOMPUTERINFO', 'Upload from your computer') %>" data-icon="drive-upload"> <label class="ss-uploadfield-fromcomputer ss-ui-button ui-corner-all" title="<% _t('UploadField.FROMCOMPUTERINFO', 'Upload from your computer') %>" data-icon="drive-upload">
<% _t('UploadField.FROMCOMPUTER', 'From your computer') %> <% _t('UploadField.FROMCOMPUTER', 'From your computer') %>
<input id="$id" name="{$Name}[Uploads][]" class="$extraClass ss-uploadfield-fromcomputer-fileinput" data-config="$configString" type="file"<% if $multiple %> multiple="multiple"<% end_if %> /> <input id="$id" name="{$Name}[Uploads][]" class="$extraClass ss-uploadfield-fromcomputer-fileinput" data-config="$configString" type="file"<% if $multiple %> multiple="multiple"<% end_if %> />
</label> </label>
<% end_if %> <% end_if %>
<% if canAttachExisting %> <% if $canAttachExisting %>
<button class="ss-uploadfield-fromfiles ss-ui-button ui-corner-all" title="<% _t('UploadField.FROMCOMPUTERINFO', 'Select from files') %>" data-icon="network-cloud"><% _t('UploadField.FROMFILES', 'From files') %></button> <button class="ss-uploadfield-fromfiles ss-ui-button ui-corner-all" title="<% _t('UploadField.FROMCOMPUTERINFO', 'Select from files') %>" data-icon="network-cloud"><% _t('UploadField.FROMFILES', 'From files') %></button>
<% end_if %> <% end_if %>
<% if canUpload %> <% if $canUpload %>
<% if not $autoUpload %> <% if not $autoUpload %>
<button class="ss-uploadfield-startall ss-ui-button ui-corner-all" data-icon="navigation"><% _t('UploadField.STARTALL', 'Start all') %></button> <button class="ss-uploadfield-startall ss-ui-button ui-corner-all" data-icon="navigation"><% _t('UploadField.STARTALL', 'Start all') %></button>
<% end_if %> <% end_if %>

View File

@ -1,6 +1,6 @@
<div id="$Name" class="field<% if extraClass %> $extraClass<% end_if %>"> <div id="$Name" class="field<% if extraClass %> $extraClass<% end_if %>">
$Field $Field
<label class="right" for="$ID">$Title</label> <label class="right" for="$ID">$Title</label>
<% if Message %><span class="message $MessageType">$Message</span><% end_if %> <% if $Message %><span class="message $MessageType">$Message</span><% end_if %>
<% if Description %><span class="description">$Description</span><% end_if %> <% if $Description %><span class="description">$Description</span><% end_if %>
</div> </div>

View File

@ -1,5 +1,5 @@
$Field $Field
<% if $Title %> <% if $Title %>
<label class="checkboxfield-small" <% if ID %>for="$ID"<% end_if %>>$Title</label> <label class="checkboxfield-small" <% if $ID %>for="$ID"<% end_if %>>$Title</label>
<% end_if %> <% end_if %>

View File

@ -1,8 +1,8 @@
<ul id="$ID" class="$extraClass"> <ul id="$ID" class="$extraClass">
<% if Options.Count %> <% if $Options.Count %>
<% loop Options %> <% loop $Options %>
<li class="$Class"> <li class="$Class">
<input id="$ID" class="checkbox" name="$Name" type="checkbox" value="$Value"<% if isChecked %> checked="checked"<% end_if %><% if isDisabled %> disabled="disabled"<% end_if %> /> <input id="$ID" class="checkbox" name="$Name" type="checkbox" value="$Value"<% if $isChecked %> checked="checked"<% end_if %><% if $isDisabled %> disabled="disabled"<% end_if %> />
<label for="$ID">$Title</label> <label for="$ID">$Title</label>
</li> </li>
<% end_loop %> <% end_loop %>

View File

@ -3,8 +3,8 @@
<legend>$Legend</legend> <legend>$Legend</legend>
<% end_if %> <% end_if %>
<% loop FieldList %> <% loop $FieldList %>
<% if ColumnCount %> <% if $ColumnCount %>
<div class="column-{$ColumnCount} $FirstLast"> <div class="column-{$ColumnCount} $FirstLast">
$Field $Field
</div> </div>
@ -12,4 +12,4 @@
$Field $Field
<% end_if %> <% end_if %>
<% end_loop %> <% end_loop %>
</$Tag> </$Tag>

View File

@ -3,8 +3,8 @@
<legend>$Legend</legend> <legend>$Legend</legend>
<% end_if %> <% end_if %>
<% loop FieldList %> <% loop $FieldList %>
<% if ColumnCount %> <% if $ColumnCount %>
<div class="column-{$ColumnCount} $FirstLast"> <div class="column-{$ColumnCount} $FirstLast">
$FieldHolder $FieldHolder
</div> </div>
@ -13,5 +13,5 @@
<% end_if %> <% end_if %>
<% end_loop %> <% end_loop %>
<% if Description %><span class="description">$Description</span><% end_if %> <% if $Description %><span class="description">$Description</span><% end_if %>
</$Tag> </$Tag>

View File

@ -1,5 +1,5 @@
<select $AttributesHTML> <select $AttributesHTML>
<% loop Options %> <% loop $Options %>
<option value="$Value.XML"<% if Selected %> selected="selected"<% end_if %><% if Disabled %> disabled="disabled"<% end_if %>>$Title.XML</option> <option value="$Value.XML"<% if $Selected %> selected="selected"<% end_if %><% if $Disabled %> disabled="disabled"<% end_if %>>$Title.XML</option>
<% end_loop %> <% end_loop %>
</select> </select>

View File

@ -1,7 +1,7 @@
<div class="<% if extraClass %>$extraClass<% else %>fieldgroup<% end_if %><% if Zebra %> fieldgroup-zebra<% end_if %>" <% if ID %>id="$ID"<% end_if %>> <div class="<% if $extraClass %>$extraClass<% else %>fieldgroup<% end_if %><% if $Zebra %> fieldgroup-zebra<% end_if %>" <% if $ID %>id="$ID"<% end_if %>>
<% loop FieldList %> <% loop $FieldList %>
<div class="fieldgroup-field $FirstLast $EvenOdd"> <div class="fieldgroup-field $FirstLast $EvenOdd">
$SmallFieldHolder $SmallFieldHolder
</div> </div>
<% end_loop %> <% end_loop %>
</div> </div>

View File

@ -1,7 +1,7 @@
<div class="<% if extraClass %>$extraClass<% else %>fieldgroup<% end_if %><% if Zebra %> fieldgroup-zebra<% end_if %>" <% if ID %>id="$ID"<% end_if %>> <div class="<% if $extraClass %>$extraClass<% else %>fieldgroup<% end_if %><% if $Zebra %> fieldgroup-zebra<% end_if %>" <% if ID %>id="$ID"<% end_if %>>
<% loop FieldList %> <% loop $FieldList %>
<div class="fieldgroup-field $FirstLast $EvenOdd"> <div class="fieldgroup-field $FirstLast $EvenOdd">
$FieldHolder $FieldHolder
</div> </div>
<% end_loop %> <% end_loop %>
</div> </div>

View File

@ -1,13 +1,13 @@
<div <% if Name %>id="$Name"<% end_if %> class="field $Type $extraClass"> <div <% if $Name %>id="$Name"<% end_if %> class="field $Type $extraClass">
<% if Title %><label class="left">$Title</label><% end_if %> <% if $Title %><label class="left">$Title</label><% end_if %>
<div class="middleColumn fieldgroup <% if Zebra %>fieldgroup-$Zebra<% end_if %>"> <div class="middleColumn fieldgroup <% if Zebra %>fieldgroup-$Zebra<% end_if %>">
<% loop FieldList %> <% loop $FieldList %>
<div class="fieldgroup-field $FirstLast $EvenOdd"> <div class="fieldgroup-field $FirstLast $EvenOdd">
$SmallFieldHolder $SmallFieldHolder
</div> </div>
<% end_loop %> <% end_loop %>
</div> </div>
<% if RightTitle %><label class="right">$RightTitle</label><% end_if %> <% if $RightTitle %><label class="right">$RightTitle</label><% end_if %>
<% if Message %><span class="message $MessageType">$Message</span><% end_if %> <% if $Message %><span class="message $MessageType">$Message</span><% end_if %>
</div> </div>

View File

@ -1,7 +1,7 @@
<% if UseButtonTag %> <% if $UseButtonTag %>
<button $AttributesHTML> <button $AttributesHTML>
<% if ButtonContent %>$ButtonContent<% else %>$Title<% end_if %> <% if $ButtonContent %>$ButtonContent<% else %>$Title<% end_if %>
</button> </button>
<% else %> <% else %>
<input $AttributesHTML /> <input $AttributesHTML />
<% end_if %> <% end_if %>

View File

@ -1,5 +1,5 @@
<% if isReadonly %> <% if $isReadonly %>
<span id="$ID"<% if extraClass %> class="$extraClass"<% end_if %>> <span id="$ID"<% if $extraClass %> class="$extraClass"<% end_if %>>
$Value $Value
</span> </span>
<% else %> <% else %>

View File

@ -1,9 +1,9 @@
<div id="$Name" class="field<% if extraClass %> $extraClass<% end_if %>"> <div id="$Name" class="field<% if $extraClass %> $extraClass<% end_if %>">
<% if Title %><label class="left" for="$ID">$Title</label><% end_if %> <% if $Title %><label class="left" for="$ID">$Title</label><% end_if %>
<div class="middleColumn"> <div class="middleColumn">
$Field $Field
</div> </div>
<% if RightTitle %><label class="right" for="$ID">$RightTitle</label><% end_if %> <% if $RightTitle %><label class="right" for="$ID">$RightTitle</label><% end_if %>
<% if Message %><span class="message $MessageType">$Message</span><% end_if %> <% if $Message %><span class="message $MessageType">$Message</span><% end_if %>
<% if Description %><span class="description">$Description</span><% end_if %> <% if $Description %><span class="description">$Description</span><% end_if %>
</div> </div>

View File

@ -1,11 +1,11 @@
<div class="fieldholder-small"> <div class="fieldholder-small">
<% if $RightTitle %> <% if $RightTitle %>
<label class="right fieldholder-small-label" <% if ID %>for="$ID"<% end_if %>>$RightTitle</label> <label class="right fieldholder-small-label" <% if $ID %>for="$ID"<% end_if %>>$RightTitle</label>
<% else_if $LeftTitle %> <% else_if $LeftTitle %>
<label class="left fieldholder-small-label" <% if ID %>for="$ID"<% end_if %>>$LeftTitle</label> <label class="left fieldholder-small-label" <% if $ID %>for="$ID"<% end_if %>>$LeftTitle</label>
<% else_if $Title %> <% else_if $Title %>
<label class="fieldholder-small-label" <% if ID %>for="$ID"<% end_if %>>$Title</label> <label class="fieldholder-small-label" <% if $ID %>for="$ID"<% end_if %>>$Title</label>
<% end_if %> <% end_if %>
$Field $Field
</div> </div>

View File

@ -1,7 +1,7 @@
<ul id="$ID" class="$extraClass"> <ul id="$ID" class="$extraClass">
<% loop Options %> <% loop $Options %>
<li class="$Class"> <li class="$Class">
<input id="$ID" class="radio" name="$Name" type="radio" value="$Value"<% if isChecked %> checked<% end_if %><% if isDisabled %> disabled<% end_if %> /> <input id="$ID" class="radio" name="$Name" type="radio" value="$Value"<% if $isChecked %> checked<% end_if %><% if $isDisabled %> disabled<% end_if %> />
<label for="$ID">$Title</label> <label for="$ID">$Title</label>
</li> </li>
<% end_loop %> <% end_loop %>

View File

@ -1,14 +1,20 @@
<% if IsReadonly %> <% if $IsReadonly %>
<ul class="SelectionGroup<% if extraClass %> $extraClass<% end_if %>"> <ul class="SelectionGroup<% if extraClass %> $extraClass<% end_if %>">
<% loop FieldSet %> <% loop $FieldSet %>
<% if Selected %> <% if $Selected %>
<li$Selected> <li$Selected>
$RadioLabel $RadioLabel
$FieldHolder $FieldHolder
</li> </li>
</ul> </ul>
<% end_if %> <% end_if %>
<% end_loop %> <% end_loop %>
<% else %> <% else %>
<ul class="SelectionGroup<% if extraClass %> $extraClass<% end_if %>"><% loop FieldSet %><li$Selected>{$RadioButton}{$RadioLabel}{$FieldHolder}</li><% end_loop %></ul> <ul class="SelectionGroup<% if extraClass %> $extraClass<% end_if %>">
<% loop $FieldSet %>
<li$Selected>
{$RadioButton}{$RadioLabel}{$FieldHolder}
</li>
<% end_loop %>
</ul>
<% end_if %> <% end_if %>

View File

@ -1,16 +1,16 @@
<div $getAttributesHTML("class") class="ss-tabset $extraClass"> <div $getAttributesHTML("class") class="ss-tabset $extraClass">
<ul> <ul>
<% loop Tabs %> <% loop $Tabs %>
<li class="$FirstLast $MiddleString $extraClass"><a href="#$id" id="tab-$id">$Title</a></li> <li class="$FirstLast $MiddleString $extraClass"><a href="#$id" id="tab-$id">$Title</a></li>
<% end_loop %> <% end_loop %>
</ul> </ul>
<% loop Tabs %> <% loop $Tabs %>
<% if Tabs %> <% if $Tabs %>
$FieldHolder $FieldHolder
<% else %> <% else %>
<div $AttributesHTML> <div $AttributesHTML>
<% loop Fields %> <% loop $Fields %>
$FieldHolder $FieldHolder
<% end_loop %> <% end_loop %>
</div> </div>

View File

@ -2,7 +2,7 @@
class="TreeDropdownField single<% if extraClass %> $extraClass<% end_if %><% if ShowSearch %> searchable<% end_if %>" class="TreeDropdownField single<% if extraClass %> $extraClass<% end_if %><% if ShowSearch %> searchable<% end_if %>"
data-url-tree="$Link(tree)" data-url-tree="$Link(tree)"
data-title="$TitleURLEncoded" data-title="$TitleURLEncoded"
<% if Description %>title="$Description"<% end_if %> <% if $Description %>title="$Description"<% end_if %>
<% if Metadata %>data-metadata="$Metadata"<% end_if %>> <% if $Metadata %>data-metadata="$Metadata"<% end_if %>>
<input id="$ID" type="hidden" name="$Name" value="$Value" /> <input id="$ID" type="hidden" name="$Name" value="$Value" />
</div> </div>