chg: [UI] Small fixes

pull/8613/head
Jakub Onderka 2022-09-29 14:53:03 +02:00
parent 5c2e7af5db
commit 29b2924bf2
5 changed files with 12 additions and 9 deletions

View File

@ -36,7 +36,7 @@
),
'fields' => array(
array(
'name' => __('Id'),
'name' => __('ID'),
'sort' => 'id',
'class' => 'short',
'data_path' => 'GalaxyClusterRelation.id',

View File

@ -16,21 +16,21 @@ $fields = [
'data_path' => 'Noticelist.expanded_name'
],
[
'name' => __('ref'),
'name' => __('Ref'),
'data_path' => 'Noticelist.ref',
'element' => 'links'
],
[
'name' => __('geographical_area'),
'name' => __('Geographical area'),
'data_path' => 'Noticelist.geographical_area',
'element' => 'list'
],
[
'name' => __('version'),
'name' => __('Version'),
'data_path' => 'Noticelist.version',
],
[
'name' => __('enabled'),
'name' => __('Enabled'),
'data_path' => 'Noticelist.enabled',
'element' => 'toggle',
'url' => '/noticelists/toggleEnable',

View File

@ -6,7 +6,7 @@ echo $this->element(
'data' => $data,
'fields' => [
[
'key' => __('Id'),
'key' => __('ID'),
'path' => 'Noticelist.id'
],
[
@ -28,7 +28,10 @@ echo $this->element(
],
[
'key' => __('Geographical Area'),
'path' => 'Noticelist.geographical_area',
'type' => 'custom',
'function' => function (array $data) {
return implode('<br>', array_map('h', $data['Noticelist']['geographical_area']));
}
],
[
'key' => __('Enabled'),

View File

@ -11,7 +11,7 @@
</div>
<table class="table table-striped table-hover table-condensed">
<tr>
<th><?php echo $this->Paginator->sort('id');?></th>
<th><?php echo $this->Paginator->sort('id', __('ID'));?></th>
<th><?php echo $this->Paginator->sort('regexp', __('Regexp'));?></th>
<th><?php echo $this->Paginator->sort('replacement', __('Replacement'));?></th>
<th><?php echo $this->Paginator->sort('type');?></th>

View File

@ -4,7 +4,7 @@
'alias' => __('Tag Collections'),
'controller' => 'tag_collections',
'headers' => array(
'id' => array('sort' => 1),
'id' => array('sort' => 1, 'alias' => __('ID')),
'uuid' => array('sort' => 1, 'alias' => __('UUID')),
'name' => array('sort' => 1),
'tags' => array('alias' => __('Tags')),