Added missing custom widget label CSS class
authorThierry Florac <thierry.florac@onf.fr>
Mon, 24 Oct 2016 18:08:34 +0200
changeset 42 58c91e786100
parent 41 a486cb8f3fff
child 43 acb7d0b6a22b
Added missing custom widget label CSS class
src/pyams_form/templates/form.pt
src/pyams_form/templates/inner-form.pt
src/pyams_form/templates/widget-form.pt
--- a/src/pyams_form/templates/form.pt	Thu Jun 02 15:33:30 2016 +0200
+++ b/src/pyams_form/templates/form.pt	Mon Oct 24 18:08:34 2016 +0200
@@ -87,7 +87,7 @@
 								<tal:if condition="widget.mode != 'hidden'">
 									<div tal:define="required 'required-field' if widget.required and (widget.mode != 'display') else ''"
 										 tal:attributes="class string:form-group ${required}">
-										<label tal:attributes="class group.label_css_class | view.label_css_class">
+										<label tal:attributes="class widget.label_css_class | group.label_css_class | view.label_css_class">
 											<span>
 												<tal:var content="widget.label" />
 												<i class="fa fa-question-circle hint" title="Input hint"
--- a/src/pyams_form/templates/inner-form.pt	Thu Jun 02 15:33:30 2016 +0200
+++ b/src/pyams_form/templates/inner-form.pt	Mon Oct 24 18:08:34 2016 +0200
@@ -70,7 +70,7 @@
 						<tal:if condition="widget.mode != 'hidden'">
 							<div tal:define="required 'required-field' if widget.required and (widget.mode != 'display') else ''"
 								 tal:attributes="class string:form-group ${required}">
-								<label tal:attributes="class group.label_css_class | view.label_css_class">
+								<label tal:attributes="class widget.label_css_class | group.label_css_class | view.label_css_class">
 									<span>
 										<tal:var content="widget.label" />
 										<i class="fa fa-question-circle hint" title="Input hint"
--- a/src/pyams_form/templates/widget-form.pt	Thu Jun 02 15:33:30 2016 +0200
+++ b/src/pyams_form/templates/widget-form.pt	Mon Oct 24 18:08:34 2016 +0200
@@ -69,7 +69,7 @@
 								<tal:if condition="widget.mode != 'hidden'">
 									<div tal:define="required 'required-field' if widget.required and (widget.mode != 'display') else ''"
 										 tal:attributes="class string:form-group ${required}">
-										<label tal:attributes="class group.label_css_class | view.label_css_class">
+										<label tal:attributes="class widget.label_css_class | group.label_css_class | view.label_css_class">
 											<span>
 												<tal:var content="widget.label" />
 												<i class="fa fa-question-circle hint" title="Input hint"