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