我想在管理部分的标签中显示网格或可编辑的表格 我设法完成了模块并显示了三个选项卡。在其中一个选项卡中,我想显示一个可编辑的网格,即在CHECKS选项卡中
如下图所示,在chek标签部分我想显示一个网格
在我的模块管理控制器的构造函数中() 即在addhealthcheckconfig \ controllers \ admin \ HealthCheckConfigController.php中 我正在设置字段选项以填充选项卡,下面是我的代码:
$this->fields_options = array(
'appearance' => array(
'title' => $this->l('Manage your Health Check '),
'icon' => 'icon-html5',
'tabs' => array(
'TAB1' => $this->l('SUPPORT_GROUPS'),
'TAB2' => $this->l('CHECKS'),
'TAB3' => $this->l('REPORT RECIPIENTS'),
),
'fields' => array(
'SUPPORT_GROUPS' => array(
'title' => $this->l('SUPPORT GROUPS'),
'hint' => $this->l('Manage your Support Groups here'),
'type' => 'fields_list',
'name' => 'PS_LOGO',
'tab' => 'TAB1'
),
'CHECKS' => array(
'title' => $this->l('LIST OF AVAILABLE CHECKS '),
'hint' => $this->l('List of Available checks will be displayed here !!'),
'type' => 'text',
'list' => $this->fields_list = array(
'code' => array(
'title' => $this->l('code'),
'align' => 'text-center',
'remove_onclick' => true,
'search' => false,
),
'description' => array(
'title' => $this->l('description'),
'align' => 'text-center',
'remove_onclick' => true,
'search' => false,
),
'category' => array(
'title' => $this->l('category'),
'align' => 'text-center',
'remove_onclick' => true,
'search' => false,
),
),
'tab' => 'TAB2'
),
'REPORT_RECIPIENTS' => array(
'title' => $this->l('REPORT RECIPIENTS '),
'hint' => $this->l('List of Available checks will be displayed here !!'),
'tab' => 'TAB3'
),
) ));
在TAB2部分我不知道我需要放入'类型'部分,我尝试使用列表,但我无法实现我想要做的事情,我也不知道如何分配$ this-> fields_list到该类型正确
如何在我的标签中实现这个可编辑的数据库网格?