chg: [ui:meta_templates] Slightly improved UI

pull/93/head
Sami Mokaddem 2021-11-09 09:11:35 +01:00
parent a0f6c6a7e0
commit 452873e3ba
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
3 changed files with 6 additions and 9 deletions

View File

@ -9,7 +9,7 @@ use \Cake\Database\Expression\QueryExpression;
class MetaTemplatesController extends AppController
{
public $quickFilterFields = ['name', 'uuid', 'scope'];
public $quickFilterFields = [['name' => true], 'uuid', ['scope' => true]];
public $filterFields = ['name', 'uuid', 'scope', 'namespace'];
public $containFields = ['MetaTemplateFields'];
@ -43,12 +43,8 @@ class MetaTemplatesController extends AppController
'fields' => ['scope'],
'custom' => [
[
'label' => __('Contact DB'),
'filterCondition' => ['scope' => ['individual', 'organisation']]
],
[
'label' => __('Namespace CNW'),
'filterCondition' => ['namespace' => 'cnw']
'label' => __('Default Templates'),
'filterCondition' => ['is_default' => true]
],
]
],

View File

@ -43,7 +43,8 @@ echo $this->element(
[
'url' => '/MetaTemplateFields/index?meta_template_id={{0}}',
'url_params' => ['id'],
'title' => __('Fields')
'title' => __('Fields'),
'collapsed' => 'show',
]
]
]

View File

@ -468,7 +468,7 @@ ul.sidebar-elements > li.category > span.category-divider > hr {
}
.center-navbar nav.header-breadcrumb li.header-breadcrumb-item {
max-width: 200px;
max-width: 25vw;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;