chg: [genericElement:table] Changed action link display into buttons instead of links

pull/72/head
mokaddem 2021-09-17 18:02:48 +02:00
parent e62056d5ac
commit e65e283c04
2 changed files with 3 additions and 9 deletions

View File

@ -18,6 +18,7 @@
* - options: array of options. datapaths described in the datapath keyname will be extracted and replaced with the actual row value * - options: array of options. datapaths described in the datapath keyname will be extracted and replaced with the actual row value
*/ */
echo '<td class="action-links text-end text-nowrap">'; echo '<td class="action-links text-end text-nowrap">';
echo '<span class="btn-group">';
foreach ($actions as $action) { foreach ($actions as $action) {
if (isset($action['requirement']) && !$action['requirement']) { if (isset($action['requirement']) && !$action['requirement']) {
continue; continue;
@ -100,7 +101,7 @@
$action['onclick'] = sprintf('UI.submissionModalForIndex(\'%s\', \'%s\', \'%s\')', $modal_url, $reload_url, $tableRandomValue); $action['onclick'] = sprintf('UI.submissionModalForIndex(\'%s\', \'%s\', \'%s\')', $modal_url, $reload_url, $tableRandomValue);
} }
echo sprintf( echo sprintf(
'<a href="%s" title="%s" aria-label="%s" %s %s class="text-decoration-none text-reset table-link-action"><i class="%s"></i></a> ', '<a href="%s" title="%s" aria-label="%s" %s %s class="btn btn-sm btn-outline-dark table-link-action"><i class="%s"></i></a> ',
$url, $url,
empty($action['title']) ? '' : h($action['title']), empty($action['title']) ? '' : h($action['title']),
empty($action['title']) ? '' : h($action['title']), empty($action['title']) ? '' : h($action['title']),
@ -110,5 +111,6 @@
); );
} }
} }
echo '</span>';
echo '</td>'; echo '</td>';
?> ?>

View File

@ -131,14 +131,6 @@
text-decoration: inherit; text-decoration: inherit;
} }
.table-link-action {
filter: invert(0.4);
}
.table-link-action:hover {
filter: unset;
}
.btn-group > .btn:last-of-type:not(.dropdown-toggle), .btn-group > .btn-group:not(:last-of-type) > .btn { .btn-group > .btn:last-of-type:not(.dropdown-toggle), .btn-group > .btn-group:not(:last-of-type) > .btn {
border-top-right-radius: 0.2rem; border-top-right-radius: 0.2rem;
} }