From 97127ed72966d29d51347e8d978825d386fc802d Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Tue, 19 Jun 2018 07:26:32 +0800 Subject: Add inline forms --- docs/src/contents/forms.pug | 48 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) (limited to 'docs/src/contents/forms.pug') diff --git a/docs/src/contents/forms.pug b/docs/src/contents/forms.pug index 838b9e4..e812aef 100644 --- a/docs/src/contents/forms.pug +++ b/docs/src/contents/forms.pug @@ -154,6 +154,54 @@ script. p | You can change checkbox to indeterminate state by setting the #[code indeterminate] property of input checkboxes to #[code true]. ++docs-subheading('forms-inline', 'Inline forms') + +.docs-demo.columns + .column.col-6.col-xs-12 + form + .form-group + label.form-radio.form-inline + input(type="radio" name="gender" checked="") + i.form-icon + | Male + label.form-radio.form-inline + input(type="radio" name="gender") + i.form-icon + | Female + .form-group + label.form-checkbox.form-inline + input(type="checkbox") + i.form-icon + | Checkbox 1 + label.form-checkbox.form-inline + input(type="checkbox" checked="") + i.form-icon + | Checkbox 2 + +p + | You can add the #[code form-inline] class to the form components to make them inline in one row. + +pre.code(data-lang='HTML') + code + :highlight(lang="html") +
+ + +
+ +
+ + +
+ +docs-subheading('forms-horizontal', 'Horizontal forms') p -- cgit v1.3.1-26-gb76a