From cfd1925625f0e2bf407b8ec1e5c74d3aebc957b0 Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 28 Oct 2017 01:00:26 -0700 Subject: [PATCH] Nicer display of notifications on checkout --- resources/views/hardware/checkout.blade.php | 49 +++++++++++++-------- 1 file changed, 30 insertions(+), 19 deletions(-) diff --git a/resources/views/hardware/checkout.blade.php b/resources/views/hardware/checkout.blade.php index c328f1622d..49909003aa 100755 --- a/resources/views/hardware/checkout.blade.php +++ b/resources/views/hardware/checkout.blade.php @@ -46,9 +46,17 @@ @include ('partials.forms.edit.user-select', ['translated_name' => trans('admin/hardware/form.checkout_to'), 'fieldname' => 'assigned_user']) + @if ($asset->requireAcceptance()) +
- - @if (!$asset->requireAcceptance()) +
+

+ Because this asset category requires acceptance, + it cannot be checked out to another asset or to a location. +

+
+
+ @else @include ('partials.forms.edit.asset-select', ['translated_name' => trans('admin/hardware/form.checkout_to'), 'fieldname' => 'assigned_asset']) @@ -56,6 +64,7 @@ @endif +
{{ Form::label('name', trans('admin/hardware/form.checkout_date'), array('class' => 'col-md-3 control-label')) }} @@ -89,24 +98,26 @@
- @if ($asset->requireAcceptance()) -
-
-

- - {{ trans('admin/categories/general.required_acceptance') }} -

-
-
- @endif + @if ($asset->requireAcceptance() || $asset->getEula()) +
+
+
+ + @if ($asset->requireAcceptance()) + + {{ trans('admin/categories/general.required_acceptance') }} +
+ @endif + + @if ($asset->getEula()) + + {{ trans('admin/categories/general.required_eula') }} + @endif +
+
+
+ @endif - @if ($asset->getEula()) -
-
-

{{ trans('admin/categories/general.required_eula') }}

-
-
- @endif