From 3f0d285bc1e9a8e21f2e4d250deaafc8b626eb62 Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani <toshaan@vantosh.com> Date: Mon, 11 Nov 2024 14:59:12 +0100 Subject: [PATCH] add feedback form to requesttracker Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com> --- .../layouts/partials/feedbackform.html | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 themes/openpowerfoundation/layouts/partials/feedbackform.html diff --git a/themes/openpowerfoundation/layouts/partials/feedbackform.html b/themes/openpowerfoundation/layouts/partials/feedbackform.html new file mode 100644 index 0000000..4f95577 --- /dev/null +++ b/themes/openpowerfoundation/layouts/partials/feedbackform.html @@ -0,0 +1,55 @@ +<script> +var formname = "form.contactForm"; +var submiturl = "{{ .Site.Params.forms.contact.URI }}"; +{{ if .Site.Params.forms.contact.goal }} +var goal = "{{ .Site.Params.forms.contact.goal }}"; +{{ end }} +{{ $feedbackqueue := .Param "feedback.queue" }} +</script> +<section id="contact"> +<div class="container"><div class="row wow fadeInUp"> + <div class="col-lg-12 col-md-12"><div class="form"> + <div id="sendmessage">Your message has been sent. Thank you!</div> + <div id="errormessage">Error</div> + <form role="form" name="contactForm" class="contactForm" id="contactForm" action="" method="post"> + <div class="form-row"> + <div class="form-group col-lg-12"> + <input type="text" name="name" class="form-control" id="name" placeholder="Your Name" data-rule="minlen:4" data-msg="Please enter at least 4 characters" /> + <div class="validation"></div> + </div> + </div> + <div class="form-row"> + <div class="form-group col-lg-12"> + <input type="email" class="form-control" name="email" id="email" placeholder="Your Email" data-rule="email" data-msg="Please enter a valid email address" /> + <div class="validation"></div> + </div> + </div> + <div class="form-row"> + <div class="form-group col-lg-12"> + <input type="text" class="form-control" name="subject" id="subject" placeholder="Subject" data-rule="minlen:4" data-msg="Please enter at least 8 characters" /> + <div class="validation"></div> + </div> + </div> + <div class="form-row"> + <div class="form-group col-lg-12"> + <textarea class="form-control" name="message" rows="5" data-rule="required" data-msg="Please write something for us" placeholder="Message"></textarea> + <div class="validation"></div> + </div> + </div> + <div class="form-row"> + <div class="form-group col-lg-12"> + By submitting this form, I acknowledge that my information is subject + to the <a href="{{ "/policy/privacy" | relURL }}">OpenPOWER Foundation's Privacy Policy</a>. + </div> + </div> + <div class="form-row"> + <div class="form-group col-lg-12 text-center"> + <input type="hidden" name="contact" value="{{ $feedbackqueue }}" /> + <input type="hidden" name="url" value="{{ $.Page.RelPermalink | absURL }}" /> + <button class="btn btn-outline-primary mb-4 mt-4" type="submit" title="Send Message">Send Message</button> + </div> + </div> + </form> + </div></div> +</div></div> +</section>