Date: Wed, 28 Jun 2023 10:17:28 -0500
Subject: [PATCH 23/38] couple translation strings
---
resources/lang/en/admin/hardware/form.php | 3 ++-
resources/views/models/custom_fields_form_bulk_edit.blade.php | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/resources/lang/en/admin/hardware/form.php b/resources/lang/en/admin/hardware/form.php
index 8159732d08..679f0d94ae 100644
--- a/resources/lang/en/admin/hardware/form.php
+++ b/resources/lang/en/admin/hardware/form.php
@@ -10,7 +10,8 @@ return [
'bulk_update' => 'Bulk Update Assets',
'bulk_update_help' => 'This form allows you to update multiple assets at once. Only fill in the fields you need to change. Any fields left blank will remain unchanged. ',
'bulk_update_warn' => 'You are about to edit the properties of a single asset.|You are about to edit the properties of :asset_count assets.',
- 'bulk_update_with_custom_field' => 'made up of :asset_model_count models.',
+ 'bulk_update_with_custom_field' => 'Note the assets are :asset_model_count different types of models.',
+ 'bulk_update_model_prefix' => 'On Models:',
'checkedout_to' => 'Checked Out To',
'checkout_date' => 'Checkout Date',
'checkin_date' => 'Checkin Date',
diff --git a/resources/views/models/custom_fields_form_bulk_edit.blade.php b/resources/views/models/custom_fields_form_bulk_edit.blade.php
index 123472830c..da62d2acf9 100644
--- a/resources/views/models/custom_fields_form_bulk_edit.blade.php
+++ b/resources/views/models/custom_fields_form_bulk_edit.blade.php
@@ -80,7 +80,7 @@
@endif
- On Models:
+
{{ trans('admin/hardware/form.bulk_update_model_prefix') }}
@foreach($field->assetModels() as $assetModel)
@if(in_array($assetModel->name, $modelNames))
{{$assetModel->name}}{{($loop->last) ? '' : ', '}}
From 50a518e5f359b4d8f0db6ba9c6fe5d20c6b0a20f Mon Sep 17 00:00:00 2001
From: slong753
Date: Wed, 28 Jun 2023 12:57:23 -0500
Subject: [PATCH 24/38] disable input when field is unique
---
.../custom_fields_form_bulk_edit.blade.php | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/resources/views/models/custom_fields_form_bulk_edit.blade.php b/resources/views/models/custom_fields_form_bulk_edit.blade.php
index da62d2acf9..f4ab9bf93e 100644
--- a/resources/views/models/custom_fields_form_bulk_edit.blade.php
+++ b/resources/views/models/custom_fields_form_bulk_edit.blade.php
@@ -20,6 +20,14 @@