mirror of
https://github.com/flextype/flextype.git
synced 2025-08-18 02:41:27 +02:00
Admin Panel: fix all tabs state for Fieldsets, Snippets, Templates areas #165
This commit is contained in:
@@ -53,16 +53,14 @@ class FieldsetsController extends Controller
|
||||
'fieldsets' => [
|
||||
'link' => $this->router->pathFor('admin.fieldsets.index'),
|
||||
'title' => __('admin_fieldsets'),
|
||||
'attributes' => ['class' => 'navbar-item active']
|
||||
'attributes' => ['class' => 'navbar-item']
|
||||
],
|
||||
],
|
||||
'buttons' => [
|
||||
'fieldsets_add' => [
|
||||
'link' => $this->router->pathFor('admin.fieldsets.add'),
|
||||
'title' => __('admin_create_new_fieldset'),
|
||||
'attributes' => ['class' => 'float-right btn']
|
||||
]
|
||||
'attributes' => ['class' => 'navbar-item active']
|
||||
]
|
||||
],
|
||||
]
|
||||
);
|
||||
}
|
||||
@@ -145,7 +143,7 @@ class FieldsetsController extends Controller
|
||||
'fieldsets' => [
|
||||
'link' => $this->router->pathFor('admin.fieldsets.index'),
|
||||
'title' => __('admin_fieldsets'),
|
||||
'attributes' => ['class' => 'navbar-item active']
|
||||
'attributes' => ['class' => 'navbar-item']
|
||||
],
|
||||
'fieldsets_rename' => [
|
||||
'link' => $this->router->pathFor('admin.fieldsets.rename') . '?id=' . $request->getQueryParams()['id'],
|
||||
|
@@ -69,6 +69,11 @@ class SnippetsController extends Controller
|
||||
'snippets' => [
|
||||
'link' => $this->router->pathFor('admin.snippets.index'),
|
||||
'title' => __('admin_snippets'),
|
||||
'attributes' => ['class' => 'navbar-item']
|
||||
],
|
||||
'snippets_rename' => [
|
||||
'link' => $this->router->pathFor('admin.snippets.add'),
|
||||
'title' => __('admin_create_new_snippet'),
|
||||
'attributes' => ['class' => 'navbar-item active']
|
||||
],
|
||||
]
|
||||
@@ -174,9 +179,14 @@ class SnippetsController extends Controller
|
||||
'menu_item' => 'snippets',
|
||||
'id_current' => $request->getQueryParams()['id'],
|
||||
'links' => [
|
||||
'templates' => [
|
||||
'snippets' => [
|
||||
'link' => $this->router->pathFor('admin.snippets.index'),
|
||||
'title' => __('admin_templates'),
|
||||
'title' => __('admin_snippets'),
|
||||
'attributes' => ['class' => 'navbar-item']
|
||||
],
|
||||
'snippets_rename' => [
|
||||
'link' => $this->router->pathFor('admin.snippets.rename') . '?id=' . $request->getQueryParams()['id'],
|
||||
'title' => __('admin_rename'),
|
||||
'attributes' => ['class' => 'navbar-item active']
|
||||
],
|
||||
]
|
||||
|
@@ -71,6 +71,11 @@ class TemplatesController extends Controller
|
||||
'templates' => [
|
||||
'link' => $this->router->pathFor('admin.templates.index'),
|
||||
'title' => __('admin_templates'),
|
||||
'attributes' => ['class' => 'navbar-item']
|
||||
],
|
||||
'templates_create' => [
|
||||
'link' => $this->router->pathFor('admin.templates.add'),
|
||||
'title' => __('admin_create_new_template'),
|
||||
'attributes' => ['class' => 'navbar-item active']
|
||||
],
|
||||
]
|
||||
@@ -191,6 +196,11 @@ class TemplatesController extends Controller
|
||||
'templates' => [
|
||||
'link' => $this->router->pathFor('admin.templates.index'),
|
||||
'title' => __('admin_templates'),
|
||||
'attributes' => ['class' => 'navbar-item']
|
||||
],
|
||||
'templates_rename' => [
|
||||
'link' => $this->router->pathFor('admin.templates.rename') . '?id=' . $request->getQueryParams()['id'] . '&type=' . (($request->getQueryParams()['type'] && $request->getQueryParams()['type'] == 'partial') ? 'partial' : 'template'),
|
||||
'title' => __('admin_rename'),
|
||||
'attributes' => ['class' => 'navbar-item active']
|
||||
],
|
||||
]
|
||||
|
Reference in New Issue
Block a user