postform change to show max files for nojs

merge-requests/208/head
fatchan 5 years ago
parent 709e695ae7
commit f270322a5b
  1. 13
      gulp/res/css/style.css
  2. 1
      views/custompages/rules.pug
  3. 2
      views/includes/filelabel.pug
  4. 7
      views/includes/postform.pug
  5. 7
      views/pages/managebanners.pug

@ -309,6 +309,7 @@ p {
.required {
color: maroon;
margin: 0 .5em;
}
.title {
@ -319,10 +320,6 @@ p {
margin-bottom: 10px;
}
.required {
margin: 0 5px;
}
.pinktext {
color: #E0727F;
}
@ -918,6 +915,14 @@ table.boardtable td:nth-child(6) {
visibility: hidden!important;
}
.db {
display: block;
}
.wp {
white-space: pre-wrap;
}
table, .boardtable {
max-width: 100%;
}

@ -14,3 +14,4 @@ block content
p Do not post, link or promote any content illegal under United States law.
p Do not spam, flood, (D)DoS, etc. which negatively impacts site performance.
p SFW marked boards must be primarily SFW and spoiler all NSFW content.
p No advertising other imageboards. Join the webring instead of shilling.

@ -1,4 +1,2 @@
label.jsonly.postform-style.filelabel(for='file')
- const maxFiles = thread || threads ? board.settings.maxFiles : globalLimits.bannerFiles.max;
| Select/Drop/Paste file#{maxFiles > 1 ? 's' : ''}
small (Max #{maxFiles})

@ -36,10 +36,15 @@ section.form-wrapper.flex-center
.required *
textarea#message(name='message', rows='5', autocomplete='off' maxlength=globalLimits.messageLength.max required=messageRequired)
if board.settings.maxFiles > 0
- const maxFiles = board.settings.maxFiles;
section.row
.label Files
.label.wp
| File#{maxFiles > 1 ? 's' : ''}
if fileRequired
.required *
if maxFiles > 1
|
small (Max #{maxFiles})
span.col
include ./filelabel.pug
input#file(type='file', name='file' multiple required=fileRequired )

@ -16,8 +16,13 @@ block content
form.form-post(action=`/forms/board/${board._id}/addbanners`, enctype='multipart/form-data', method='POST')
input(type='hidden' name='_csrf' value=csrf)
.row
.label Upload
- const maxFiles = globalLimits.bannerFiles.max;
.label.wp
| Banner#{maxFiles > 1 ? 's' : ''}
.required *
if maxFiles > 1
|
div (Max #{maxFiles})
span.col
include ../includes/filelabel.pug
input#file(type='file', name='file' multiple required)

Loading…
Cancel
Save