MINOR Fixing use of <% control %> with <% with %> or <% loop %> as necessary.

This commit is contained in:
Sean Harvey 2012-05-11 13:49:20 +12:00
parent 1e6a52616d
commit 6f672e5f36
37 changed files with 173 additions and 195 deletions

View File

@ -1,9 +1,9 @@
<div class="breadcrumbs-wrapper"> <div class="breadcrumbs-wrapper">
<% control Breadcrumbs %> <% loop Breadcrumbs %>
<% if Last %> <% if Last %>
<span class="cms-panel-link crumb">$Title.XML</span> <span class="cms-panel-link crumb">$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>/
<% end_if %> <% end_if %>
<% end_control %> <% end_loop %>
</div> </div>

View File

@ -1,16 +1,15 @@
<div id="$id"> <div id="$id">
<%-- Tab nav is rendered in CMSEditForm.ss --%> <%-- Tab nav is rendered in CMSEditForm.ss --%>
<% control Tabs %> <% loop Tabs %>
<div $AttributesHTML> <div $AttributesHTML>
<% if Tabs %> <% if Tabs %>
$FieldHolder $FieldHolder
<% else %> <% else %>
<% control Fields %> <% loop Fields %>
$FieldHolder $FieldHolder
<% end_control %> <% end_loop %>
<% end_if %> <% end_if %>
</div> </div>
<% end_control %> <% end_loop %>
</div> </div>

View File

@ -1,15 +1,11 @@
<% control 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>
<!--
<a title="Jump to tool buttons - Alt+Q, Jump to editor - Alt-Z, Jump to element path - Alt-X" accesskey="q" href="#">
</a>
-->
<% control 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" />
@ -21,15 +17,13 @@
<% else_if Type = break %> <% else_if Type = break %>
<br /> <br />
<% end_if %> <% end_if %>
<% end_control %> <% end_loop %>
<br /> <br />
<!--<a onfocus="tinyMCE.getInstanceById('mce_editor_0').getWin().focus();" accesskey="z" href="#">
</a>-->
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<% end_control %> <% end_with %>

View File

@ -6,18 +6,18 @@
<% include BackLink_Button %> <% include BackLink_Button %>
<h2 id="page-title-heading"> <h2 id="page-title-heading">
<% control Controller %> <% with Controller %>
<% include CMSSectionIcon %> <% include CMSSectionIcon %>
<% include CMSBreadcrumbs %> <% include CMSBreadcrumbs %>
<% end_control %> <% end_with %>
</h2> </h2>
<% 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> <ul>
<% control 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_control %> <% end_loop %>
</ul> </ul>
</div> </div>
<% end_with %> <% end_with %>
@ -28,9 +28,9 @@
</div> </div>
</div> </div>
<% control Controller %> <% with Controller %>
$EditFormTools $EditFormTools
<% end_control %> <% end_with %>
<div class="cms-content-fields center cms-panel-padded"> <div class="cms-content-fields center cms-panel-padded">
<% if Message %> <% if Message %>
@ -41,9 +41,9 @@
<fieldset> <fieldset>
<% if Legend %><legend>$Legend</legend><% end_if %> <% if Legend %><legend>$Legend</legend><% end_if %>
<% control Fields %> <% loop Fields %>
$FieldHolder $FieldHolder
<% end_control %> <% end_loop %>
<div class="clear"><!-- --></div> <div class="clear"><!-- --></div>
</fieldset> </fieldset>
</div> </div>
@ -51,9 +51,9 @@
<div class="cms-content-actions south"> <div class="cms-content-actions south">
<% if Actions %> <% if Actions %>
<div class="Actions"> <div class="Actions">
<% control Actions %> <% loop Actions %>
$Field $Field
<% end_control %> <% 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;

View File

