From c07a244babff53edce0bb522bc23f34c3971d9cf Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Tue, 10 May 2022 11:20:42 -0700 Subject: [PATCH 1/2] fixes 1/2 visual issues, adds history tab to accessories --- resources/views/accessories/view.blade.php | 236 ++++++++++++++------- 1 file changed, 154 insertions(+), 82 deletions(-) diff --git a/resources/views/accessories/view.blade.php b/resources/views/accessories/view.blade.php index 20c6264b9..cd0050145 100644 --- a/resources/views/accessories/view.blade.php +++ b/resources/views/accessories/view.blade.php @@ -47,15 +47,34 @@ {{-- Page content --}} @section('content') + + + + + + + +
+ + @if ($accessory->image!='') +
+
+ {{ $accessory->name }} +
+
+ @endif + + @if ($accessory->company) +
+
+ {{ trans('general.company')}} +
+ +
+ @endif + + + @if ($accessory->category) +
+
+ {{ trans('general.category')}} +
+ +
+ @endif + + + @if ($accessory->notes) + +
+ + {{ trans('general.notes') }} + +
+
+ {!! nl2br(e($accessory->notes)) !!} +
+ + @endif + + +
+
+ Number remaining +
+
+ {{ $accessory->numRemaining() }} +
+
+ + + + @can('checkout', \App\Models\Accessory::class) + + @endcan + + + + @stop +
+ + + +
+
+
+ + + + + + + + + + + + @if ($snipeSettings->require_accept_signature=='1') + + @endif + + +
{{ trans('general.record_created') }}{{ trans('general.admin') }}{{ trans('general.action') }}{{ trans('general.item') }}{{ trans('general.target') }}{{ trans('general.notes') }}{{ trans('general.date') }}{{ trans('general.signature') }}
+
+
+
+ + - - - - - -
- - @if ($accessory->image!='') -
-
- {{ $accessory->name }} -
-
- @endif - - @if ($accessory->company) -
-
- {{ trans('general.company')}} -
- -
- @endif - - - @if ($accessory->category) -
-
- {{ trans('general.category')}} -
- -
- @endif - - - @if ($accessory->notes) - -
- - {{ trans('general.notes') }} - -
-
- {!! nl2br(e($accessory->notes)) !!} -
-
- @endif - - -
-
- Number remaining -
-
- {{ $accessory->numRemaining() }} -
-
- @can('checkout', \App\Models\Accessory::class) -
- -
- @endcan - - -@stop + + + + + + @section('moar_scripts') @include ('partials.bootstrap-table') From 8ebe64e630cb37010d9a6f87aa925bddca22b5ed Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Wed, 11 May 2022 12:13:36 -0700 Subject: [PATCH 2/2] fixes final visual issue --- resources/views/accessories/view.blade.php | 110 ++++++++++----------- 1 file changed, 54 insertions(+), 56 deletions(-) diff --git a/resources/views/accessories/view.blade.php b/resources/views/accessories/view.blade.php index cd0050145..883bb97db 100644 --- a/resources/views/accessories/view.blade.php +++ b/resources/views/accessories/view.blade.php @@ -105,64 +105,65 @@ + -
- - @if ($accessory->image!='') -
-
- {{ $accessory->name }} -
-
- @endif - - @if ($accessory->company) -
-
- {{ trans('general.company')}} -
- -
- @endif - - - @if ($accessory->category) -
-
- {{ trans('general.category')}} -
- -
- @endif - - - @if ($accessory->notes) - -
- - {{ trans('general.notes') }} - -
-
- {!! nl2br(e($accessory->notes)) !!} -
- - @endif - +
+ @if ($accessory->image!='')
-
- Number remaining -
-
- {{ $accessory->numRemaining() }} +
+ {{ $accessory->name }}
+ @endif + + @if ($accessory->company) +
+
+ {{ trans('general.company')}} +
+ +
+ @endif + + + @if ($accessory->category) +
+
+ {{ trans('general.category')}} +
+ +
+ @endif + + + @if ($accessory->notes) + +
+ + {{ trans('general.notes') }} + +
+
+ {!! nl2br(e($accessory->notes)) !!} +
+ + @endif + + +
+
+ Number remaining +
+
+ {{ $accessory->numRemaining() }} +
+
@@ -174,9 +175,6 @@
@endcan - - - @stop
@@ -220,8 +218,8 @@ + @stop -