Merge pull request #13184 from akemidx/department_in_side_bar

User department now visible in side pane of asset view page
This commit is contained in:
snipe 2023-07-13 21:01:48 +01:00 committed by GitHub
commit 4027acee46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -45,4 +45,5 @@ return [
'alert_details' => 'Please see below for details.',
'custom_export' => 'Custom Export',
'mfg_warranty_lookup' => ':manufacturer Warranty Status Lookup',
'user_department' => 'User Department',
];

View file

@ -919,6 +919,10 @@
</li>
@endif
@if((isset($asset->assignedTo)) && ($asset->assignedTo->department))
<li>{{ trans('admin/hardware/general.user_department') }}: {{ $asset->assignedTo->department->name}}</li>
@endif
@if (isset($asset->location))
<li>{{ $asset->location->name }}</li>
<li>{{ $asset->location->address }}