chg: [genericElements] Index table UI improvements

pull/41/head
mokaddem 2021-03-19 11:17:00 +01:00
parent bc1feaa9e6
commit 75a1ecba69
3 changed files with 4 additions and 3 deletions

View File

@ -130,7 +130,8 @@
} }
$searchType = $('<span/>') $searchType = $('<span/>')
.text(searchContain ? '<?= __('Contain') ?>' : '<?= __('Exact match') ?>') .text(searchContain ? '<?= __('Contain') ?>' : '<?= __('Exact match') ?>')
.attr('title', searchContain ? '<?= __('The search value will be used as a substring') ?>' : '<?= __('The search value must strictly match') ?>') .attr('title', searchContain ? '<?= __('The search value can be used as a substring with the wildcard operator `%`') ?>' : '<?= __('The search value must strictly match') ?>')
.attr('style', 'cursor: help;')
tableData.push([fieldName, $searchType]) tableData.push([fieldName, $searchType])
}); });
tableData.sort((a, b) => a[0] < b[0] ? -1 : 1) tableData.sort((a, b) => a[0] < b[0] ? -1 : 1)

View File

@ -5,7 +5,7 @@
$elements .= $this->element('/genericElements/ListTopBar/element_' . (empty($element['type']) ? 'simple' : h($element['type'])), array('data' => $element, 'tableRandomValue' => $tableRandomValue)); $elements .= $this->element('/genericElements/ListTopBar/element_' . (empty($element['type']) ? 'simple' : h($element['type'])), array('data' => $element, 'tableRandomValue' => $tableRandomValue));
} }
echo sprintf( echo sprintf(
'<div %s class="btn-group btn-group-sm mr-2" role="group" aria-label="button-group">%s</div>', '<div %s class="btn-group btn-group-sm mr-2 flex-wrap" role="group" aria-label="button-group">%s</div>',
(!empty($data['id'])) ? 'id="' . h($data['id']) . '"' : '', (!empty($data['id'])) ? 'id="' . h($data['id']) . '"' : '',
$elements $elements
); );

View File

@ -13,7 +13,7 @@
<?= $this->Form->postLink( <?= $this->Form->postLink(
h($actionName), h($actionName),
$path, $path,
['class' => 'btn btn-primary button-execute'] ['class' => 'btn btn-primary button-execute', 'id' => 'submitButton']
) )
?> ?>
<button type="button" class="btn btn-secondary cancel-button" data-dismiss="modal"><?= __('Cancel') ?></button> <button type="button" class="btn btn-secondary cancel-button" data-dismiss="modal"><?= __('Cancel') ?></button>