A free open source IT asset/license management system
fixed typos, reordered jquery, fixed migrations
Godfrey M8b52d5da8563
diff --git a/database/migrations/2024_03_18_164714_add_decline_msg_to_checkout_acceptance_table.php b/database/migrations/2024_03_18_164714_add_decline_msg_to_checkout_acceptance_table.phpindex 3b37b5998f..a1f49f33e1 100644--- a/database/migrations/2024_03_18_164714_add_decline_msg_to_checkout_acceptance_table.php+++ b/database/migrations/2024_03_18_164714_add_decline_msg_to_checkout_acceptance_table.php@@ -14,7 +14,7 @@ class AddDeclineMsgToCheckoutAcceptanceTable extends Migrationpublic function up(){Schema::table('checkout_acceptances', function (Blueprint $table) {- $table->string('declined_msg')->after('signature_filename');+ $table->string('declined_msg')->after('signature_filename')->nullable();});}diff --git a/resources/lang/en-US/admin/settings/general.php b/resources/lang/en-US/admin/settings/general.phpindex 1100bde6bd..ddf5dc4eab 100644--- a/resources/lang/en-US/admin/settings/general.php+++ b/resources/lang/en-US/admin/settings/general.php@@ -49,7 +49,7 @@ return ['default_eula_text' => 'Default EULA','default_language' => 'Default Language','default_eula_help_text' => 'You can also associate custom EULAs to specific asset categories.',- 'decline_msg' => 'Add details to why you cant accept this (Optional)',+ 'decline_msg' => 'Add details to why you can\'t accept this (Optional)','display_asset_name' => 'Display Asset Name','display_checkout_date' => 'Display Checkout Date','display_eol' => 'Display EOL in table view',diff --git a/resources/views/account/accept/create.blade.php b/resources/views/account/accept/create.blade.phpindex 425cc77513..5501474bfa 100644--- a/resources/views/account/accept/create.blade.php+++ b/resources/views/account/accept/create.blade.php@@ -103,6 +103,24 @@@section('moar_scripts')<script nonce="{{ csrf_token() }}">+ $(document).ready(function(){+ // Initially hide the div+ $('#declined_msg').hide();+ $('#declined_msg_label').hide();+++ $('input[id="declined"]').change(function(){++ if($(this).is(':checked')){+ $('#declined_msg_label').show();+ $('#declined_msg').show();+ }+ else {+ $('#declined_msg_label').hide();+ $('#declined_msg').hide();+ }+ });+ });var wrapper = document.getElementById("signature-pad"),clearButton = wrapper.querySelector("[data-action=clear]"),saveButton = wrapper.querySelector("[data-action=save]"),@@ -139,24 +157,7 @@$('#signature_output').val(signaturePad.toDataURL());}});- $(document).ready(function(){- // Initially hide the div- $('#declined_msg').hide();- $('#declined_msg_label').hide();-- $('input[id="declined"]').change(function(){-- if($(this).is(':checked')){- $('#declined_msg_label').show();- $('#declined_msg').show();- }- else {- $('#declined_msg_label').hide();- $('#declined_msg').hide();- }- });- });</script>@stop\ No newline at end of file