@ -9,20 +9,20 @@
<div class="cms-login-status"> <div class="cms-login-status">
<a href="Security/logout" class="logout-link" title="<% _t('LOGOUT','Log out') %>"><% _t('LOGOUT','Log out') %></a> <a href="Security/logout" class="logout-link" title="<% _t('LOGOUT','Log out') %>"><% _t('LOGOUT','Log out') %></a>
<% control CurrentMember %> <% with CurrentMember %>
<span> <span>
<% _t('Hello','Hi') %> <% _t('Hello','Hi') %>
<a href="{$AbsoluteBaseURL}admin/myprofile" class="profile-link ss-ui-dialog-link" data-popupclass="edit-profile-popup"> <a href="{$AbsoluteBaseURL}admin/myprofile" class="profile-link ss-ui-dialog-link" data-popupclass="edit-profile-popup">
<% 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_control %> <% end_with %>
</div> </div>
</div> </div>
<div class="cms-panel-content center"> <div class="cms-panel-content center">
<ul class="cms-menu-list"> <ul class="cms-menu-list">
<% control MainMenu %> <% loop MainMenu %>
<li class="$LinkingMode $FirstLast <% if LinkingMode == 'link' %><% else %>opened<% end_if %>" id="Menu-$Code"> <li class="$LinkingMode $FirstLast <% if LinkingMode == 'link' %><% else %>opened<% end_if %>" id="Menu-$Code">
<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>
@ -44,7 +44,7 @@
</ul> </ul>
<% end_if %> <% end_if %>
</li> </li>
<% end_control %> <% end_loop %>
</ul> </ul>
</div> </div>

View File

@ -3,10 +3,10 @@
&laquo; <% _t('SilverStripeNavigator.Edit', 'Edit') %> &laquo; <% _t('SilverStripeNavigator.Edit', 'Edit') %>
</a> </a>
<ul class="cms-preview-states"> <ul class="cms-preview-states">
<% control Items %> <% loop Items %>
<li class="<% if isActive %> active<% end_if %>">$HTML <li class="<% if isActive %> active<% end_if %>">$HTML
<% if Watermark %><span class="cms-preview-watermark">$Watermark</span><% end_if %> <% if Watermark %><span class="cms-preview-watermark">$Watermark</span><% end_if %>
</li> </li>
<% end_control %> <% end_loop %>
</ul> </ul>
</div> </div>

View File

@ -13,11 +13,11 @@
<div class="cms-content-header-tabs ss-ui-tabs-nav"> <div class="cms-content-header-tabs ss-ui-tabs-nav">
<ul> <ul>
<% control ManagedModelTabs %> <% loop ManagedModelTabs %>
<li class="tab-$ClassName $LinkOrCurrent"> <li class="tab-$ClassName $LinkOrCurrent">
<a href="$Link" class="cms-panel-link">$Title</a> <a href="$Link" class="cms-panel-link">$Title</a>
</li> </li>
<% end_control %> <% end_loop %>
</ul> </ul>
</div> </div>

View File

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

View File

@ -1,41 +1,24 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<% base_tag %> <% base_tag %>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=720, maximum-scale=1.0" /> <meta name="viewport" content="width=720, maximum-scale=1.0" />
<title>$Title</title> <title>$Title</title>
</head> </head>
<body class="loading cms" lang="$Locale.RFC1766" data-frameworkpath="$ModulePath(framework)"> <body class="loading cms" lang="$Locale.RFC1766" data-frameworkpath="$ModulePath(framework)">
<% include CMSLoadingScreen %> <% include CMSLoadingScreen %>
<div class="cms-container center" data-layout-type="border"> <div class="cms-container center" data-layout-type="border">
$Menu $Menu
$Content $Content
<div class="cms-preview east <% if IsPreviewExpanded %>is-expanded<% else %>is-collapsed<% end_if %>" data-layout-type="border"> <div class="cms-preview east <% if IsPreviewExpanded %>is-expanded<% else %>is-collapsed<% end_if %>" data-layout-type="border">
<iframe src="about:blank" class="center" name="cms-preview-iframe"></iframe> <iframe src="about:blank" class="center" name="cms-preview-iframe"></iframe>
<div class="cms-preview-controls south"></div> <div class="cms-preview-controls south"></div>
</div> </div>
</div> </div>
$EditorToolbar $EditorToolbar
<!-- <div class="ss-cms-bottom-bar">
<div class="holder">
<div id="switchView" class="bottomTabs">
<% if ShowSwitchView %>
<div class="blank"> <% _t('VIEWPAGEIN','Page view:') %> </div>
<span id="SwitchView">$SwitchView</span>
<% end_if %>
</div>
</div>
</div> -->
</body> </body>
</html> </html>

View File

