A free open source IT asset/license management system
Updated component checkout with better message
snipe8f8b318bd0a9
diff --git a/resources/lang/en-US/admin/categories/general.php b/resources/lang/en-US/admin/categories/general.phpindex 5023b3b5f0..8b0ca0b78c 100644--- a/resources/lang/en-US/admin/categories/general.php+++ b/resources/lang/en-US/admin/categories/general.php@@ -19,6 +19,8 @@ return ['required_acceptance' => 'This user will be emailed with a link to confirm acceptance of this item.','global_signature_required_notice' => 'User signatures are currently required globally via the admin settings, so signatures will still be required regardless of this category setting if the item is checked out to a user (versus a location, etc).','required_eula' => 'This user will be emailed a copy of the EULA',+ 'required_acceptance_component' => 'If the target asset is currently assigned to a user, that user will be emailed with a link to confirm acceptance of this component.',+ 'required_eula_component' => 'If the target asset is currently assigned to a user, that user will be emailed a copy of the EULA.','required_signature' => 'This user will be required to sign to confirm acceptance of this item.','no_default_eula' => 'No primary default EULA found. Add one in Settings.','update' => 'Update Category',diff --git a/resources/views/components/checkout.blade.php b/resources/views/components/checkout.blade.phpindex c665c931f1..19cb0ba2ac 100644--- a/resources/views/components/checkout.blade.php+++ b/resources/views/components/checkout.blade.php@@ -38,13 +38,22 @@<div class="form-group notification-callout"><div class="col-md-8 col-md-offset-3"><x-callout type="info" role="status">+ {{-- Components can only be checked out to assets (see+ ComponentCheckoutController::store, which forces+ checkout_to_type=asset). CheckoutableListener then+ resolves the notifiable user by walking to the+ target asset's assignee. Use the component-scoped+ copy that reflects the "if the asset is assigned+ to a user" chain, rather than the generic+ user-target copy used by the accessory / consumable+ / license / user-scoped checkout screens. --}}@if ($snipe_component->category->require_acceptance == '1')<i class="far fa-envelope fa-fw" aria-hidden="true"></i>- {{ trans('admin/categories/general.required_acceptance') }}<br>+ {{ trans('admin/categories/general.required_acceptance_component') }}<br>@endif@if ($snipe_component->getEula())<i class="far fa-envelope fa-fw" aria-hidden="true"></i>- {{ trans('admin/categories/general.required_eula') }}<br>+ {{ trans('admin/categories/general.required_eula_component') }}<br>@endif@if ($snipeSettings->webhook_endpoint != '')<i class="fab fa-slack fa-fw" aria-hidden="true"></i>