1extends layout
2
3block content
4 .card
5 .flex.flex-center
6 h2.aubergine.m-v-md New Board
7 hr
8
9 if locals.flashes
10 - const categories = Object.keys(locals.flashes)
11 each category in categories
12 each message in flashes[category]
13 .staticFlash(class=`staticFlash--${category}`).center.m-v-lg.p-h-md.p-v-sm
14 | #{message}
15
16 .m-t-md
17 form(action='/settings/new-board' method='post' autocomplete='off')
18 .m-v-sm
19 input(
20 type='text' name='name'
21 required='' maxlength='255'
22 autofocus='' placeholder='Name of the board'
23 value=`${(body && body.name) ? body.name : ''}`
24 ).input-border.p-sm.full-width.border-box
25 .m-v-sm
26 textarea(
27 name='description'
28 required='' minlength='8' maxlength='512' rows="10"
29 autofocus='' placeholder='A tiny description of the board and what it\'ll be used for'
30 value=`${(body && body.description) ? body.description : ''}`
31 ).input-border.p-sm.full-width.border-box.textarea-v
32 .m-v-md
33 input(type='submit' value='Submit').button.button-primary
34 a(href="/settings").m-l-sm
35 input(type='button' value='Cancel').button.button-gray-inverted
36