@ -4,28 +4,28 @@ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns="{$ServiceURL}wsdl" xmlns:tns="{$ServiceURL}wsdl"
targetNamespace="{$ServiceURL}wsdl"> targetNamespace="{$ServiceURL}wsdl">
<% control Methods %> <% loop Methods %>
<message name="{$Name}Request" targetNamespace="$CurrentPage.TargetNamespace"> <message name="{$Name}Request" targetNamespace="$CurrentPage.TargetNamespace">
<% control Arguments %> <% loop Arguments %>
<part name="$Name" type="$Type"/> <part name="$Name" type="$Type"/>
<% end_control %> <% end_loop %>
</message> </message>
<message name="{$Name}Response" targetNamespace="$CurrentPage.TargetNamespace"> <message name="{$Name}Response" targetNamespace="$CurrentPage.TargetNamespace">
<part name="{$Name}Return" type="$ReturnType" /> <part name="{$Name}Return" type="$ReturnType" />
</message> </message>
<% end_control %> <% end_loop %>
<portType name="SapphireSOAP_methodsPortType"> <portType name="SapphireSOAP_methodsPortType">
<% control Methods %> <% loop Methods %>
<operation name="$Name"> <operation name="$Name">
<input message="tns:{$Name}Request"/> <input message="tns:{$Name}Request"/>
<output message="tns:{$Name}Response"/> <output message="tns:{$Name}Response"/>
</operation> </operation>
<% end_control %> <% end_loop %>
</portType> </portType>
<binding name="SapphireSOAP_methodsBinding" type="tns:SapphireSOAP_methodsPortType"> <binding name="SapphireSOAP_methodsBinding" type="tns:SapphireSOAP_methodsPortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<% control Methods %> <% loop Methods %>
<operation name="$Name"> <operation name="$Name">
<soap:operation soapAction="$CurrentPage.ServiceURL?method=$Name" style="rpc"/> <soap:operation soapAction="$CurrentPage.ServiceURL?method=$Name" style="rpc"/>
<input> <input>
@ -35,7 +35,7 @@ targetNamespace="{$ServiceURL}wsdl">
<soap:body use="encoded" namespace="$CurrentPage.TargetNamespace" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> <soap:body use="encoded" namespace="$CurrentPage.TargetNamespace" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output> </output>
</operation> </operation>
<% end_control %> <% end_loop %>
</binding> </binding>
<service name="SapphireSOAP_methods"> <service name="SapphireSOAP_methods">
<port name="SapphireSOAP_methodsPort" binding="tns:SapphireSOAP_methodsBinding"> <port name="SapphireSOAP_methodsPort" binding="tns:SapphireSOAP_methodsBinding">

View File

