A free open source IT asset/license management system
More conversions
snipe1074bc2d3b51
diff --git a/resources/lang/en-US/general.php b/resources/lang/en-US/general.phpindex ed6201355b..6c45d6bf2e 100644--- a/resources/lang/en-US/general.php+++ b/resources/lang/en-US/general.php@@ -100,7 +100,9 @@ return ['created_at' => 'Created At','created_by' => 'Created By','record_created' => 'Record Created',- 'updated_at' => 'Updated at',+ 'updated_at' => 'Updated At',+ 'updated_plain' => 'Updated',+ 'created_plain' => 'Created','currency' => '$', // this is deprecated'currency_text' => 'Currency', //'current' => 'Current',diff --git a/resources/views/blade/box/contact.blade.php b/resources/views/blade/box/contact.blade.phpindex f65b2aa6b6..2f8f2ac022 100644--- a/resources/views/blade/box/contact.blade.php+++ b/resources/views/blade/box/contact.blade.php@@ -19,19 +19,53 @@{{ $slot }}-@if ($contact->notes)- <li class="list-group-item">- <i class="fa fa-note-sticky"></i>+ <x-info-element>+ <i class="fa fa-note-sticky fa-fw"></i>{!! nl2br(Helper::parseEscapedMarkedownInline($contact->notes)) !!}- </li>+ </x-info-element>+ @endif+++ @if ($contact->created_by)+ <x-info-element>+ <span class="text-muted">+ <x-icon type="user" class="fa-fw" />+ {{ trans('general.created_by') }}+ {{ $contact->adminuser->display_name }}+ </span>+ </x-info-element>+ @endif+++ @if ($contact->created_at)+ <x-info-element>+ <span class="text-muted">+ <x-icon type="calendar" class="fa-fw" />+ {{ trans('general.created_plain') }}+ {{ $contact->created_at }}+ </span>+ </x-info-element>+ @endif++ @if ($contact->updated_at)+ <x-info-element>+ <span class="text-muted">+ <x-icon type="calendar" class="fa-fw" />+ {{ trans('general.updated_plain') }}+ {{ $contact->updated_at }}+ </span>+ </x-info-element>@endif</ul>++ @if (($contact->address!='') && ($contact->state!='') && ($contact->country!='') && (config('services.google.maps_api_key')))+ <x-info-element>+ <img src="https://maps.googleapis.com/maps/api/staticmap?markers={{ urlencode($contact->address.','.$contact->city.' '.$contact->state.' '.$contact->country.' '.$contact->zip) }}&size=500x300&maptype=roadmap&key={{ config('services.google.maps_api_key') }}" class="img-responsive" alt="Map">+ </x-info-element>+ @endif+</div>-@if (($contact->address!='') && ($contact->state!='') && ($contact->country!='') && (config('services.google.maps_api_key')))- <div class="col-md-12 text-center" style="padding-bottom: 20px;">- <img src="https://maps.googleapis.com/maps/api/staticmap?markers={{ urlencode($contact->address.','.$contact->city.' '.$contact->state.' '.$contact->country.' '.$contact->zip) }}&size=500x300&maptype=roadmap&key={{ config('services.google.maps_api_key') }}" class="img-responsive img-thumbnail" alt="Map">- </div>-@endif+diff --git a/resources/views/blade/box/header.blade.php b/resources/views/blade/box/header.blade.phpdeleted file mode 100644index 0c54adb5fb..0000000000--- a/resources/views/blade/box/header.blade.php+++ /dev/null@@ -1,6 +0,0 @@-<!-- Start box-header component -->-<div class="box-header with-border">- <h2 class="box-title">- {{ $slot }}- </h2>-</div>\ No newline at end of filediff --git a/resources/views/blade/info-element/url.blade.php b/resources/views/blade/info-element/url.blade.phpindex baad178c2b..1df76894bd 100644--- a/resources/views/blade/info-element/url.blade.php+++ b/resources/views/blade/info-element/url.blade.php@@ -1,3 +1,3 @@@if (!$slot->isEmpty())-<a href="{{ $slot }}" target="_new"> {{ $slot }}<x-icon type="external-link" /></a>+<a href="{{ $slot }}" target="_new"> {{ $slot }}</a>@endifdiff --git a/resources/views/manufacturers/view.blade.php b/resources/views/manufacturers/view.blade.phpindex 2b2a8fa921..8f6ad8c4da 100644--- a/resources/views/manufacturers/view.blade.php+++ b/resources/views/manufacturers/view.blade.php@@ -9,12 +9,13 @@@stop@section('header_right')- <a href="{{ route('manufacturers.update', $manufacturer) }}" class="btn btn-primary text-right" style="margin-right: 10px;">{{ trans('general.update') }}</a>+ <a href="{{ route('manufacturers.edit', $manufacturer) }}" class="btn btn-primary text-right" style="margin-right: 10px;">{{ trans('general.update') }}</a>@stop{{-- Page content --}}@section('content')- <x-container>+ <x-container columns="2">+ <x-page-column class="col-md-9"><x-tabs><x-slot:tabnav>@can('view', \App\Models\Asset::class)@@ -186,6 +187,51 @@</x-slot:tabpanes></x-tabs>+ </x-page-column>+ <x-page-column class="col-md-3">++ <x-box>+ <x-box.contact :contact="$manufacturer" img_path="{{ app('manufacturers_upload_url') }}">++ <x-info-element icon_type="contact-card">+ {{ $manufacturer->contact }}+ </x-info-element>++ <x-info-element icon_type="phone">+ <x-info-element.phone>+ {{ $manufacturer->support_phone }}+ </x-info-element.phone>+ </x-info-element>++ <x-info-element icon_type="fax">+ <x-info-element.phone>+ {{ $manufacturer->fax }}+ </x-info-element.phone>+ </x-info-element>++ <x-info-element icon_type="email">+ <x-info-element.email>+ {{ $manufacturer->email }}+ </x-info-element.email>+ </x-info-element>++ <x-info-element icon_type="external-link">+ <x-info-element.url>+ {{ $manufacturer->url }}+ </x-info-element.url>+ </x-info-element>++ <x-info-element icon_type="external-link">+ <x-info-element.url>+ {{ $manufacturer->support_url }}+ </x-info-element.url>+ </x-info-element>++++ </x-box.contact>+ </x-box>+ </x-page-column></x-container>@stopdiff --git a/resources/views/suppliers/view.blade.php b/resources/views/suppliers/view.blade.phpindex f1f6227325..9c88200407 100755--- a/resources/views/suppliers/view.blade.php+++ b/resources/views/suppliers/view.blade.php@@ -260,17 +260,13 @@</x-info-element.email></x-info-element>- <x-info-element icon_type="globe-us">+ <x-info-element icon_type="external-link"><x-info-element.url>{{ $supplier->url }}</x-info-element.url></x-info-element>--</x-box.contact>--</x-box></x-page-column>