Removed email field from a form and from posts.
This commit is contained in:
parent
f24ad3d883
commit
ee36f2391b
@ -21,29 +21,25 @@ block nav
|
||||
block content
|
||||
form#new-post(action='/guestbook', method='POST')
|
||||
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')
|
||||
textarea(maxlength='4096' placeholder='Your message' name='message' required)
|
||||
span.checkboxes
|
||||
span.checkbox
|
||||
input(type='checkbox' id='hide-email' name='hide_email' checked)
|
||||
label(for='hide-email') Hide E-Mail*
|
||||
span.checkbox
|
||||
input(type='checkbox' id='hide-website' name='hide_website' checked)
|
||||
label(for='hide-website') Hide website*
|
||||
small *Only I can see if set.
|
||||
span.captcha
|
||||
input(type='hidden', name='captcha_id' value=captcha_id)
|
||||
img(src='/captcha/'+captcha_id+'/image', alt="CAPTCHA" width='160' height='40')
|
||||
input(type='text' maxlength='6' placeholder='CAPTCHA' name='captcha_answer' required)
|
||||
small Valid for #[b 10] minutes.
|
||||
small *Only I can see if set.
|
||||
input(type='submit' value='Send a post')
|
||||
section#posts
|
||||
if (posts)
|
||||
each post in posts
|
||||
article
|
||||
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")
|
||||
+entryLine(line)
|
||||
if post.feedback
|
||||
|
Loading…
Reference in New Issue
Block a user