From aefacb0a07a9ef66172dfccb24714717585f86b1 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 6 Feb 2022 11:08:53 +0100 Subject: Added form --- tpl/index.pug | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'tpl/index.pug') diff --git a/tpl/index.pug b/tpl/index.pug index 8595be0..2ebb625 100644 --- a/tpl/index.pug +++ b/tpl/index.pug @@ -11,6 +11,7 @@ include objects/field-label.pug include objects/radio.pug include objects/checkbox.pug include objects/switch.pug +include objects/form.pug mixin box +container(padX=true padY=true inPage=true theme="raised") @@ -268,3 +269,36 @@ html +switch(accent=true disabled=true)= 'Cats' +switch(accent=true disabled=true)= 'Dogs' +switch(accent=true checked=true disabled=true)= 'Foxes' + + //----------------------------------------- + + +h1-heading(level='xl')= 'Form' + +rule(level='medium') + + +box + +form + +form-item('Username') + +text-field(placeholder='Example: Volpeon') + + +form-item('Password', 'At least 6 characters, all characters allowed') + +text-field(placeholder='Example: hunter2', type='password') + + +form-item('Bio') + +text-field(placeholder='Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam...') + + +form-item('Favorite animal') + +radio(name="form-demo-1" checked=true)= 'Foxes' + +radio(name="form-demo-1")= 'Other' + + +form-item('Notification settings') + +switch= 'In-app notifications' + br + +switch= 'Desktop notifications' + br + +switch= 'Email notifications' + + +form-item('') + +checkbox= 'I\'ve read and accept the terms and conditions' + + +form-item('') + +a-button(variant='primary')= 'Register' -- cgit v1.2.3-70-g09d2