Skip to content

Commit

Permalink
优化:路由管理界面
Browse files Browse the repository at this point in the history
  • Loading branch information
dxkite committed Apr 26, 2017
1 parent 87fa2dd commit 97d8657
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ public function onRequest(Request $request)

return $this->page('suda:router_add')->set('header_select','router_list')
->set('modules', RouterManager::getModules())
->set('title', _T('模块添加'))->render();
->set('title', _T('添加路由'))->render();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function onRequest(Request $request)
strtolower($post->role)=='admin',
false,
strtolower($post->new)=='on');
return $this->page('suda:router_edit_ok')->render();
return $this->page('suda:router_edit_ok',['title'=>_T('编辑 %s 成功',$edit)])->render();
}

if ($edit && $module) {
Expand All @@ -57,6 +57,7 @@ public function onRequest(Request $request)
} else {
$methods['ALL']=true;
}
$page->set('title',_T('编辑路由 %s',$edit));
$page->set('method', $methods)->set('header_select', 'router_list');
$page->set('modules', RouterManager::getModules());
return $page->render();
Expand Down

0 comments on commit 97d8657

Please sign in to comment.