diff options
Diffstat (limited to 'tpl/objects')
-rw-r--r-- | tpl/objects/form.pug | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tpl/objects/form.pug b/tpl/objects/form.pug new file mode 100644 index 0000000..496ed48 --- /dev/null +++ b/tpl/objects/form.pug | |||
@@ -0,0 +1,13 @@ | |||
1 | include field-label.pug | ||
2 | |||
3 | mixin form | ||
4 | form(class={ | ||
5 | 'l-form': true, | ||
6 | 'l-form--labels-right': attributes.labelsAlign === 'right', | ||
7 | 'l-form--labels-above': attributes.labelsAlign === 'above' | ||
8 | }) | ||
9 | block | ||
10 | |||
11 | mixin form-item(label, hint=null) | ||
12 | +field-label(label, hint)(class='l-form__item' labelClass='l-form__item-label' contentClass='l-form__item-content') | ||
13 | block | ||