From aefacb0a07a9ef66172dfccb24714717585f86b1 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 6 Feb 2022 11:08:53 +0100 Subject: Added form --- tpl/objects/form.pug | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tpl/objects/form.pug (limited to 'tpl/objects') 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 @@ +include field-label.pug + +mixin form + form(class={ + 'l-form': true, + 'l-form--labels-right': attributes.labelsAlign === 'right', + '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 -- cgit v1.2.3-70-g09d2