1 #set ($title = "List <%= PluralHumanName %>")
\r
3 <div class="actions">
\r
4 $HtmlHelper.LinkTo("Add a new <%= SingularHumanName %>", "<%= ControllerLink %>", "new")
\r
7 #if (!$ScaffoldHelper.HasItems($<%= PluralVarName %>))
\r
8 <p>No <%= SingularHumanName %></p>
\r
10 <table class="list">
\r
13 #foreach ($prop in $ScaffoldHelper.GetProperties($<%= PluralVarName %>))
\r
14 <th>$ScaffoldHelper.ToColumnName($prop)</th>
\r
20 #foreach ($<%= SingularVarName %> in $<%= PluralVarName %>)
\r
21 <tr id="<%= SingularVarName %>$<%= SingularVarName %>.Id" class="item$alt#if ($edited == $<%= SingularVarName %>.Id) fade#end">
\r
23 ## Show each <%= SingularVarName %>
\r
24 #foreach ($prop in $ScaffoldHelper.GetProperties($<%= SingularVarName %>.GetType()))
\r
25 <td>$!ScaffoldHelper.GetPropertyValue($<%= SingularVarName %>, $prop)</td>
\r
28 ## <%= SingularVarName %> specific actions
\r
29 <td class="actions">
\r
30 $HtmlHelper.LinkTo("View", "<%= ControllerLink %>", "view", $<%= SingularVarName %>.Id)
\r
31 $HtmlHelper.LinkTo("Edit", "<%= ControllerLink %>", "edit", $<%= SingularVarName %>.Id)
\r
32 $AjaxHelper.LinkToRemote("Delete", "delete.<%= ActionExtension %>", $DictHelper.CreateDict("with='id=$<%= SingularVarName %>.Id'", "condition=confirm('Delete?')", "onsuccess=new Effect.Fade('<%= SingularVarName %>$<%= SingularVarName %>.Id')"))
\r
36 #set ($alt = 1 - $alt)
\r
41 <th class="currentpage" colspan="$ScaffoldHelper.GetProperties($<%= PluralVarName %>).Length">
\r
42 <%= PluralHumanName %> $<%= PluralVarName %>.FirstItem - $<%= PluralVarName %>.LastItem of $<%= PluralVarName %>.TotalItems
\r
44 <th class="pagebrowser" align="right">
\r
45 $ScaffoldHelper.PageBrowser($<%= PluralVarName %>)
\r