更换后台UI,使用adminlteUI
This commit is contained in:
@@ -49,7 +49,8 @@ class Content extends Base {
|
||||
'list' => $list,
|
||||
'page' => $list->render(),
|
||||
'model_name' => $this->modelInfo['name'],
|
||||
'model_id' => $this->modelInfo['id']
|
||||
'model_id' => $this->modelInfo['id'],
|
||||
'meta_title' => $this->modelInfo['title'].'列表'
|
||||
);
|
||||
if ($this->modelInfo['template_list']) {
|
||||
$template = 'admin/content/' . $this->modelInfo['template_list'];
|
||||
@@ -74,11 +75,12 @@ class Content extends Base {
|
||||
} else {
|
||||
$info = [
|
||||
'model_name' => $this->modelInfo['name'],
|
||||
'model_id' => $this->modelInfo['id'],
|
||||
'model_id' => $this->modelInfo['id']
|
||||
];
|
||||
$this->data = [
|
||||
'info' => $info,
|
||||
'fieldGroup' => Attribute::getField($this->modelInfo),
|
||||
'meta_title' => $this->modelInfo['title'].'添加'
|
||||
];
|
||||
|
||||
if ($this->modelInfo['template_add']) {
|
||||
@@ -114,6 +116,7 @@ class Content extends Base {
|
||||
$this->data = array(
|
||||
'info' => $info,
|
||||
'fieldGroup' => Attribute::getField($this->modelInfo, 'edit'),
|
||||
'meta_title' => $this->modelInfo['title'].'修改'
|
||||
);
|
||||
if ($this->modelInfo['template_edit']) {
|
||||
$template = 'admin/content/' . $this->modelInfo['template_edit'];
|
||||
|
||||
Reference in New Issue
Block a user