Renamed TALES extension
authorThierry Florac <thierry.florac@onf.fr>
Mon, 09 Jul 2018 13:40:22 +0200
changeset 126 c915b68a4a52
parent 125 3defe3953276
child 127 7cf5f2951a39
Renamed TALES extension
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/templates/help.pt
src/pyams_form/widget/templates/action-display.pt
src/pyams_form/widget/templates/action-input.pt
src/pyams_form/widget/templates/button-input.pt
src/pyams_form/widget/templates/close-input.pt
src/pyams_form/widget/templates/orderedselect-input.pt
src/pyams_form/widget/templates/password-display.pt
src/pyams_form/widget/templates/password-input.pt
src/pyams_form/widget/templates/radio-input.pt
src/pyams_form/widget/templates/reset-input.pt
src/pyams_form/widget/templates/select-input.pt
src/pyams_form/widget/templates/submit-input.pt
src/pyams_form/widget/templates/text-input.pt
--- a/src/pyams_form/interfaces/templates/form.pt	Mon Jul 02 08:49:41 2018 +0200
+++ b/src/pyams_form/interfaces/templates/form.pt	Mon Jul 09 13:40:22 2018 +0200
@@ -10,7 +10,7 @@
 				<i class="fa fa-fw fa-times-circle"></i>
 			</button>
 			<h3 class="modal-title"
-				tal:define="config extension:configuration;">
+				tal:define="config tales:configuration;">
 				<span class="title" tal:content="view.title | context.title | config.title">Title</span>
 			</h3>
 			<tal:var replace="structure provider:form_toolbar" />
@@ -34,7 +34,7 @@
 							  accept view.accept;
 							  autocomplete view.autocomplete;
 							  class view.css_class;
-							  data-ams-data extension:object_data(view);
+							  data-ams-data tales:object_data(view);
 							  data-ams-form-handler view.get_ajax_handler() | nothing;
 							  data-ams-form-options view.get_form_options() | nothing;
 							  data-ams-form-submit-target view.form_target | nothing;
@@ -70,7 +70,7 @@
 														data-ams-checker-mode 'disable' if group.checkbox_mode == 'disable' else None;
 														data-ams-checker-marker '{0}-empty-marker'.format(group.checkbox_widget.name);
 														data-ams-checker-state group.checker_state;
-														data-ams-data extension:object_data(group);">
+														data-ams-data tales:object_data(group);">
 									<label tal:content="legend">Legend</label>
 								</legend>
 							</tal:if>
@@ -83,7 +83,7 @@
 							<tal:var define="help group.help" condition="help">
 								<div class="alert alert-info padding-5"
 									 tal:define="i18n_help request.localizer.translate(help);"
-									 tal:content="structure extension:html(i18n_help)"></div>
+									 tal:content="structure tales:html(i18n_help)"></div>
 							</tal:var>
 							<tal:loop repeat="widget group.visible_widgets">
 								<input type="hidden"
@@ -105,7 +105,7 @@
 										<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 extension:object_data(widget);
+																   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"
--- a/src/pyams_form/interfaces/templates/inner-form.pt	Mon Jul 02 08:49:41 2018 +0200
+++ b/src/pyams_form/interfaces/templates/inner-form.pt	Mon Jul 09 13:40:22 2018 +0200
@@ -16,7 +16,7 @@
 						  accept view.accept;
 						  autocomplete view.autocomplete;
 						  class view.css_class;
-						  data-ams-data extension:object_data(view);
+						  data-ams-data tales:object_data(view);
 						  data-ams-form-handler view.get_ajax_handler() | nothing;
 						  data-ams-form-options view.get_form_options() | nothing;
 						  data-ams-form-submit-target view.form_target | nothing;
@@ -54,7 +54,7 @@
 												data-ams-checker-mode 'disable' if group.checkbox_mode == 'disable' else None;
 												data-ams-checker-marker '{0}-empty-marker'.format(group.checkbox_widget.name);
 												data-ams-checker-state group.checker_state;
-												data-ams-data extension:object_data(group);">
+												data-ams-data tales:object_data(group);">
 							<label tal:content="legend">Legend</label>
 						</legend>
 					</tal:if>
@@ -67,7 +67,7 @@
 					<tal:var define="help group.help" condition="help">
 						<div class="alert alert-info padding-5"
 							 tal:define="i18n_help request.localizer.translate(help);"
-							 tal:content="structure extension:html(i18n_help)"></div>
+							 tal:content="structure tales:html(i18n_help)"></div>
 					</tal:var>
 					<tal:loop repeat="widget group.visible_widgets">
 						<input type="hidden"
