From 0fd99d410e090a9697b698b5422026549ab6d7af Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Mon, 18 Mar 2024 09:36:09 -0700 Subject: [PATCH] adds a text field and jquery to show/hide text field --- .../views/account/accept/create.blade.php | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/resources/views/account/accept/create.blade.php b/resources/views/account/accept/create.blade.php index c05bc3a89..1dc146c76 100644 --- a/resources/views/account/accept/create.blade.php +++ b/resources/views/account/accept/create.blade.php @@ -64,6 +64,14 @@ +
+
+ {{ Form::label('decline_msg', trans('admin/settings/general.decling_msg')) }} +
+
+ +
+
@if ($snipeSettings->require_accept_signature=='1')
@@ -130,6 +138,20 @@ $('#signature_output').val(signaturePad.toDataURL()); } }); + $(document).ready(function(){ + // Initially hide the div + $('#decline_msg').hide(); + + $('input[id="declined"]').change(function(){ + + if($(this).is(':checked')){ + $('#decline_msg').show(); + } + else { + $('#decline_msg').hide(); + } + }); + }); @stop \ No newline at end of file