Skip to content

Commit

Permalink
Merge pull request #15211 from snipe/feaures/15205_copy_asset_tag
Browse files Browse the repository at this point in the history
Fixed #15205 - adds copy to asset tag
  • Loading branch information
snipe authored Aug 2, 2024
2 parents 24d948a + a0bd8b6 commit c45bf87
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions resources/views/hardware/view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit c45bf87

Please sign in to comment.