--- a/src/pyams_form/interfaces/templates/widget-form.pt	Mon Jul 02 08:49:41 2018 +0200
+++ b/src/pyams_form/interfaces/templates/widget-form.pt	Mon Jul 09 13:40:22 2018 +0200
@@ -22,7 +22,7 @@
 							  accept view.accept;
 							  autocomplete view.autocomplete;
 							  class view.css_class;
-							  data-ams-data extension:object_data(view);
+							  data-ams-data tales:object_data(view);
 							  data-ams-form-handler view.get_ajax_handler() | nothing;
 							  data-ams-form-options view.get_form_options() | nothing;
 							  data-ams-form-submit-target view.form_target | nothing;
@@ -49,7 +49,7 @@
 														data-ams-checker-mode 'disable' if group.checkbox_mode == 'disable' else None;
 														data-ams-checker-marker '{0}-empty-marker'.format(group.checkbox_widget.name);
 														data-ams-checker-state group.checker_state;
-														data-ams-data extension:object_data(group);">
+														data-ams-data tales:object_data(group);">
 									<label tal:content="legend">Legend</label>
 								</legend>
 							</tal:if>
@@ -62,7 +62,7 @@
 							<tal:var define="help group.help" condition="help">
 								<div class="alert alert-info padding-5"
 									 tal:define="i18n_help request.localizer.translate(help);"
-									 tal:content="structure extension:html(i18n_help)"></div>
+									 tal:content="structure tales:html(i18n_help)"></div>
 							</tal:var>
 							<tal:loop repeat="widget group.visible_widgets">
 								<input type="hidden"
--- a/src/pyams_form/templates/help.pt	Mon Jul 02 08:49:41 2018 +0200
+++ b/src/pyams_form/templates/help.pt	Mon Jul 09 13:40:22 2018 +0200
@@ -2,6 +2,6 @@
 		condition="help">
 	<div tal:attributes="class string:margin-${help.outer_margin} help alert alert-block alert-${help.status} fade in">
 		<h4 class="alert-heading" tal:condition="help.header" tal:content="help.header"></h4>
-		<div tal:replace="structure extension:html(help)"></div>
+		<div tal:replace="structure tales:html(help)"></div>
 	</div>
 </tal:if>
--- a/src/pyams_form/widget/templates/action-display.pt	Mon Jul 02 08:49:41 2018 +0200
+++ b/src/pyams_form/widget/templates/action-display.pt	Mon Jul 09 13:40:22 2018 +0200
@@ -1,6 +1,6 @@
 <button type="button"
 		class="btn padding-x-5 hint opaque baseline"
-		tal:define="url extension:absolute_url(view.form.context, view.url)"
+		tal:define="url tales:absolute_url(view.form.context, view.url)"
 		tal:attributes="id view/id;
 						title view/title;
 						style view/style;
@@ -26,6 +26,6 @@
 						data-ams-url python:url if view.url else None;
 						data-ams-click-handler view/click_handler;
 						data-toggle python:'modal' if view.modal_target else None;
-						data-ams-data extension:object_data(view);">
+						data-ams-data tales:object_data(view);">
 	<i tal:attributes="class view/label_css_class"></i>
 </button>
--- a/src/pyams_form/widget/templates/action-input.pt	Mon Jul 02 08:49:41 2018 +0200
+++ b/src/pyams_form/widget/templates/action-input.pt	Mon Jul 09 13:40:22 2018 +0200
@@ -1,6 +1,6 @@
 <button type="button"
 		class="btn padding-x-5 hint opaque baseline"
-		tal:define="url extension:absolute_url(view.form.context, view.url)"
+		tal:define="url tales:absolute_url(view.form.context, view.url)"
 		tal:attributes="id view/id;
 						title view/title;
 						style view/style;
@@ -26,7 +26,7 @@
 						data-ams-url python:url if view.url else None;
 						data-ams-click-handler view/click_handler;
 						data-toggle python:'modal' if view.modal_target else None;
-						data-ams-data extension:object_data(view);"
+						data-ams-data tales:object_data(view);"
 		data-ams-hint-gravity="s">
 	<i tal:attributes="class view/label_css_class"></i>
 </button>
--- a/src/pyams_form/widget/templates/button-input.pt	Mon Jul 02 08:49:41 2018 +0200
+++ b/src/pyams_form/widget/templates/button-input.pt	Mon Jul 09 13:40:22 2018 +0200
@@ -31,5 +31,5 @@
 						accesskey view/accesskey;
 						onselect view/onselect;
 						data-loading-text string:${value}...;
-						data-ams-data extension:object_data(view);"
+						data-ams-data tales:object_data(view);"
 		tal:content="value"></button>
