fix incorrect total for fileform mixin

indiachan-spamvector
Thomas Lynch 3 years ago
parent ef8708748c
commit 940007b0e9
  1. 2
      views/mixins/fileform.pug

@ -2,7 +2,7 @@ include ./filelabel.pug
mixin fileform(name, max, total, addPath, deletePath, checkName, fileList, nameList, filePath, imageClass)
- const capitalName = `${name.charAt(0).toUpperCase()}${name.substring(1)}`;
h4.no-m-p Add #{capitalName}s (Max #{globalLimits.bannerFiles.total})
h4.no-m-p Add #{capitalName}s (Max #{total})
.form-wrapper.flexleft.mt-10
form.form-post(action=addPath, enctype='multipart/form-data', method='POST')
input(type='hidden' name='_csrf' value=csrf)

Loading…
Cancel
Save