Added icon for dept
Some checks failed
Crowdin Action / upload-sources-to-crowdin (push) Has been cancelled
Docker images (Alpine) / docker (push) Has been cancelled
Docker images / docker (push) Has been cancelled
Tests in MySQL / PHP ${{ matrix.php-version }} (8.1) (push) Has been cancelled
Tests in MySQL / PHP ${{ matrix.php-version }} (8.2) (push) Has been cancelled
Tests in MySQL / PHP ${{ matrix.php-version }} (8.3) (push) Has been cancelled
Tests in SQLite / PHP ${{ matrix.php-version }} (8.1.1) (push) Has been cancelled

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-08-31 13:48:42 +01:00
parent f8bbb7ad9b
commit 13dbf9ee74
2 changed files with 5 additions and 1 deletions

View file

@ -182,6 +182,8 @@ class IconHelper
return 'fas fa-user-secret';
case 'employee_num' :
return 'fa-regular fa-id-card';
case 'department' :
return 'fa-solid fa-building-user';
}
}

View file

@ -316,7 +316,9 @@
@endif
@if((isset($asset->assignedTo)) && ($asset->assignedTo->department))
<li>{{ trans('admin/hardware/general.user_department') }}: {{ $asset->assignedTo->department->name}}</li>
<li>
<x-icon type="department" class="fa-fw" />
{{ $asset->assignedTo->department->name}}</li>
@endif
@if (isset($asset->location))