--- a/src/pyams_form/widget/templates/close-input.pt	Mon Jul 02 08:49:41 2018 +0200
+++ b/src/pyams_form/widget/templates/close-input.pt	Mon Jul 09 13:40:22 2018 +0200
@@ -30,6 +30,6 @@
 						alt view/alt;
 						accesskey view/accesskey;
 						onselect view/onselect;
-						data-ams-data extension:object_data(view);"
+						data-ams-data tales:object_data(view);"
 		data-dismiss="modal"
 		tal:content="value"></button>
--- a/src/pyams_form/widget/templates/orderedselect-input.pt	Mon Jul 02 08:49:41 2018 +0200
+++ b/src/pyams_form/widget/templates/orderedselect-input.pt	Mon Jul 09 13:40:22 2018 +0200
@@ -32,7 +32,7 @@
 								onchange view/onchange;
 								multiple view/multiple;
 								size view/size;
-								data-ams-data extension:object_data(view);">
+								data-ams-data tales:object_data(view);">
 			<option tal:repeat="entry view/selectedItems"
 					tal:attributes="value entry/value;
 									selected python:entry['value'] in view.value;"
--- a/src/pyams_form/widget/templates/password-display.pt	Mon Jul 02 08:49:41 2018 +0200
+++ b/src/pyams_form/widget/templates/password-display.pt	Mon Jul 09 13:40:22 2018 +0200
@@ -18,5 +18,5 @@
 						   onkeydown view/onkeydown;
 						   onkeyup view/onkeyup;
 						   value view/value;
-						   data-ams-data extension:object_data(view);" />
+						   data-ams-data tales:object_data(view);" />
 </html>
--- a/src/pyams_form/widget/templates/password-input.pt	Mon Jul 02 08:49:41 2018 +0200
+++ b/src/pyams_form/widget/templates/password-input.pt	Mon Jul 09 13:40:22 2018 +0200
@@ -34,5 +34,5 @@
 						   maxlength view/maxlength;
 						   placeholder view/placeholder;
 						   autocapitalize view/autocapitalize;
-						   data-ams-data extension:object_data(view);" />
+						   data-ams-data tales:object_data(view);" />
 </html>
--- a/src/pyams_form/widget/templates/radio-input.pt	Mon Jul 02 08:49:41 2018 +0200
+++ b/src/pyams_form/widget/templates/radio-input.pt	Mon Jul 09 13:40:22 2018 +0200
@@ -30,7 +30,7 @@
 								accesskey view/accesskey;
 								onselect view/onselect;
 								checked python: checked and 'checked' or None;
-								data-ams-data extension:object_data(view);" />
+								data-ams-data tales:object_data(view);" />
 		<i></i><span tal:replace="item/label" i18n:translate="">Label</span>
 	</label>
 </div>
--- a/src/pyams_form/widget/templates/reset-input.pt	Mon Jul 02 08:49:41 2018 +0200
+++ b/src/pyams_form/widget/templates/reset-input.pt	Mon Jul 09 13:40:22 2018 +0200
@@ -30,5 +30,5 @@
 						alt view/alt;
 						accesskey view/accesskey;
 						onselect view/onselect;
-						data-ams-data extension:object_data(view);"
+						data-ams-data tales:object_data(view);"
 		tal:content="value"></button>
--- a/src/pyams_form/widget/templates/select-input.pt	Mon Jul 02 08:49:41 2018 +0200
+++ b/src/pyams_form/widget/templates/select-input.pt	Mon Jul 09 13:40:22 2018 +0200
@@ -32,7 +32,7 @@
 								onchange view/onchange;
 								multiple view/multiple;
 								size view/size;
-								data-ams-data extension:object_data(view);'>
+								data-ams-data tales:object_data(view);'>
 			<option tal:repeat="entry view/items"
 					tal:attributes="value entry/value;
 									selected python:entry['value'] in view.value;"
--- a/src/pyams_form/widget/templates/submit-input.pt	Mon Jul 02 08:49:41 2018 +0200
+++ b/src/pyams_form/widget/templates/submit-input.pt	Mon Jul 09 13:40:22 2018 +0200
@@ -31,5 +31,5 @@
 						accesskey view/accesskey;
 						onselect view/onselect;
 						data-loading-text string:${value}...;
-						data-ams-data extension:object_data(view);"
+						data-ams-data tales:object_data(view);"
 		tal:content="value"></button>
--- a/src/pyams_form/widget/templates/text-input.pt	Mon Jul 02 08:49:41 2018 +0200
+++ b/src/pyams_form/widget/templates/text-input.pt	Mon Jul 09 13:40:22 2018 +0200
@@ -34,5 +34,5 @@
 							maxlength view/maxlength;
 							placeholder view/placeholder;
 							autocapitalize view/autocapitalize;
-							data-ams-data extension:object_data(view);" />
+							data-ams-data tales:object_data(view);" />
 </html>