summaryrefslogtreecommitdiffstats
path: root/tpl/objects/form.pug
blob: cbb1758dd0ca9ebbe865e1d06d9616afec83ee52 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
include field-label.pug

mixin form
    form(class={
        'l-form':               true,
        'l-form--labels-start': attributes.labelsAlign === 'start',
        'l-form--labels-end':   attributes.labelsAlign === 'end',
        'l-form--labels-above': attributes.labelsAlign === 'above'
        })
        block

mixin form-item(label, hint=null)
    +field-label(label, hint)(class='l-form__item' labelClass='l-form__item-label' contentClass='l-form__item-content')
        block