Merged [47101]: Adds class=action to action cells in MemberTableField.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@60548 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Hayden Smith 2008-08-12 23:17:21 +00:00
parent 387b5edd21
commit 5cd507ecaa
2 changed files with 8 additions and 6 deletions

View File

@ -412,9 +412,11 @@ HTML;
$result = $tmpItem;
}
// casting
list ($field, $caster) = explode("->", $field);
if($caster) {
if(strpos('->', $field) !== false) {
list ($field, $caster) = explode("->", $field);
}
if(!empty($caster)) {
$fieldNameParts = explode('.', $field);
$fieldName = $fieldNameParts[sizeof($fieldNameParts)-1];
// When the intending value is Created.Date, the obj need to be casted as Datetime explicitely.

View File

@ -41,17 +41,17 @@
<td>$Value</td>
<% end_control %>
<% if Can(show) %>
<td width="18">
<td width="18" class="action">
<a class="popuplink showlink" href="$ShowLink" title="<% _t('SHOWMEMBER','Show this member') %>" target="_blank"><img src="cms/images/show.png" alt="show" /></a>
</td>
<% end_if %>
<% if Can(edit) %>
<td width="18">
<td width="18" class="action">
<a class="popuplink editlink" href="$EditLink" title="<% _t('EDITMEMBER','Edit this member') %>" target="_blank"><img src="cms/images/edit.gif" alt="edit" /></a>
</td>
<% end_if %>
<% if Can(delete) %>
<td width="18">
<td width="18" class="action">
<a class="deletelink" href="$DeleteLink" title="<% _t('DELETEMEMBER','Delete this member') %>"><img src="cms/images/delete.gif" alt="delete" /></a>
</td>
<% end_if %>