neocities/views/contact.slim

39 lines
1.5 KiB
Text

javascript:
var RecaptchaOptions = {
theme : 'clean'
};
- if !@errors.nil? && !@errors.empty?
.row
.span8.offset2
.alert.alert-block.alert-error
- @errors.each do |error|
p = error
.row
.span8.offset2
h2 style="margin-bottom: 20px" Contact Us
div
h5 Please Note Before Contacting:
ul
li For security reasons, we cannot reset your password if you did not enter an e-mail for your site. You will have to make a new site (don't worry, it's free!). If you didn't get an e-mail from the password reset form, you didn't enter an e-mail (or it's in your spam folder). Again you will have to make a new site, we cannot help you for security reasons.
li We do not support FTP or GIT uploading, and have no plans to. SFTP possibly, if we can find the time.
form action="/contact" method="POST"
input name="csrf_token" type="hidden" value="#{csrf_token}"
label Email address
input type="email" name="email" placeholder="Your Email" style="width: 300px" value="#{params[:email]}"
label Subject
input type="text" name="subject" placeholder="Subject" style="width: 400px" value="#{params[:subject]}"
label Comments
textarea name="body" style="width: 600px" rows="10" #{params[:body]}
label Fill out captcha so we know you're not a robot
== recaptcha_tag :challenge, ssl: true
div style="margin-top: 30px; margin-bottom: 50px"
input.btn.btn-large.btn-success type="submit" value="Send"