Removed email field from a form and from posts.

This commit is contained in:
Alexander Andreev 2022-08-27 04:21:51 +04:00
parent f24ad3d883
commit ee36f2391b
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -21,29 +21,25 @@ block nav
block content block content
form#new-post(action='/guestbook', method='POST') form#new-post(action='/guestbook', method='POST')
input(type='text' maxlength='80' placeholder='Name (Anonymous if left blank)' name='name') input(type='text' maxlength='80' placeholder='Name (Anonymous if left blank)' name='name')
input(type='text' maxlength='255' placeholder='E-Mail (optional)' name='email')
input(type='text' maxlength='255' placeholder='Website (optional)' name='website') input(type='text' maxlength='255' placeholder='Website (optional)' name='website')
textarea(maxlength='4096' placeholder='Your message' name='message' required) textarea(maxlength='4096' placeholder='Your message' name='message' required)
span.checkboxes span.checkboxes
span.checkbox
input(type='checkbox' id='hide-email' name='hide_email' checked)
label(for='hide-email') Hide E-Mail*
span.checkbox span.checkbox
input(type='checkbox' id='hide-website' name='hide_website' checked) input(type='checkbox' id='hide-website' name='hide_website' checked)
label(for='hide-website') Hide website* label(for='hide-website') Hide website*
small *Only I can see if set.
span.captcha span.captcha
input(type='hidden', name='captcha_id' value=captcha_id) input(type='hidden', name='captcha_id' value=captcha_id)
img(src='/captcha/'+captcha_id+'/image', alt="CAPTCHA" width='160' height='40') img(src='/captcha/'+captcha_id+'/image', alt="CAPTCHA" width='160' height='40')
input(type='text' maxlength='6' placeholder='CAPTCHA' name='captcha_answer' required) input(type='text' maxlength='6' placeholder='CAPTCHA' name='captcha_answer' required)
small Valid for #[b 10] minutes. small Valid for #[b 10] minutes.
small *Only I can see if set.
input(type='submit' value='Send a post') input(type='submit' value='Send a post')
section#posts section#posts
if (posts) if (posts)
each post in posts each post in posts
article article
header header
| Posted by #[span.highlighted= post.name] #{post.email} #{post.website} on #[time(datetime=post.created)= date_(post.created, tz)] | Posted by #[span.highlighted= post.name] #{post.website} on #[time(datetime=post.created)= date_(post.created, tz)]
each line in post.message.split("\n") each line in post.message.split("\n")
+entryLine(line) +entryLine(line)
if post.feedback if post.feedback