mirror of
https://github.com/itflow-org/itflow
synced 2026-11-21 11:57:25 +00:00
Quick add: the plus beside Contact, Site, Location, Assigned to and Vendor in New Ticket, Edit Ticket and the asset form opens the usual New Contact, New Location or New Vendor window over the form, saved in the background and picked, in place of the pop-up
This commit is contained in:
@@ -209,9 +209,11 @@ function formatAssignee($user_id, $user_name, $user_avatar, $highlight_unassigne
|
||||
$user_id = intval($user_id);
|
||||
|
||||
if (!$user_id) {
|
||||
$tone = $highlight_unassigned ? 'danger' : 'secondary';
|
||||
$colors = $highlight_unassigned ? 'text-danger-emphasis bg-danger-subtle' : 'text-body-secondary bg-body-secondary';
|
||||
return "<span class='$pill $colors'><span class='position-relative d-inline-flex' aria-hidden='true'><i class='fas fa-circle fs-5 text-$tone'></i><i class='fas fa-user-slash position-absolute top-50 start-50 translate-middle small text-white'></i></span>" . escapeHtml($none_label) . "</span>";
|
||||
// Amber, as the Unassigned view and the dashboard's tile are - red is kept for what is late
|
||||
$tone = $highlight_unassigned ? 'warning' : 'secondary';
|
||||
$colors = $highlight_unassigned ? 'text-warning-emphasis bg-warning-subtle' : 'text-body-secondary bg-body-secondary';
|
||||
$icon = $highlight_unassigned ? 'text-dark' : 'text-white';
|
||||
return "<span class='$pill $colors'><span class='position-relative d-inline-flex' aria-hidden='true'><i class='fas fa-circle fs-5 text-$tone'></i><i class='fas fa-user-slash position-absolute top-50 start-50 translate-middle small $icon'></i></span>" . escapeHtml($none_label) . "</span>";
|
||||
}
|
||||
|
||||
$user_avatar = escapeHtml($user_avatar);
|
||||
|
||||
Reference in New Issue
Block a user