From b97d439cb7993c66cf7771f3a4694e985c743574 Mon Sep 17 00:00:00 2001 From: Calin Medianu Date: Mon, 26 Mar 2018 19:10:16 -0700 Subject: [PATCH] add support for readonly text fields --- components/forms.pug | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/forms.pug b/components/forms.pug index a29d20e..0bac985 100644 --- a/components/forms.pug +++ b/components/forms.pug @@ -7,7 +7,8 @@ mixin input-simple(type,id,options) placeholder=options.placeholder || false, name=options.name || false, value=options.value || false, - required=options.required ? 'true' : false) + required=options.required ? 'true' : false, + readonly=options.readonly ? 'true' : false) //- Input control with form-group wrapper mixin input(type,id,label,options) @@ -22,6 +23,7 @@ mixin textarea-simple(id,options) placeholder=options.placeholder || false, name=options.name || false, rows=options.rows || 3, + readonly=options.readonly ? 'true' : false required=options.required ? 'true' : false) #{options.value || ''} //- Input control with form-group wrapper