From 585f998cae3bf8d812509fba7937cd28b9b4a5d0 Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 28 Sep 2024 15:28:06 +0100 Subject: [PATCH 1/3] Fixes for requiredness display Signed-off-by: snipe --- public/css/build/app.css | Bin 28100 -> 28197 bytes public/css/build/overrides.css | Bin 21228 -> 21325 bytes public/css/dist/all.css | Bin 515112 -> 515306 bytes public/mix-manifest.json | 6 ++-- resources/assets/less/overrides.less | 6 ++-- .../views/asset_maintenances/edit.blade.php | 26 +++++++++++------- resources/views/depreciations/edit.blade.php | 2 +- .../views/hardware/bulk-checkout.blade.php | 20 ++++++++------ resources/views/hardware/edit.blade.php | 5 ++-- resources/views/licenses/edit.blade.php | 4 +-- resources/views/locations/edit.blade.php | 8 +++--- .../forms/edit/accessory-select.blade.php | 4 +-- .../forms/edit/asset-select.blade.php | 4 +-- .../forms/edit/category-select.blade.php | 2 +- .../partials/forms/edit/category.blade.php | 4 +-- .../partials/forms/edit/company.blade.php | 4 +-- .../partials/forms/edit/item_number.blade.php | 4 +-- .../partials/forms/edit/kit-select.blade.php | 4 +-- .../forms/edit/license-select.blade.php | 4 +-- .../forms/edit/location-select.blade.php | 4 +-- .../partials/forms/edit/location.blade.php | 2 +- .../forms/edit/maintenance_type.blade.php | 4 +-- .../forms/edit/manufacturer-select.blade.php | 2 +- .../forms/edit/manufacturer.blade.php | 6 ++-- .../forms/edit/minimum_quantity.blade.php | 7 +++-- .../forms/edit/model-select.blade.php | 4 +-- .../partials/forms/edit/name-first.blade.php | 4 +-- .../partials/forms/edit/name-last.blade.php | 4 +-- .../views/partials/forms/edit/name.blade.php | 2 +- .../partials/forms/edit/quantity.blade.php | 2 +- .../partials/forms/edit/serial.blade.php | 4 +-- .../forms/edit/status-select.blade.php | 2 +- .../partials/forms/edit/status.blade.php | 2 +- .../forms/edit/supplier-select.blade.php | 4 +-- .../partials/forms/edit/supplier.blade.php | 4 +-- .../partials/forms/edit/user-select.blade.php | 4 +-- .../partials/forms/edit/username.blade.php | 2 +- resources/views/setup/user.blade.php | 8 +++--- resources/views/users/edit.blade.php | 12 +++++--- 39 files changed, 102 insertions(+), 88 deletions(-) diff --git a/public/css/build/app.css b/public/css/build/app.css index e724190f48d3bfa29909abe0bf776ddd1956d6cf..3cea5e2d0f716e93dd96a6c3f99a7e80aba51aea 100644 GIT binary patch delta 74 zcmX?dn{nwK#tj)JjHZ(_O}rR&CRdwSPTm?SGPx&AR5dd_qr^(Vw4g$vI6o&dMIpZ^ eF)uw;K`}G8Ait<2F|Wj$tCnlRzRfdCbu0i21{*#A delta 62 zcmZ2_hw;d5#tj)Jj3$#aO}x|E bWFT*HVQyz-AR%dOaBp&SVQzG@{u%B#kQ*AN delta 30 jcmX@RjPcD<#tjoB8BHcnl=PZxC?yPL32#o8dSw9swYdu9 diff --git a/public/css/dist/all.css b/public/css/dist/all.css index 9518eff1cf5847210a5eaad869bf34e90315744b..eda068945ab6dce7adf1e4ec25672e4f3c97493d 100644 GIT binary patch delta 169 zcmZ3nL;lrH`Gyw87N!>F7M2#)7Pc+y0z8bS(*=3hy%=?--(SRTIXzaFU1a))BkZEn z_n&2DlQu1=P$uf8wJMgmiOr?@R GIu-zjk30PU delta 73 zcmaF0Q+~w``Gyw87N!>F7M2#)7Pc+y0z8Z+(*=3hy{2#EVHbw5g||Nj3QWTx@yY@K DB^eZW diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 80fa987f64..0290e23dfa 100644 --- a/public/mix-manifest.json +++ b/public/mix-manifest.json @@ -2,8 +2,8 @@ "/js/build/app.js": "/js/build/app.js?id=5e9ac5c1a7e089f056fb1dba566193a6", "/css/dist/skins/skin-black-dark.css": "/css/dist/skins/skin-black-dark.css?id=f0b08873a06bb54daeee176a9459f4a9", "/css/dist/skins/_all-skins.css": "/css/dist/skins/_all-skins.css?id=f4397c717b99fce41a633ca6edd5d1f4", - "/css/build/overrides.css": "/css/build/overrides.css?id=c9a07471f306075f2d5d5726119712dc", - "/css/build/app.css": "/css/build/app.css?id=6a514869e025840d60113c282b97d25f", + "/css/build/overrides.css": "/css/build/overrides.css?id=efd9f439cb0586512d03172bcd9a5752", + "/css/build/app.css": "/css/build/app.css?id=2f45befb40b9d7f038eeae9569c33a5f", "/css/build/AdminLTE.css": "/css/build/AdminLTE.css?id=4ea0068716c1bb2434d87a16d51b98c9", "/css/dist/skins/skin-yellow.css": "/css/dist/skins/skin-yellow.css?id=7b315b9612b8fde8f9c5b0ddb6bba690", "/css/dist/skins/skin-yellow-dark.css": "/css/dist/skins/skin-yellow-dark.css?id=393aaa7b368b0670fc42434c8cca7dc7", @@ -19,7 +19,7 @@ "/css/dist/skins/skin-blue.css": "/css/dist/skins/skin-blue.css?id=f677207c6cf9678eb539abecb408c374", "/css/dist/skins/skin-blue-dark.css": "/css/dist/skins/skin-blue-dark.css?id=0640e45bad692dcf62873c6e85904899", "/css/dist/skins/skin-black.css": "/css/dist/skins/skin-black.css?id=76482123f6c70e866d6b971ba91de7bb", - "/css/dist/all.css": "/css/dist/all.css?id=8b0098987597c40f9e27a48c5dd2af9d", + "/css/dist/all.css": "/css/dist/all.css?id=e9509d7591637153f667461642e47e30", "/css/dist/signature-pad.css": "/css/dist/signature-pad.css?id=6a89d3cd901305e66ced1cf5f13147f7", "/css/dist/signature-pad.min.css": "/css/dist/signature-pad.min.css?id=6a89d3cd901305e66ced1cf5f13147f7", "/js/select2/i18n/af.js": "/js/select2/i18n/af.js?id=4f6fcd73488ce79fae1b7a90aceaecde", diff --git a/resources/assets/less/overrides.less b/resources/assets/less/overrides.less index 2f9d59a827..0721c401df 100644 --- a/resources/assets/less/overrides.less +++ b/resources/assets/less/overrides.less @@ -342,10 +342,10 @@ a.logo.no-hover a:hover { input:required, select:required { - border-right: 4px solid orange; + border-right: 5px solid orange; } -select:required + .select2-container .select2-selection { - border-right: 4px solid orange; +select:required + .select2-container .select2-selection, select:required + .select2-container .select2-selection .select2-selection--multiple { + border-right: 5px solid orange !important; } body { diff --git a/resources/views/asset_maintenances/edit.blade.php b/resources/views/asset_maintenances/edit.blade.php index c3aa8e1483..4dd390ddfa 100644 --- a/resources/views/asset_maintenances/edit.blade.php +++ b/resources/views/asset_maintenances/edit.blade.php @@ -41,28 +41,32 @@
- @include ('partials.forms.edit.asset-select', ['translated_name' => trans('admin/hardware/table.asset_tag'), 'fieldname' => 'asset_id', 'required' => 'true']) - @include ('partials.forms.edit.supplier-select', ['translated_name' => trans('general.supplier'), 'fieldname' => 'supplier_id', 'required' => 'true']) - @include ('partials.forms.edit.maintenance_type')
-
- +
+ {!! $errors->first('title', '') !!}
+ + @include ('partials.forms.edit.asset-select', ['translated_name' => trans('general.asset'), 'fieldname' => 'asset_id', 'required' => 'true']) + @include ('partials.forms.edit.supplier-select', ['translated_name' => trans('general.supplier'), 'fieldname' => 'supplier_id', 'required' => 'true']) + @include ('partials.forms.edit.maintenance_type') + + +
-
+
- +
{!! $errors->first('start_date', '') !!} @@ -75,10 +79,12 @@
-
+
- - + + + +
{!! $errors->first('completion_date', '') !!}
diff --git a/resources/views/depreciations/edit.blade.php b/resources/views/depreciations/edit.blade.php index a281beebc2..61779f1939 100755 --- a/resources/views/depreciations/edit.blade.php +++ b/resources/views/depreciations/edit.blade.php @@ -15,7 +15,7 @@ -
+
{!! $errors->first('months', '') !!} diff --git a/resources/views/hardware/bulk-checkout.blade.php b/resources/views/hardware/bulk-checkout.blade.php index 465336563d..f309cadbd9 100644 --- a/resources/views/hardware/bulk-checkout.blade.php +++ b/resources/views/hardware/bulk-checkout.blade.php @@ -27,7 +27,18 @@
{{ csrf_field() }} - + @include ('partials.forms.edit.asset-select', [ + 'translated_name' => trans('general.assets'), + 'fieldname' => 'selected_assets[]', + 'multiple' => true, + 'required' => true, + 'asset_status_type' => 'RTD', + 'select_id' => 'assigned_assets_select', + ]) + + + + @include ('partials.forms.checkout-selector', ['user_select' => 'true','asset_select' => 'true', 'location_select' => 'true']) @include ('partials.forms.edit.user-select', ['translated_name' => trans('general.user'), 'fieldname' => 'assigned_user', 'required'=>'true']) @@ -74,13 +85,6 @@
- @include ('partials.forms.edit.asset-select', [ - 'translated_name' => trans('general.assets'), - 'fieldname' => 'selected_assets[]', - 'multiple' => true, - 'asset_status_type' => 'RTD', - 'select_id' => 'assigned_assets_select', - ])
diff --git a/resources/views/hardware/edit.blade.php b/resources/views/hardware/edit.blade.php index abba2cdb9b..efd5d24b9c 100755 --- a/resources/views/hardware/edit.blade.php +++ b/resources/views/hardware/edit.blade.php @@ -28,8 +28,7 @@ @if ($item->id) -
- +
{!! $errors->first('asset_tags', ' :message') !!} @@ -37,7 +36,7 @@
@else -
+
{!! $errors->first('asset_tags', ' :message') !!} {!! $errors->first('asset_tag', ' :message') !!} diff --git a/resources/views/licenses/edit.blade.php b/resources/views/licenses/edit.blade.php index c092324a63..1bd40c6c54 100755 --- a/resources/views/licenses/edit.blade.php +++ b/resources/views/licenses/edit.blade.php @@ -33,8 +33,8 @@ @can('viewKeys', $item)
-
- +
+ {!! $errors->first('serial', '') !!}
diff --git a/resources/views/locations/edit.blade.php b/resources/views/locations/edit.blade.php index 95ba245359..55d638a9f5 100755 --- a/resources/views/locations/edit.blade.php +++ b/resources/views/locations/edit.blade.php @@ -25,8 +25,8 @@ -
- {{ Form::text('currency', old('currency', $item->currency), array('class' => 'form-control','placeholder' => 'USD', 'maxlength'=>'3', 'style'=>'width: 60px;', 'aria-label'=>'currency')) }} +
+ {{ Form::text('currency', old('currency', $item->currency), array('class' => 'form-control','placeholder' => 'USD', 'maxlength'=>'3', 'style'=>'width: 60px;', 'aria-label'=>'currency', 'required' => (Helper::checkIfRequired($item, 'currency')) ? true : '')) }} {!! $errors->first('currency', '') !!}
@@ -39,8 +39,8 @@ -
- {{ Form::text('ldap_ou', old('ldap_ou', $item->ldap_ou), array('class' => 'form-control')) }} +
+ {{ Form::text('ldap_ou', old('ldap_ou', $item->ldap_ou), array('class' => 'form-control', 'required' => (Helper::checkIfRequired($item, 'ldap_ou')) ? true : '')) }} {!! $errors->first('ldap_ou', '') !!}
diff --git a/resources/views/partials/forms/edit/accessory-select.blade.php b/resources/views/partials/forms/edit/accessory-select.blade.php index 12be9bf7b7..d34b6b2fe0 100644 --- a/resources/views/partials/forms/edit/accessory-select.blade.php +++ b/resources/views/partials/forms/edit/accessory-select.blade.php @@ -1,8 +1,8 @@
{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }} -
- @if ((!isset($unselect)) && ($accessory_id = old($fieldname, (isset($accessory) ? $accessory->id : (isset($item) ? $item->{$fieldname} : '')))))