FEATURE: TableListField's TRs can now have class=loading added to them to show a loading icon. (Used by ModelAdmin)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@62333 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-09-13 04:42:59 +00:00
parent 8b83c68f4c
commit e76c68eff4
2 changed files with 9 additions and 1 deletions

View File

@ -138,6 +138,14 @@ table.CMSList tbody td.current td {
background: none;
}
/**
* Show a loading indication on a TableListField row
*/
.TableListField tr.loading td.first {
padding-left: 22px;
background: url(../../cms/images/network-save.gif) 3px 2px no-repeat;
}
.right form .TableField span.readonly {
border: 0;
background: none;

View File

@ -1,7 +1,7 @@
<tr id="record-$Parent.id-$ID"<% if HighlightClasses %> class="$HighlightClasses"<% end_if %>>
<% if Markable %><td width="16">$MarkingCheckbox</td><% end_if %>
<% control Fields %>
<td class="field-$Title.HTMLATT">$Value</td>
<td class="field-$Title.HTMLATT $FirstLast">$Value</td>
<% end_control %>
<% control Actions %>
<td width="16"><a class="$Class" href="$Link"><% if Icon %><img src="$Icon" alt="$Label" /><% else %>$Label<% end_if %></a></td>