required form field improvements, hide ugly red border and show what star means

merge-requests/208/head
fatchan 5 years ago
parent e1c0fd615c
commit 03ef3b5bff
  1. 4
      gulp/res/css/style.css
  2. 2
      views/includes/actionfooter.pug
  3. 2
      views/includes/actionfooter_globalmanage.pug
  4. 2
      views/includes/actionfooter_manage.pug
  5. 4
      views/includes/postform.pug

@ -345,7 +345,8 @@ td, th {
max-height: 128px; max-height: 128px;
} }
figure { input:invalid, textarea:invalid {
box-shadow: none;
} }
input textarea { input textarea {
@ -381,7 +382,6 @@ input textarea {
.board-banner { .board-banner {
margin: 10px; margin: 10px;
max-width: 100%; max-width: 100%;
/*border: 1px solid #a9a9a9;*/
} }
.board-description { .board-description {

@ -5,7 +5,7 @@ details.toggle-label
if board.settings.userPostDelete if board.settings.userPostDelete
label label
input.post-check(type='checkbox', name='delete' value=1) input.post-check(type='checkbox', name='delete' value=1)
| Delete | Delete Posts
if board.settings.userPostUnlink if board.settings.userPostUnlink
label label
input.post-check(type='checkbox', name='unlink_file' value=1) input.post-check(type='checkbox', name='unlink_file' value=1)

@ -4,7 +4,7 @@ details.toggle-label
h4.no-m-p Actions: h4.no-m-p Actions:
label label
input.post-check(type='checkbox', name='delete' value=1) input.post-check(type='checkbox', name='delete' value=1)
| Delete | Delete Posts
label label
input.post-check(type='checkbox', name='delete_file' value=1) input.post-check(type='checkbox', name='delete_file' value=1)
| Delete Files | Delete Files

@ -4,7 +4,7 @@ details.toggle-label
h4.no-m-p Actions: h4.no-m-p Actions:
label label
input.post-check(type='checkbox', name='delete' value=1) input.post-check(type='checkbox', name='delete' value=1)
| Delete | Delete Posts
label label
input.post-check(type='checkbox', name='delete_file' value=1) input.post-check(type='checkbox', name='delete_file' value=1)
| Delete Files | Delete Files

@ -55,4 +55,8 @@ section.form-wrapper.flex-center
.postform-col .postform-col
iframe.captcha(src='/captcha.html' width=200 height=110 scrolling='no') iframe.captcha(src='/captcha.html' width=200 height=110 scrolling='no')
input(type='text', name='captcha', autocomplete='off' placeholder='captcha text' maxlength='6' required) input(type='text', name='captcha', autocomplete='off' placeholder='captcha text' maxlength='6' required)
if !isThread && (board.settings.forceOPFile || board.settings.forceOPMessage || board.settings.forceOPSubject)
small
span.required *
| = required field
input(type='submit', value=`New ${isThread ? 'Reply' : 'Thread'}`) input(type='submit', value=`New ${isThread ? 'Reply' : 'Thread'}`)

Loading…
Cancel
Save