Fixed #15205 - adds copy to asset tag

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-08-02 20:56:31 +01:00
parent 24d948a3f6
commit a0bd8b6049

View file

@ -316,6 +316,21 @@
<div class="row-new-striped">
@if ($asset->asset_tag)
<div class="row">
<div class="col-md-3">
<strong>{{ trans('admin/hardware/form.tag') }}</strong>
</div>
<div class="col-md-9">
<span class="js-copy">{{ $asset->asset_tag }}</span>
<i class="fa-regular fa-clipboard js-copy-link" data-clipboard-target=".js-copy" aria-hidden="true" data-tooltip="true" data-placement="top" title="{{ trans('general.copy_to_clipboard') }}">
<span class="sr-only">{{ trans('general.copy_to_clipboard') }}</span>
</i>
</div>
</div>
@endif
@if ($asset->deleted_at!='')
<div class="row">