From f4ca29b4a81ded7beb2080c5d0ede01100920ac9 Mon Sep 17 00:00:00 2001 From: Ivan Nieto Vivanco Date: Thu, 6 Jul 2023 11:36:55 -0600 Subject: [PATCH] Only show radio inputs for location in checkin view --- resources/views/hardware/checkin.blade.php | 2 +- .../forms/edit/location-select.blade.php | 30 +++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/resources/views/hardware/checkin.blade.php b/resources/views/hardware/checkin.blade.php index f7fe067c8a..dd6237b1bd 100755 --- a/resources/views/hardware/checkin.blade.php +++ b/resources/views/hardware/checkin.blade.php @@ -73,7 +73,7 @@ - @include ('partials.forms.edit.location-select', ['translated_name' => trans('general.location'), 'fieldname' => 'location_id', 'help_text' => ($asset->defaultLoc) ? 'You can choose to check this asset in to a location other than the default location of '.$asset->defaultLoc->name.' if one is set.' : null]) + @include ('partials.forms.edit.location-select', ['translated_name' => trans('general.location'), 'fieldname' => 'location_id', 'help_text' => ($asset->defaultLoc) ? 'You can choose to check this asset in to a location other than the default location of '.$asset->defaultLoc->name.' if one is set.' : null, 'hide_location_radio' => true])
diff --git a/resources/views/partials/forms/edit/location-select.blade.php b/resources/views/partials/forms/edit/location-select.blade.php index cdc4bcf670..c0ce9f9b8e 100644 --- a/resources/views/partials/forms/edit/location-select.blade.php +++ b/resources/views/partials/forms/edit/location-select.blade.php @@ -30,21 +30,21 @@
@endif - -
-
- - - -
-
- + @if (isset($hide_location_radio)) + +
+
+ + +
+
+ @endif