Updated HTML templates
authorThierry Florac <thierry.florac@onf.fr>
Tue, 28 Aug 2018 09:20:48 +0200
changeset 137 a6d20bdc617b
parent 136 52572fa994aa
child 138 07368c161bb9
Updated HTML templates
src/pyams_form/interfaces/templates/form.pt
src/pyams_form/interfaces/templates/inner-form.pt
src/pyams_form/interfaces/templates/widget-form.pt
src/pyams_form/widget/templates/object-subform.pt
src/pyams_form/widget/templates/orderedselect-display.pt
--- a/src/pyams_form/interfaces/templates/form.pt	Fri Aug 24 09:05:58 2018 +0200
+++ b/src/pyams_form/interfaces/templates/form.pt	Tue Aug 28 09:20:48 2018 +0200
@@ -103,10 +103,10 @@
 											</span>
 										</label>
 										<div tal:attributes="class widget.input_css_class | group.input_css_class | view.input_css_class">
-											<label class="input"
-												   tal:attributes="class widget.widget_css_class | default;
-																   data-ams-data tales:object_data(widget);
-																   data-ams-form-validator view.get_widget_callback(widget.field.getName())">
+											<div class="input"
+												 tal:attributes="class widget.widget_css_class | default;
+																 data-ams-data tales:object_data(widget);
+																 data-ams-form-validator view.get_widget_callback(widget.field.getName())">
 												<div tal:define="notice widget.before_widget_notice | nothing"
 													 tal:condition="notice"
 													 tal:content="structure notice">Notice</div>
@@ -114,7 +114,7 @@
 												<div tal:define="notice widget.after_widget_notice | nothing"
 													 tal:condition="notice"
 													 tal:content="structure notice">Notice</div>
-											</label>
+											</div>
 										</div>
 									</div>
 								</tal:if>
--- a/src/pyams_form/interfaces/templates/inner-form.pt	Fri Aug 24 09:05:58 2018 +0200
+++ b/src/pyams_form/interfaces/templates/inner-form.pt	Tue Aug 28 09:20:48 2018 +0200
@@ -87,9 +87,9 @@
 									</span>
 								</label>
 								<div tal:attributes="class widget.input_css_class | group.input_css_class | view.input_css_class">
-									<label class="input"
-										   tal:attributes="class widget.widget_css_class | default;
-														   data-ams-form-validator view.get_widget_callback(widget.field.getName())">
+									<div class="input"
+										 tal:attributes="class widget.widget_css_class | default;
+														 data-ams-form-validator view.get_widget_callback(widget.field.getName())">
 										<div tal:define="notice widget.before_widget_notice | nothing"
 											 tal:condition="notice"
 											 tal:content="structure notice">Notice</div>
@@ -97,7 +97,7 @@
 										<div tal:define="notice widget.after_widget_notice | nothing"
 											 tal:condition="notice"
 											 tal:content="structure notice">Notice</div>
-									</label>
+									</div>
 								</div>
 							</div>
 						</tal:if>
--- a/src/pyams_form/interfaces/templates/widget-form.pt	Fri Aug 24 09:05:58 2018 +0200
+++ b/src/pyams_form/interfaces/templates/widget-form.pt	Tue Aug 28 09:20:48 2018 +0200
@@ -82,9 +82,9 @@
 											</span>
 										</label>
 										<div tal:attributes="class widget.input_css_class | group.input_css_class | view.input_css_class">
-											<label class="input"
-												   tal:attributes="class widget.widget_css_class | default;
-																   data-ams-form-validator view.get_widget_callback(widget.field.getName())">
+											<div class="input"
+												 tal:attributes="class widget.widget_css_class | default;
+																 data-ams-form-validator view.get_widget_callback(widget.field.getName())">
 												<div tal:define="notice widget.before_widget_notice | nothing"
 													 tal:condition="notice"
 													 tal:content="structure notice">Notice</div>
@@ -92,7 +92,7 @@
 												<div tal:define="notice widget.after_widget_notice | nothing"
 													 tal:condition="notice"
 													 tal:content="structure notice">Notice</div>
-											</label>
+											</div>
 										</div>
 									</div>
 								</tal:if>
--- a/src/pyams_form/widget/templates/object-subform.pt	Fri Aug 24 09:05:58 2018 +0200
+++ b/src/pyams_form/widget/templates/object-subform.pt	Tue Aug 28 09:20:48 2018 +0200
@@ -20,10 +20,10 @@
 					</label>
 					<div class="col-md-9"
 						 tal:attributes="class widget/input_css_class | group/input_css_class | view/input_css_class | default">
-						<label class="input"
-							   tal:attributes="class widget/widget_css_class | default;">
+						<div class="input"
+							 tal:attributes="class widget/widget_css_class | default;">
 							<input tal:replace="structure python:widget.render()" />
-						</label>
+						</div>
 					</div>
 				</div>
 			</tal:if>
--- a/src/pyams_form/widget/templates/orderedselect-display.pt	Fri Aug 24 09:05:58 2018 +0200
+++ b/src/pyams_form/widget/templates/orderedselect-display.pt	Tue Aug 28 09:20:48 2018 +0200
@@ -1,5 +1,5 @@
-<label class="input"
-	   tal:omit-tag="view/required" i18n:domain="pyams_form">
+<div class="input"
+	 tal:omit-tag="view/required" i18n:domain="pyams_form">
 	<div class="select2-parent"
 		 tal:omit-tag="view/required">
 		<select class="select2 ordered" disabled="disabled"
@@ -35,4 +35,4 @@
 					tal:content="entry/content"></option>
 		</select>
 	</div>
-</label>
+</div>