Skip to content

A free open source IT asset/license management system

Added more copy links

snipe7cc0aa336bb7
diff --git a/resources/views/blade/info-panel/index.blade.php b/resources/views/blade/info-panel/index.blade.php
index 26c9633e59..4a34613c81 100644
--- a/resources/views/blade/info-panel/index.blade.php
+++ b/resources/views/blade/info-panel/index.blade.php
@@ -21,16 +21,25 @@
{{--<x-info-panel.image />--}}
+ <div class="text-center">
- <a href="{{ $infoPanelObj->getImageUrl() }}" data-toggle="lightbox" data-type="image">
- <img src="{{ $infoPanelObj->getImageUrl() }}" class="profile-user-img img-responsive img-thumbnail" alt="{{ $infoPanelObj->name }}" style=" width: 100% !important; margin-bottom: 10px;">
+ @if (method_exists($infoPanelObj, 'isSuperUser'))
+ <x-icon type="superadmin" class="fa-2x {{ ($infoPanelObj->isSuperUser()) ? 'text-danger' : 'text-warning'}}"/>
+ <div class="{{ ($infoPanelObj->isSuperUser()) ? 'text-danger' : ' text-warning'}}" style="font-weight: bold">{{ ($infoPanelObj->isSuperUser()) ? strtolower(trans('general.superuser')) : strtolower(trans('general.admin_user')) }}</div>
+ @endif
+
+ <a href="{{ $infoPanelObj->getImageUrl() }}" data-toggle="lightbox" data-type="image">
+ <img src="{{ $infoPanelObj->getImageUrl() }}" class="img-responsive img-thumbnail" alt="{{ $infoPanelObj->name }}" style="max-width: 300px !important; width: 100% !important; margin-bottom: 10px;">
</a>
+ </div>
<br>
@endif
@if ($infoPanelObj->present()->displayAddress)
- {!! nl2br($infoPanelObj->present()->displayAddress) !!}
+ <x-copy-to-clipboard class="pull-right" copy_what="address">
+ {!! nl2br($infoPanelObj->present()->displayAddress) !!}
+ </x-copy-to-clipboard>
<br><br>
@endif
@@ -45,7 +54,7 @@
{{ $slot }}
<x-info-element icon_type="notes" title="{{ trans('general.notes') }}">
- {!! nl2br(Helper::parseEscapedMarkedownInline($infoPanelObj->notes)) !!}
+ <x-copy-to-clipboard class="pull-right" copy_what="notes">{!! nl2br(Helper::parseEscapedMarkedownInline($infoPanelObj->notes)) !!}</x-copy-to-clipboard>
</x-info-element>
@if ($infoPanelObj->serial)
@@ -186,27 +195,36 @@
@if ($infoPanelObj->company)
<x-info-element icon_type="company" icon_color="{{ $infoPanelObj->company->tag_color }}" title="{{ trans('general.company') }}">
+ <x-copy-to-clipboard class="pull-right" copy_what="company">
{!! $infoPanelObj->company->present()->nameUrl !!}
+ </x-copy-to-clipboard>
+ </x-info-element>
+ @endif
+
+ @if ($infoPanelObj->department)
+ <x-info-element icon_type="department" icon_color="{{ $infoPanelObj->department->tag_color }}" title="{{ trans('general.department') }}">
+ <x-copy-to-clipboard class="pull-right" copy_what="department">
+ {!! $infoPanelObj->department->present()->nameUrl !!}
+ </x-copy-to-clipboard>
</x-info-element>
@endif
@if ($infoPanelObj->category)
<x-info-element icon_type="category" icon_color="{{ $infoPanelObj->category->tag_color }}" title="{{ trans('general.category') }}">
- {!! $infoPanelObj->category->present()->formattedNameLink !!}
+ <x-copy-to-clipboard class="pull-right" copy_what="category">{!! $infoPanelObj->category->present()->formattedNameLink !!}</x-copy-to-clipboard>
</x-info-element>
@endif
@if ($infoPanelObj->category_type)
<x-info-element icon_type="{{ $infoPanelObj->category_type }}" title="{{ trans('general.type') }}">
- {{ $infoPanelObj->category_type }}
+ <x-copy-to-clipboard class="pull-right" copy_what="category_type">{{ $infoPanelObj->category_type }}</x-copy-to-clipboard>
</x-info-element>
@endif
-
@if ($infoPanelObj->location)
<x-info-element icon_type="location" icon_color="{{ $infoPanelObj->location->tag_color }}" title="{{ trans('general.location') }}">
- {!! $infoPanelObj->location->present()->nameUrl !!}
+ <x-copy-to-clipboard class="pull-right" copy_what="location">{!! $infoPanelObj->location->present()->nameUrl !!}</x-copy-to-clipboard>
</x-info-element>
@endif
@@ -254,18 +272,34 @@
</x-info-element>
@endif
+ @if ($infoPanelObj->email)
+ <x-info-element icon_type="email" title="{{ trans('general.email') }}">
+ <x-copy-to-clipboard class="pull-right" copy_what="email">
+ <x-info-element.email title="{{ trans('general.email') }}">
+ {{ $infoPanelObj->email }}
+ </x-info-element.email>
+ </x-copy-to-clipboard>
+ </x-info-element>
+ @endif
- <x-info-element icon_type="email" title="{{ trans('general.email') }}">
- <x-info-element.email title="{{ trans('general.email') }}">
- {{ $infoPanelObj->email }}
- </x-info-element.email>
- </x-info-element>
@if ($infoPanelObj->phone)
<x-info-element icon_type="phone" title="{{ trans('general.phone') }}">
- <x-info-element.phone>
+ <x-copy-to-clipboard class="pull-right" copy_what="phone">
+ <x-info-element.phone>
{{ $infoPanelObj->phone }}
- </x-info-element.phone>
+ </x-info-element.phone>
+ </x-copy-to-clipboard>
+ </x-info-element>
+ @endif
+
+ @if ($infoPanelObj->mobile)
+ <x-info-element icon_type="mobile" title="{{ trans('general.mobile') }}">
+ <x-copy-to-clipboard class="pull-right" copy_what="mobile">
+ <x-info-element.phone>
+ {{ $infoPanelObj->mobile }}
+ </x-info-element.phone>
+ </x-copy-to-clipboard>
</x-info-element>
@endif