Updated forms templates
authorThierry Florac <thierry.florac@onf.fr>
Tue, 28 Aug 2018 09:22:07 +0200
changeset 894 e99bef811332
parent 893 3eb9eb650335
child 895 f9b6a52abbe1
Updated forms templates
src/pyams_content/root/zmi/templates/advanced-search.pt
src/pyams_content/root/zmi/templates/dashboard.pt
--- a/src/pyams_content/root/zmi/templates/advanced-search.pt	Tue Aug 28 09:21:46 2018 +0200
+++ b/src/pyams_content/root/zmi/templates/advanced-search.pt	Tue Aug 28 09:22:07 2018 +0200
@@ -73,12 +73,12 @@
 									</span>
 								</label>
 								<div class="col-md-9">
-									<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())">
 										<input tal:replace="structure widget.render()" />
-									</label>
+									</div>
 								</div>
 							</div>
 							<div class="form-group">
@@ -94,12 +94,12 @@
 										</span>
 									</label>
 									<div class="col-md-4">
-										<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())">
 											<input tal:replace="structure widget.render()" />
-										</label>
+										</div>
 									</div>
 								</tal:var>
 								<tal:var define="widget view.widgets['content_type']">
@@ -114,12 +114,12 @@
 										</span>
 									</label>
 									<div class="col-md-3">
-										<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())">
 											<input tal:replace="structure widget.render()" />
-										</label>
+										</div>
 									</div>
 								</tal:var>
 							</div>
@@ -128,25 +128,25 @@
 									<span i18n:translate="">Created between</span>
 								</label>
 								<div class="col-md-4">
-									<label class="input"
-											tal:define="widget view.widgets['created_after']"
-										   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:define="widget view.widgets['created_after']"
+										 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())">
 										<input tal:replace="structure widget.render()" />
-									</label>
+									</div>
 								</div>
 								<div class="control-label col-md-1 text-align-center">
 									<i18n:var translate=""> and </i18n:var>
 								</div>
 								<div class="col-md-4">
-									<label class="input"
-											tal:define="widget view.widgets['created_before']"
-										   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:define="widget view.widgets['created_before']"
+										 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())">
 										<input tal:replace="structure widget.render()" />
-									</label>
+									</div>
 								</div>
 							</div>
 							<div class="form-group">
@@ -154,25 +154,25 @@
 									<span i18n:translate="">Modified between</span>
 								</label>
 								<div class="col-md-4">
-									<label class="input"
-											tal:define="widget view.widgets['modified_after']"
-										   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:define="widget view.widgets['modified_after']"
+										 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())">
 										<input tal:replace="structure widget.render()" />
-									</label>
+									</div>
 								</div>
 								<div class="control-label col-md-1 text-align-center">
 									<i18n:var translate=""> and </i18n:var>
 								</div>
 								<div class="col-md-4">
-									<label class="input"
-											tal:define="widget view.widgets['modified_before']"
-										   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:define="widget view.widgets['modified_before']"
+										 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())">
 										<input tal:replace="structure widget.render()" />
-									</label>
+									</div>
 								</div>
 							</div>
 						</fieldset>
--- a/src/pyams_content/root/zmi/templates/dashboard.pt	Tue Aug 28 09:21:46 2018 +0200
+++ b/src/pyams_content/root/zmi/templates/dashboard.pt	Tue Aug 28 09:22:07 2018 +0200
@@ -22,13 +22,13 @@
 					  data-async data-ams-form-submit-target="#search_results">
 					<div class="form-group">
 						<div class="col-md-6">
-							<label class="input">
+							<div class="input">
 								<button type="submit" class="icon-append fa fa-fw fa-search no-border no-padding"
 										data-ams-form-hide-loading="true"></button>
 								<input type="text" name="query"
 									   placeholder="Quick search..." i18n:attributes="placeholder"
 									   data-ams-events-handlers='{"keyup": "MyAMS.helpers.clearSearchTarget"}' />
-							</label>
+							</div>
 						</div>
 						<div class="col-md-6">
 							<a class="nowrap btn-sm col-md-2" href="#advanced-search.html"