Skip to content

Commit 6809bbd

Browse files
authored
Merge pull request #18142 from grokability/#18136-copy-asset-name
Fixed #18136 - adds copy to clipbpard to asset name
2 parents 30e16b6 + ab555d0 commit 6809bbd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

resources/views/hardware/view.blade.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,14 @@ class="form-inline"
511511
<strong>{{ trans('admin/hardware/form.name') }}</strong>
512512
</div>
513513
<div class="col-md-9">
514-
{{ $asset->name }}
514+
<span class="js-copy-assetname">{{ $asset->name }}</span>
515+
516+
<i class="fa-regular fa-clipboard js-copy-link hidden-print" data-clipboard-target=".js-copy-assetname" aria-hidden="true" data-tooltip="true" data-placement="top" title="{{ trans('general.copy_to_clipboard') }}">
517+
<span class="sr-only">{{ trans('general.copy_to_clipboard') }}</span>
518+
</i>
519+
520+
521+
515522
</div>
516523
</div>
517524
@endif

0 commit comments

Comments
 (0)