// Improving admin list action "details"

This commit is contained in:
mDeflotte
2011-10-17 15:50:54 +00:00
parent ef0184a6fb
commit 3ebbab2084
2 changed files with 30 additions and 16 deletions
+9 -1
View File
@@ -318,15 +318,23 @@ class HelperListCore extends Helper
/**
* Display action to see details of a table row
* Display action show details of a table row
* This action need an ajax request with a return like this:
* {
* use_parent_structure: true // If false, data need to be an html
* data:
* [
* {field_name: 'value'}
* ],
* fields_display: // attribute $fieldsDisplay of the admin controller
* }
* or somethins like this:
* {
* use_parent_structure: false // If false, data need to be an html
* data:
* '<p>My html content</p>',
* fields_display: // attribute $fieldsDisplay of the admin controller
* }
*/
protected function _displayDetailsLink($token = null, $id)
{