chg: [genericElement:table] Changed action link display into buttons instead of links
parent
e62056d5ac
commit
e65e283c04
|
@ -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>';
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue