Skip to content

Commit

Permalink
Change 'read' to 'details' in the execute panel header for consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed Oct 17, 2024
1 parent df6d907 commit ae08976
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Views/shared/read_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ function read_card_header(string $collection = '', string $id = '', string $icon
$read_button = '';
if ($action === 'execute') {
if ($style === 'icontext') {
$read_button = "<a id=\"button_read\" role=\"button\" class=\"btn btn-light mb-2\" title=\"" . __("Read") . "\" href=\"" . url_to($collection . 'Read', $id) . "\"><span style=\"margin-right:6px;\" class=\"fa fa-eye text-primary\"></span>" . __("Read") . "</a>";
$read_button = "<a id=\"button_read\" role=\"button\" class=\"btn btn-light mb-2\" title=\"" . __("Details") . "\" href=\"" . url_to($collection . 'Read', $id) . "\"><span style=\"margin-right:6px;\" class=\"fa fa-eye text-primary\"></span>" . __("Details") . "</a>";
} elseif ($style === 'icon') {
$read_button = "<a id=\"button_read\" role=\"button\" class=\"btn btn-light mb-2\" title=\"" . __("Read") . "\" href=\"" . url_to($collection . 'Read', $id) . "\"><span class=\"fa fa-eye text-primary\"></span>&nbsp;<span class=\"fa-solid fa-table-cells-large text-primary\"></span></a>";
$read_button = "<a id=\"button_read\" role=\"button\" class=\"btn btn-light mb-2\" title=\"" . __("Details") . "\" href=\"" . url_to($collection . 'Read', $id) . "\"><span class=\"fa fa-eye text-primary\"></span>&nbsp;<span class=\"fa-solid fa-table-cells-large text-primary\"></span></a>";
} else {
$read_button = "<a id=\"button_read\" role=\"button\" class=\"btn btn-light mb-2\" title=\"" . __("Read") . "\" href=\"" . url_to($collection . 'Read', $id) . "\">" . __("Read") . "</a>";
$read_button = "<a id=\"button_read\" role=\"button\" class=\"btn btn-light mb-2\" title=\"" . __("Details") . "\" href=\"" . url_to($collection . 'Read', $id) . "\">" . __("Details") . "</a>";
}
}

Expand Down

0 comments on commit ae08976

Please sign in to comment.