@ -209,7 +209,7 @@ class PaginatedList extends SS_ListDecorator {
* <% if MyPages.NotFirstPage %> * <% if MyPages.NotFirstPage %>
* <a class="prev" href="$MyPages.PrevLink">Prev</a> * <a class="prev" href="$MyPages.PrevLink">Prev</a>
* <% end_if %> * <% end_if %>
* <% control MyPages.PaginationSummary(4) %> * <% loop MyPages.PaginationSummary(4) %>
* <% if CurrentBool %> * <% if CurrentBool %>
* $PageNum * $PageNum
* <% else %> * <% else %>
@ -219,7 +219,7 @@ class PaginatedList extends SS_ListDecorator {
* ... * ...
* <% end_if %> * <% end_if %>
* <% end_if %> * <% end_if %>
* <% end_control %> * <% end_loop %>
* <% if MyPages.NotLastPage %> * <% if MyPages.NotLastPage %>
* <a class="next" href="$MyPages.NextLink">Next</a> * <a class="next" href="$MyPages.NextLink">Next</a>
* <% end_if %> * <% end_if %>

View File

@ -13,10 +13,12 @@
* And then it can be used in a number of ways. You can use the ChangedFields() method in a template: * And then it can be used in a number of ways. You can use the ChangedFields() method in a template:
* <pre> * <pre>
* <dl class="diff"> * <dl class="diff">
* <% control Diff.ChangedFields %> * <% with Diff %>
* <% loop ChangedFields %>
* <dt>$Title</dt> * <dt>$Title</dt>
* <dd>$Diff</dd> * <dd>$Diff</dd>
* <% end_control %> * <% end_loop %>
* <% end_with %>
* </dl> * </dl>
* </pre> * </pre>
* *

View File

@ -8,7 +8,7 @@
<thead> <thead>
<tr> <tr>
<% if Markable %><th width="18">&nbsp;</th><% end_if %> <% if Markable %><th width="18">&nbsp;</th><% end_if %>
<% control Headings %> <% loop Headings %>
<th class="$Name"> <th class="$Name">
<% if IsSortable %> <% if IsSortable %>
<span class="sortTitle"> <span class="sortTitle">
@ -28,8 +28,8 @@
$Title $Title
<% end_if %> <% end_if %>
</th> </th>
<% end_control %> <% end_loop %>
<% control Actions %><th width="18">&nbsp;</th><% end_control %> <% loop Actions %><th width="18">&nbsp;</th><% end_loop %>
</tr> </tr>
</thead> </thead>
<tfoot> <tfoot>
@ -37,10 +37,10 @@
<tr class="summary"> <tr class="summary">
<% if Markable %><th width="18">&nbsp;</th><% end_if %> <% if Markable %><th width="18">&nbsp;</th><% end_if %>
<td><i>$SummaryTitle</i></td> <td><i>$SummaryTitle</i></td>
<% control SummaryFields %> <% loop SummaryFields %>
<td<% if Function %> class="$Function"<% end_if %>>$SummaryValue</td> <td<% if Function %> class="$Function"<% end_if %>>$SummaryValue</td>
<% end_control %> <% end_loop %>
<% control Actions %><td width="18">&nbsp;</td><% end_control %> <% loop Actions %><td width="18">&nbsp;</td><% end_loop %>
</tr> </tr>
<% end_if %> <% end_if %>
<% if Can(add) %> <% if Can(add) %>
@ -53,29 +53,29 @@
<% sprintf(_t('ADDITEM', 'Add %s', 'Add [name]'),$Title) %> <% sprintf(_t('ADDITEM', 'Add %s', 'Add [name]'),$Title) %>
</a> </a>
</td> </td>
<% control Actions %><td width="18">&nbsp;</td><% end_control %> <% loop Actions %><td width="18">&nbsp;</td><% end_loop %>
</tr> </tr>
<% end_if %> <% end_if %>
</tfoot> </tfoot>
<tbody> <tbody>
<% if Items %> <% if Items %>
<% control Items %> <% loop Items %>
<% include TableListField_Item %> <% include TableListField_Item %>
<% end_control %> <% end_loop %>
<% else %> <% else %>
<tr class="notfound"> <tr class="notfound">
<% if Markable %><th width="18">&nbsp;</th><% end_if %> <% if Markable %><th width="18">&nbsp;</th><% end_if %>
<td colspan="$Headings.Count"><i><% _t('NOITEMSFOUND', 'No items found') %></i></td> <td colspan="$Headings.Count"><i><% _t('NOITEMSFOUND', 'No items found') %></i></td>
<% control Actions %><td width="18">&nbsp;</td><% end_control %> <% loop Actions %><td width="18">&nbsp;</td><% end_loop %>
</tr> </tr>
<% end_if %> <% end_if %>
</tbody> </tbody>
</table> </table>
<% if Utility %> <% if Utility %>
<div class="utility"> <div class="utility">
<% control Utility %> <% loop Utility %>
<span class="item"><a href="$Link" target="_blank">$Title</a></span> <span class="item"><a href="$Link" target="_blank">$Title</a></span>
<% end_control %> <% end_loop %>
</div> </div>
<% end_if %> <% end_if %>
</div> </div>

View File

@ -21,13 +21,13 @@
<% if xdsfdsf %> <% if xdsfdsf %>
<% else %> <% else %>
<td> <td>
<% control Paginator.Pages %> <% loop Paginator.Pages %>
<% if active %> <% if active %>
<a href="$link">$number</a> <a href="$link">$number</a>
<% else %> <% else %>
<span>$number</span> <span>$number</span>
<% end_if %> <% end_if %>
<% end_control %> <% end_loop %>
</td> </td>
<% end_if %> <% end_if %>
<% if Paginator.NextLink %> <% if Paginator.NextLink %>

View File

@ -9,17 +9,17 @@
<fieldset> <fieldset>
<% if Legend %><legend>$Legend</legend><% end_if %> <% if Legend %><legend>$Legend</legend><% end_if %>
<% control Fields %> <% loop Fields %>
$FieldHolder $FieldHolder
<% end_control %> <% end_loop %>
<div class="clear"><!-- --></div> <div class="clear"><!-- --></div>
</fieldset> </fieldset>
<% if Actions %> <% if Actions %>
<div class="Actions"> <div class="Actions">
<% control Actions %> <% loop Actions %>
$Field $Field
<% end_control %> <% end_loop %>
</div> </div>
<% end_if %> <% end_if %>
<% if IncludeFormTag %> <% if IncludeFormTag %>

View File

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

View File

@ -1,5 +1,5 @@
<tr class="filter-header"> <tr class="filter-header">
<% control Fields %> <% loop Fields %>
<th class="extra"><span>$Field</span></th> <th class="extra"><span>$Field</span></th>
<% end_control %> <% end_loop %>
</tr> </tr>

View File

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

View File

@ -1,12 +1,12 @@
<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 %>
<% control Fields %> <% loop Fields %>
<td>$Value</td> <td>$Value</td>
<% end_control %> <% end_loop %>
<td colspan="$GridField.ExtraColumnsCount" class="ss-gridfield-last"></td> <td colspan="$GridField.ExtraColumnsCount" class="ss-gridfield-last"></td>
<% else %> <% else %>
<% control 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_control %> <% end_loop %>
<% end_if %> <% end_if %>
</tr> </tr>

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><% control Header %><th>$CellString</th><% end_control %></tr> <tr><% loop Header %><th>$CellString</th><% end_loop %></tr>
</thead> </thead>
<tbody> <tbody>
<% control ItemRows %> <% loop ItemRows %>
<tr><% control ItemRow %><td>$CellString</td><% end_control %></tr> <tr><% loop ItemRow %><td>$CellString</td><% end_loop %></tr>
<% end_control %> <% end_loop %>
</tbody> </tbody>
</table> </table>
<p> <p>

View File

@ -8,9 +8,9 @@
</div> </div>
<div class="details"> <div class="details">
<fieldset> <fieldset>
<% control Fields %> <% loop Fields %>
$FieldHolder $FieldHolder
<% end_control %> <% end_loop %>
</fieldset> </fieldset>
</div> </div>
</div> </div>

View File

@ -1,9 +1,9 @@
<tr id="record-$Parent.id-$ID"<% if HighlightClasses %> class="$HighlightClasses"<% end_if %>> <tr id="record-$Parent.id-$ID"<% if HighlightClasses %> class="$HighlightClasses"<% end_if %>>
<% if Markable %><td width="16" class="$SelectOptionClasses">$MarkingCheckbox</td><% end_if %> <% if Markable %><td width="16" class="$SelectOptionClasses">$MarkingCheckbox</td><% end_if %>
<% control Fields %> <% loop Fields %>
<td class="field-$Title.HTMLATT $FirstLast $Name">$Value</td> <td class="field-$Title.HTMLATT $FirstLast $Name">$Value</td>
<% end_control %> <% end_loop %>
<% control Actions %> <% loop Actions %>
<td width="16" class="action"> <td width="16" class="action">
<% if IsAllowed %> <% if IsAllowed %>
<a class="$Class" href="$Link"<% if TitleText %> title="$TitleText"<% end_if %>> <a class="$Class" href="$Link"<% if TitleText %> title="$TitleText"<% end_if %>>
@ -15,5 +15,5 @@
</span> </span>
<% end_if %> <% end_if %>
</td> </td>
<% end_control %> <% end_loop %>
</tr> </tr>

View File

@ -1 +1 @@
<% control Fields %>"$Value"<% if Last %>\n<% else %>$CsvSeparator<% end_if %><% end_control %> <% loop Fields %>"$Value"<% if Last %>\n<% else %>$CsvSeparator<% end_if %><% end_loop %>

View File

@ -1,8 +1,8 @@
<% if SelectOptions %> <% if SelectOptions %>
<ul class="selectOptions"> <ul class="selectOptions">
<li><% _t('TableListField.SELECT', 'Select:') %></li> <li><% _t('TableListField.SELECT', 'Select:') %></li>
<% control SelectOptions %> <% loop SelectOptions %>
<li><a rel="$Key" href="#" title="$Key">$Value</a></li> <li><a rel="$Key" href="#" title="$Key">$Value</a></li>
<% end_control %> <% end_loop %>
</ul> </ul>
<% end_if %> <% end_if %>

View File

@ -1,6 +1,6 @@
<% if Markable %><th width="16">&nbsp;</th><% end_if %> <% if Markable %><th width="16">&nbsp;</th><% end_if %>
<th><i>$SummaryTitle</i></th> <th><i>$SummaryTitle</i></th>
<% control SummaryFields %> <% loop SummaryFields %>
<th class="field-$Name.HTMLATT<% if Function %> $Function<% end_if %>">$SummaryValue</th> <th class="field-$Name.HTMLATT<% if Function %> $Function<% end_if %>">$SummaryValue</th>
<% end_control %> <% end_loop %>
<% if Can(delete) %><th width="18">&nbsp;</th><% end_if %> <% if Can(delete) %><th width="18">&nbsp;</th><% end_if %>

View File

@ -6,7 +6,7 @@
<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>
<% control Entries %> <% loop Entries %>
<item> <item>
<title>$Title.XML</title> <title>$Title.XML</title>
<link>$AbsoluteLink</link> <link>$AbsoluteLink</link>
@ -16,7 +16,6 @@
<% 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_control %> <% end_loop %>
</channel> </channel>
</rss> </rss>

View File

@ -7,9 +7,9 @@
<thead> <thead>
<tr> <tr>
<% if Markable %><th width="18">&nbsp;</th><% end_if %> <% if Markable %><th width="18">&nbsp;</th><% end_if %>
<% control Headings %> <% loop Headings %>
<th class="$Name">$Title</th> <th class="$Name">$Title</th>
<% end_control %> <% end_loop %>
<% if Can(show) %><th width="18">&nbsp;</th><% end_if %> <% if Can(show) %><th width="18">&nbsp;</th><% end_if %>
<% if Can(edit) %><th width="18">&nbsp;</th><% end_if %> <% if Can(edit) %><th width="18">&nbsp;</th><% end_if %>
<% if Can(delete) %><th width="18">&nbsp;</th><% end_if %> <% if Can(delete) %><th width="18">&nbsp;</th><% end_if %>
@ -20,9 +20,9 @@
<tr class="summary"> <tr class="summary">
<% if Markable %><th width="18">&nbsp;</th><% end_if %> <% if Markable %><th width="18">&nbsp;</th><% end_if %>
<td><i>$SummaryTitle</i></td> <td><i>$SummaryTitle</i></td>
<% control SummaryFields %> <% loop SummaryFields %>
<td<% if Function %> class="$Function"<% end_if %>>&nbsp;</td> <td<% if Function %> class="$Function"<% end_if %>>&nbsp;</td>
<% end_control %> <% end_loop %>
<% if Can(show) %><td width="18">&nbsp;</td><% end_if %> <% if Can(show) %><td width="18">&nbsp;</td><% end_if %>
<% if Can(edit) %><td width="18">&nbsp;</td><% end_if %> <% if Can(edit) %><td width="18">&nbsp;</td><% end_if %>
<% if Can(delete) %><td width="18">&nbsp;</td><% end_if %> <% if Can(delete) %><td width="18">&nbsp;</td><% end_if %>
@ -44,9 +44,9 @@
</tfoot> </tfoot>
<tbody> <tbody>
<% if Items %> <% if Items %>
<% control Items %> <% loop Items %>
<% include TableListField_Item %> <% include TableListField_Item %>
<% end_control %> <% end_loop %>
<% else %> <% else %>
<tr class="notfound"> <tr class="notfound">
<% if Markable %><th width="18">&nbsp;</th><% end_if %> <% if Markable %><th width="18">&nbsp;</th><% end_if %>

View File

@ -1,10 +1,10 @@
<form $FormAttributes> <form $FormAttributes>
<fieldset> <fieldset>
<% control Fields %> <% loop Fields %>
$FieldHolder $FieldHolder
<% end_control %> <% end_loop %>
<% control Actions %> <% loop Actions %>
$Field $Field
<% end_control %> <% end_loop %>
</fieldset> </fieldset>
</form> </form>

View File

@ -9,9 +9,9 @@
<table class="data"> <table class="data">
<thead> <thead>
<tr> <tr>
<% control Headings %> <% loop Headings %>
<th class="$Name $Class" scope="col">$Title</th> <th class="$Name $Class" scope="col">$Title</th>
<% end_control %> <% end_loop %>
<th style="display: none"></th> <th style="display: none"></th>
<% if Can(delete) %><th width="18">&nbsp;</th><% end_if %> <% if Can(delete) %><th width="18">&nbsp;</th><% end_if %>
</tr> </tr>
@ -20,9 +20,9 @@
<% if HasSummary %> <% if HasSummary %>
<tr class="summary"> <tr class="summary">
<td><i>$SummaryTitle</i></td> <td><i>$SummaryTitle</i></td>
<% control SummaryFields %> <% loop SummaryFields %>
<td<% if Function %> class="$Function"<% end_if %>>$SummaryValue</td> <td<% if Function %> class="$Function"<% end_if %>>$SummaryValue</td>
<% end_control %> <% end_loop %>
<th style="display: none"></th> <th style="display: none"></th>
<% if Can(delete) %><td width="18">&nbsp;</td><% end_if %> <% if Can(delete) %><td width="18">&nbsp;</td><% end_if %>
</tr> </tr>
@ -41,15 +41,15 @@
</tfoot> </tfoot>
<tbody> <tbody>
<% if Items %> <% if Items %>
<% control Items %> <% loop Items %>
<tr id="record-$Parent.id-$ID" class="row<% if HighlightClasses %> $HighlightClasses<% end_if %>"> <tr id="record-$Parent.id-$ID" class="row<% if HighlightClasses %> $HighlightClasses<% end_if %>">
<% control Fields %> <% loop Fields %>
<td class="$FieldClass $extraClass $ClassName $Title tablecolumn">$Field</td> <td class="$FieldClass $extraClass $ClassName $Title tablecolumn">$Field</td>
<% end_control %> <% end_loop %>
<td style="display: none">$ExtraData</td> <td style="display: none">$ExtraData</td>
<% if Can(delete) %><td width="18"><a class="deletelink" href="$DeleteLink" title="<% _t('DELETEROW') %>"><img src="$ModulePath(framework)/images/delete.gif" alt="<% _t('DELETE') %>" /></a></td><% end_if %> <% if Can(delete) %><td width="18"><a class="deletelink" href="$DeleteLink" title="<% _t('DELETEROW') %>"><img src="$ModulePath(framework)/images/delete.gif" alt="<% _t('DELETE') %>" /></a></td><% end_if %>
</tr> </tr>
<% end_control %> <% end_loop %>
<% else %> <% else %>
<tr class="notfound"> <tr class="notfound">
<% if Markable %><th width="18">&nbsp;</th><% end_if %> <% if Markable %><th width="18">&nbsp;</th><% end_if %>
@ -60,9 +60,9 @@
</tbody> </tbody>
</table> </table>
<% if Print %><% else %><div class="utility"> <% if Print %><% else %><div class="utility">
<% control Utility %> <% loop Utility %>
<span class="item"><a href="$Link">$Title</a></span> <span class="item"><a href="$Link">$Title</a></span>
<% end_control %> <% end_loop %>
</div><% end_if %> </div><% end_if %>
<% if Message %> <% if Message %>
<span class="message $MessageType">$Message</span> <span class="message $MessageType">$Message</span>

View File

@ -10,13 +10,13 @@
<tr> <tr>
<% if Markable %><th width="16"><% if MarkableTitle %>$MarkableTitle<% else %>&nbsp;<% end_if %></th><% end_if %> <% if Markable %><th width="16"><% if MarkableTitle %>$MarkableTitle<% else %>&nbsp;<% end_if %></th><% end_if %>
<% if Print %> <% if Print %>
<% control Headings %> <% loop Headings %>
<th class="$Name"> <th class="$Name">
$Title $Title
</th> </th>
<% end_control %> <% end_loop %>
<% else %> <% else %>
<% control Headings %> <% loop Headings %>
<th class="$Name"> <th class="$Name">
<% if IsSortable %> <% if IsSortable %>
<span class="sortTitle"> <span class="sortTitle">
@ -35,7 +35,7 @@
<span>$Title</span> <span>$Title</span>
<% end_if %> <% end_if %>
</th> </th>
<% end_control %> <% end_loop %>
<% end_if %> <% end_if %>
<% if Can(delete) %><th width="18">&nbsp;</th><% end_if %> <% if Can(delete) %><th width="18">&nbsp;</th><% end_if %>
</tr> </tr>
@ -51,19 +51,19 @@
<tbody> <tbody>
<% if HasGroupedItems %> <% if HasGroupedItems %>
<% control GroupedItems %> <% loop GroupedItems %>
<% control Items %> <% loop Items %>
<% include TableListField_Item %> <% include TableListField_Item %>
<% end_control %> <% end_loop %>
<tr class="summary partialSummary"> <tr class="summary partialSummary">
<% include TableListField_Summary %> <% include TableListField_Summary %>
</tr> </tr>
<% end_control %> <% end_loop %>
<% else %> <% else %>
<% if Items %> <% if Items %>
<% control Items %> <% loop Items %>
<% include TableListField_Item %> <% include TableListField_Item %>
<% end_control %> <% end_loop %>
<% else %> <% else %>
<tr class="notfound"> <tr class="notfound">
<% if Markable %><th width="18">&nbsp;</th><% end_if %> <% if Markable %><th width="18">&nbsp;</th><% end_if %>
@ -78,8 +78,8 @@
</tbody> </tbody>
</table> </table>
<% if Print %><% else %><div class="utility"> <% if Print %><% else %><div class="utility">
<% control Utility %> <% loop Utility %>
<span class="item"><a href="$Link">$Title</a></span> <span class="item"><a href="$Link">$Title</a></span>
<% end_control %> <% end_loop %>
</div><% end_if %> </div><% end_if %>
</div> </div>

View File

@ -1,11 +1,11 @@
<ul id="$ID" class="$extraClass"<% if Description %> title="$Description"<% end_if %>> <ul id="$ID" class="$extraClass"<% if Description %> title="$Description"<% end_if %>>
<% if Options.Count %> <% if Options.Count %>
<% control 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_control %> <% end_loop %>
<% else %> <% else %>
<li>No options available</li> <li>No options available</li>
<% end_if %> <% end_if %>

View File

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

View File

@ -1,8 +1,8 @@
<ul id="$ID" class="$extraClass"<% if Description %> title="$Description"<% end_if %>> <ul id="$ID" class="$extraClass"<% if Description %> title="$Description"<% end_if %>>
<% control 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_control %> <% end_loop %>
</ul> </ul>

View File

@ -1,6 +1,6 @@
<% if IsReadonly %> <% if IsReadonly %>
<ul class="SelectionGroup<% if extraClass %> $extraClass<% end_if %>"> <ul class="SelectionGroup<% if extraClass %> $extraClass<% end_if %>">
<% control FieldSet %> <% loop FieldSet %>
<% if Selected %> <% if Selected %>
<li$Selected> <li$Selected>
$RadioLabel $RadioLabel
@ -8,7 +8,7 @@
</li> </li>
</ul> </ul>
<% end_if %> <% end_if %>
<% end_control %> <% end_loop %>
<% else %> <% else %>
<ul class="SelectionGroup<% if extraClass %> $extraClass<% end_if %>"><% control FieldSet %><li$Selected>{$RadioButton}{$RadioLabel}{$FieldHolder}</li><% end_control %></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,19 +1,19 @@
<div $AttributesHTML> <div $AttributesHTML>
<ul> <ul>
<% control 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_control %> <% end_loop %>
</ul> </ul>
<% control Tabs %> <% loop Tabs %>
<div $AttributesHTML> <div $AttributesHTML>
<% if Tabs %> <% if Tabs %>
$FieldHolder $FieldHolder
<% else %> <% else %>
<% control Fields %> <% loop Fields %>
$FieldHolder $FieldHolder
<% end_control %> <% end_loop %>
<% end_if %> <% end_if %>
</div> </div>
<% end_control %> <% end_loop %>
</div> </div>

View File

@ -5,8 +5,8 @@
$Title $Title
</h$HeadingLevel> </h$HeadingLevel>
<div class="contentMore"> <div class="contentMore">
<% control FieldSet %> <% loop FieldSet %>
$FieldHolder $FieldHolder
<% end_control %> <% end_loop %>
</div> </div>
</div> </div>

View File

@ -1,6 +1,6 @@
$Title $Title
<% if Children %> <% if Children %>
<% control Children %> <% loop Children %>
<% include SSViewerTestRecursiveInclude %> <% include SSViewerTestRecursiveInclude %>
<% end_control %> <% end_loop %>
<% end_if %> <% end_if %>