1 <div class="actions">
\r
2 ${HtmlHelper.LinkTo('Add a new <%= SingularHumanName %>', '<%= ControllerLink %>', 'new')}
\r
5 <?brail if not ScaffoldHelper.HasItems(<%= PluralVarName %>): ?>
\r
6 <p>No <%= SingularHumanName %></p>
\r
10 <!-- Show each column -->
\r
11 <?brail for prop in ScaffoldHelper.GetProperties(<%= PluralVarName %>): ?>
\r
12 <th>${ScaffoldHelper.ToColumnName(prop)}</th>
\r
19 for <%= SingularVarName %> in <%= PluralVarName %>: ?>
\r
20 <tr id="<%= SingularVarName %>${<%= SingularVarName %>.Id}" class="item${alt}">
\r
22 <!-- Show each <%= SingularVarName %> -->
\r
23 <?brail for prop in ScaffoldHelper.GetProperties(<%= SingularVarName %>.GetType()): ?>
\r
24 <td>${ScaffoldHelper.GetPropertyValue(<%= SingularVarName %>, prop)}</td>
\r
27 <!-- <%= SingularVarName %> specific actions -->
\r
28 <td class="actions">
\r
29 ${HtmlHelper.LinkTo('View', '<%= ControllerLink %>', 'view', <%= SingularVarName %>.Id)}
\r
30 ${HtmlHelper.LinkTo('Edit', '<%= ControllerLink %>', 'edit', <%= SingularVarName %>.Id)}
\r
31 ${AjaxHelper.LinkToRemote('Delete', 'delete.<%= ActionExtension %>', DictHelper.CreateDict('with=\'id=' + <%= SingularVarName %>.Id +'\'', 'condition=confirm(\'Delete?\')', 'onsuccess=new Effect.Fade(\'<%= SingularVarName %>' + <%= SingularVarName %>.Id + '\')'))}
\r
35 <?brail alt = 1 - alt ?>
\r
38 <!-- Pages browser -->
\r
40 <th class="currentpage" colspan="$ScaffoldHelper.GetProperties(<%= PluralVarName %>).Length">
\r
41 <%= PluralHumanName %> ${<%= PluralVarName %>.FirstItem} - ${<%= PluralVarName %>.LastItem} of ${<%= PluralVarName %>.TotalItems}
\r
43 <th class="pagebrowser" align="right">
\r
44 ${ScaffoldHelper.PageBrowser(<%= PluralVarName %>)}
\r