Apply specific labels and inputs CSS classes
authorThierry Florac <thierry.florac@onf.fr>
Mon, 15 Sep 2014 13:04:35 +0200
changeset 59 8c8d6e681c70
parent 58 cac3b20fae4c
child 60 006912c0dd67
Apply specific labels and inputs CSS classes
src/ztfy/myams/templates/forms/form.pt
--- a/src/ztfy/myams/templates/forms/form.pt	Mon Sep 15 13:04:12 2014 +0200
+++ b/src/ztfy/myams/templates/forms/form.pt	Mon Sep 15 13:04:35 2014 +0200
@@ -65,7 +65,7 @@
 								<tal:if condition="python:widget.mode != 'hidden'">
 									<div tal:define="required python:'required-field' if widget.required and (widget.mode != 'display') else ''"
 										 tal:attributes="class string:form-group ${required}">
-										<label class="control-label col-md-3">
+										<label tal:attributes="class view/label_css_class">
 											<span>
 												<tal:var content="widget/label" />
 												<i class="fa fa-question-circle hint" title="Input hint"
@@ -75,7 +75,7 @@
 																   data-ams-hint-html python:'<' in description;"></i>
 											</span>
 										</label>
-										<div class="col-md-9">
+										<div tal:attributes="class view/input_css_class">
 											<label class="input"
 												   tal:attributes="data-ams-data widget/myams:data;
 																   data-ams-form-validator python:view.getWidgetCallback(widget.field.getName())">