1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-27 06:54:31 +02:00

Flextype Box Plugin: Admin #125 #117

- Templates Controller/Views implementation
This commit is contained in:
Awilum
2019-05-26 00:33:39 +03:00
parent ad9a402e3d
commit 9723470fac

View File

@@ -8,7 +8,26 @@ class TemplatesController extends Controller
{
public function index($request, $response, $args)
{
return $this->view->render($response,
'plugins/admin/views/templates/extends/templates/index.html', [
'menu_item' => 'templates',
'templates_list' => $this->themes->getTemplates(),
'partials_list' => $this->themes->getPartials(),
'links' => [
'templates' => [
'link' => $this->router->pathFor('admin.templates.index'),
'title' => __('admin_templates'),
'attributes' => ['class' => 'navbar-item active']
],
],
'buttons' => [
'templates_create' => [
'link' => $this->router->pathFor('admin.templates.add'),
'title' => __('admin_create_new_template'),
'attributes' => ['class' => 'float-right btn']
],
]
]);
}
public function add($request, $response, $args)