get_index_label()
Purpose
set index page table properties, like table entries, color, ...
Usage
return either a array with following fields or (for historical reasons) return a string with index/header description:
| | | |
---|
index | array | fields to display on index screen, each array entry is splitted in table <td> segments | |
index_header | array | the corresponding header array for index table view | |
bsclass | string | bootstrap class of table segments | 'success', 'warning', 'danger', 'info' |
header | string | string to display for header reference field | |
| | | |
Example
Code Block |
---|
|
// link title in index view
public function get_index_label()
{
return ['index' => [$this->name, $this->ds_rate_max.' MBit/s', $this->us_rate_max.' MBit/s'],
'index_header' => ['Name', 'DS Rate', 'US Rate'],
'header' => $this->name];
} |
...
Model Variables
name | behavior |
---|
index_delete_disabled | if set to true the index delete checkbox for this model is disabled |
force_delete | use forced deletes – Patrick Reichel |
index_databales_ajax_enabled | use ajax for fast loading – Christian Schramm |
Controller Variables
Allow Stuff
name | Behavior | Note |
---|
index_create_allowed | Is create allowed in index page | |
index_delete_allowed | Is delete allowed in index page | redundant to Model variable index_delete_allowed |
Button Names
name | behavior |
---|
save_button | Name of the Save Button |
force_restart_button | Name of the restart Button |
relation_create_button | Name of the Create Button |
edit_view_save_button | Show Save Button ? |
edit_view_force_restart_button | Show Force Restart Button ? |
Look and Feel
name | Page | Behavior | Default | |
---|
edit_left_md_size | edit | bootstrap MD size of left frame | 8 | |
edit_right_md_size | edit | bootstrap MD size of right frame | null, which means 12-8 = 4 | |
index_left_md_size | index | bootstrap MD size | 12 | |