mirror of https://gitgud.io/fatchan/jschan.git
parent
88e86c5349
commit
0f3dbfa931
5 changed files with 84 additions and 90 deletions
@ -1,63 +1,62 @@ |
|||||||
- const isThread = thread != null |
- const isThread = thread != null |
||||||
section.form-wrapper.flex-center |
section.form-wrapper.flex-center |
||||||
details.toggle-label.open-postform |
a.toggle-summary(href='#postform') Open Postform |
||||||
summary.toggle-summary |
form.form-post#postform(action=`/forms/board/${board._id}/post`, enctype='multipart/form-data', method='POST') |
||||||
div#postform |
input(type='hidden' name='thread' value=isThread ? thread.postId : null) |
||||||
form.form-post(action=`/forms/board/${board._id}/post`, enctype='multipart/form-data', method='POST') |
unless board.settings.forceAnon |
||||||
input(type='hidden' name='thread' value=isThread ? thread.postId : null) |
section.postform-row |
||||||
unless board.settings.forceAnon |
.postform-label Name |
||||||
section.postform-row |
input(type='text', name='name', placeholder=board.settings.defaultName autocomplete='off' maxlength='50') |
||||||
.postform-label Name |
a.close.postform-style.ml-1(href='#!') X |
||||||
input(type='text', name='name', placeholder=board.settings.defaultName autocomplete='off' maxlength='50') |
section.postform-row |
||||||
section.postform-row |
.postform-label Subject |
||||||
.postform-label Subject |
if !isThread && board.settings.forceOPSubject |
||||||
if !isThread && board.settings.forceOPSubject |
.required * |
||||||
.required * |
input(type='text', name='subject', autocomplete='off' maxlength='50' required=!isThread && board.settings.forceOPSubject) |
||||||
input(type='text', name='subject', autocomplete='off' maxlength='50' required=!isThread && board.settings.forceOPSubject) |
section.postform-row |
||||||
section.postform-row |
.postform-label Email |
||||||
.postform-label Email |
input(type='text', name='email', autocomplete='off' maxlength='50') |
||||||
input(type='text', name='email', autocomplete='off' maxlength='50') |
else |
||||||
else |
section.postform-row |
||||||
section.postform-row |
.postform-label Sage |
||||||
.postform-label Sage |
label.postform-style.ph-5 |
||||||
label.postform-style.ph-5 |
input(type='checkbox', name='email', value='sage') |
||||||
input(type='checkbox', name='email', value='sage') |
| Sage |
||||||
| Sage |
a.close.postform-style.ml-1(href='#!') X |
||||||
if !isThread |
if !isThread |
||||||
section.postform-row |
|
||||||
.postform-label Subject |
|
||||||
if board.settings.forceOPSubject |
|
||||||
.required * |
|
||||||
input(type='text', name='subject', autocomplete='off' maxlength='50' required=board.settings.forceOPSubject) |
|
||||||
section.postform-row |
section.postform-row |
||||||
.postform-label Message |
.postform-label Subject |
||||||
if !isThread && board.settings.forceOPMessage |
if board.settings.forceOPSubject |
||||||
.required * |
.required * |
||||||
textarea(name='message', rows='5', autocomplete='off' maxlength='4000' required=!isThread && board.settings.forceOPMessage) |
input(type='text', name='subject', autocomplete='off' maxlength='50' required=board.settings.forceOPSubject) |
||||||
if board.settings.maxFiles > 0 |
section.postform-row |
||||||
section.postform-row |
.postform-label Message |
||||||
.postform-label Files |
if !isThread && board.settings.forceOPMessage |
||||||
if !isThread && board.settings.forceOPFile |
.required * |
||||||
.required * |
textarea(name='message', rows='5', autocomplete='off' maxlength='4000' required=!isThread && board.settings.forceOPMessage) |
||||||
input(type='file', name='file' multiple required=!isThread && board.settings.forceOPFile) |
if board.settings.maxFiles > 0 |
||||||
if board.settings.userPostSpoiler |
section.postform-row |
||||||
label.postform-style.ph-5.ml-1 |
.postform-label Files |
||||||
input(type='checkbox', name='spoiler', value='true') |
if !isThread && board.settings.forceOPFile |
||||||
| Spoiler |
.required * |
||||||
if board.settings.userPostSpoiler || board.settings.userPostDelete || board.settings.userPostUnlink |
input(type='file', name='file' multiple required=!isThread && board.settings.forceOPFile) |
||||||
section.postform-row |
if board.settings.userPostSpoiler |
||||||
.postform-label Password |
label.postform-style.ph-5.ml-1 |
||||||
input(type='password', name='password', autocomplete='off' placeholder='password to delete/spoiler/unlink later' maxlength='50') |
input(type='checkbox', name='spoiler', value='true') |
||||||
if board.settings.captcha |
| Spoiler |
||||||
section.postform-row |
if board.settings.userPostSpoiler || board.settings.userPostDelete || board.settings.userPostUnlink |
||||||
.postform-label Captcha |
section.postform-row |
||||||
.required * |
.postform-label Password |
||||||
.postform-col |
input(type='password', name='password', autocomplete='off' placeholder='password to delete/spoiler/unlink later' maxlength='50') |
||||||
iframe.captcha(src='/captcha.html' width=200 height=110 scrolling='no') |
if board.settings.captcha |
||||||
input(type='text', name='captcha', autocomplete='off' placeholder='captcha text' maxlength='6' required) |
section.postform-row |
||||||
if !isThread && ((board.settings.forceOPFile && board.settings.maxFiles > 0) || board.settings.forceOPMessage || board.settings.forceOPSubject) |
.postform-label Captcha |
||||||
small |
.required * |
||||||
span.required * |
.postform-col |
||||||
| = required field |
iframe.captcha(src='/captcha.html' width=200 height=110 scrolling='no') |
||||||
input(type='submit', value=`New ${isThread ? 'Reply' : 'Thread'}`) |
input(type='text', name='captcha', autocomplete='off' placeholder='captcha text' maxlength='6' required) |
||||||
.openpadding |
if !isThread && ((board.settings.forceOPFile && board.settings.maxFiles > 0) || board.settings.forceOPMessage || board.settings.forceOPSubject) |
||||||
|
small |
||||||
|
span.required * |
||||||
|
| = required field |
||||||
|
input(type='submit', value=`New ${isThread ? 'Reply' : 'Thread'}`) |
||||||
|
Loading…
Reference in new issue