diff options
author | Volpeon <git@volpeon.ink> | 2022-02-06 11:08:53 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-02-06 11:08:53 +0100 |
commit | aefacb0a07a9ef66172dfccb24714717585f86b1 (patch) | |
tree | 37107453c3da350d7bcbdc7d4d77f4f514b58622 /tpl/objects | |
parent | Added checkbox and switch (diff) | |
download | iro-design-aefacb0a07a9ef66172dfccb24714717585f86b1.tar.gz iro-design-aefacb0a07a9ef66172dfccb24714717585f86b1.tar.bz2 iro-design-aefacb0a07a9ef66172dfccb24714717585f86b1.zip |
Added form
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 | ||