mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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:
parent
387b5edd21
commit
5cd507ecaa
@ -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.
|
||||
|
@ -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 %>
|
||||
|
Loading…
Reference in New Issue
Block a user