merge-requests/218/head
Thomas Lynch 3 years ago
parent 1b1883be1e
commit f0cd378d14
  1. 4
      controllers/forms/create.js
  2. 2
      views/pages/create.pug

@ -26,10 +26,6 @@ module.exports = async (req, res, next) => {
if (!req.body.name || req.body.name.length <= 0) {
errors.push('Missing name');
}
if (!req.body.description || req.body.description.length <= 0) {
errors.push('Missing description');
}
//other validation
if (req.body.uri) {
if (req.body.uri.length > globalLimits.fieldLength.uri) {

@ -15,7 +15,7 @@ block content
input(type='text', name='name', maxlength=globalLimits.fieldLength.boardname required)
.row
.label Description
input(type='text', name='description', maxlength=globalLimits.fieldLength.description required)
input(type='text', name='description', maxlength=globalLimits.fieldLength.description)
.row
.label Tags
textarea(name='tags' placeholder='Newline separated, max 10')

Loading…
Cancel
Save