Updated template
authorThierry Florac <tflorac@ulthar.net>
Wed, 24 Oct 2018 10:12:39 +0200
changeset 1036 ab9733fa4c4e
parent 1035 857fdb137d14
child 1037 5a697cde9826
Updated template
src/pyams_content/reference/pictograms/zmi/templates/manager-selection.pt
--- a/src/pyams_content/reference/pictograms/zmi/templates/manager-selection.pt	Wed Oct 24 10:05:35 2018 +0200
+++ b/src/pyams_content/reference/pictograms/zmi/templates/manager-selection.pt	Wed Oct 24 10:12:39 2018 +0200
@@ -1,8 +1,8 @@
 <div class="pictograms-manager" i18n:domain="pyams_content"
 	 data-ams-plugins="pyams_content"
 	 data-ams-plugin-pyams_content-async="false"
-	 tal:attributes="data-ams-plugin-pyams_content-src tales:resource_path('pyams_content.skin:pyams_content');
-					 data-ams-plugin-pyams_content-css tales:resource_path('pyams_content.skin:pyams_content_css');">
+	 data-ams-plugin-pyams_content-src="${tales:resource_path('pyams_content.skin:pyams_content')}"
+	 data-ams-plugin-pyams_content-css="${tales:resource_path('pyams_content.skin:pyams_content_css')}">
 	<fieldset class="bordered margin-x-20 col-md-5">
 		<legend class="inner" i18n:translate="">Available pictograms</legend>
 		<div class="droppable sortable height-min-100 pictograms available-pictograms viewport-y viewport-500"
@@ -12,10 +12,10 @@
 				 data-ams-events-handlers='{"dblclick": "PyAMS_content.pictograms.switchPictogram"}'
 				 tal:repeat="pictogram view.available_pictograms">
 				<input type="hidden" name="form.widgets.selected_pictograms:list"
-					   tal:attributes="value pictogram.__name__" />
+					   value="${pictogram.__name__}" />
 				<div class="pull-right margin-right-5">
 					<a data-toggle="modal"
-					   tal:attributes="data-ams-url tales:absolute_url(pictogram, 'properties.html')">
+					   data-ams-url="${tales:absolute_url(pictogram, 'properties.html')}">
 						<i class="fa fa-fw fa-search hint opaque baseline"
 						   data-ams-hint-gravity="se" data-ams-hint-offset="3"
 						   title="Display pictogram properties" i18n:attributes="title"></i>
@@ -23,10 +23,11 @@
 				</div>
 				<div class="width-50 text-center pull-left margin-right-10">
 					<tal:var define="img i18n:pictogram.image"
-							 condition="img"
-							 content="structure tales:thumbnail(img, 48, 48)" />
+							 condition="img">
+						${structure:tales:thumbnail(img, 48, 48)}
+					</tal:var>
 				</div>
-				<span tal:content="i18n:pictogram.title">Title</span>
+				<span>${i18n:pictogram.title}</span>
 			</div>
 		</div>
 	</fieldset>
@@ -39,10 +40,10 @@
 				 data-ams-events-handlers='{"dblclick": "PyAMS_content.pictograms.switchPictogram"}'
 				 tal:repeat="pictogram view.selected_pictograms">
 				<input type="hidden" name="form.widgets.selected_pictograms:list"
-					   tal:attributes="value pictogram.__name__" />
+					   value="${pictogram.__name__}" />
 				<div class="pull-right margin-right-5">
 					<a data-toggle="modal"
-					   tal:attributes="data-ams-url tales:absolute_url(pictogram, 'properties.html')">
+					   data-ams-url="${tales:absolute_url(pictogram, 'properties.html')}">
 						<i class="fa fa-fw fa-search hint opaque baseline"
 						   data-ams-hint-gravity="se" data-ams-hint-offset="3"
 						   title="Display pictogram properties" i18n:attributes="title"></i>
@@ -50,10 +51,11 @@
 				</div>
 				<div class="width-50 text-center pull-left margin-right-10">
 					<tal:var define="img i18n:pictogram.image"
-							 condition="img"
-							 content="structure tales:thumbnail(img, 48, 48)" />
+							 condition="img">
+						${structure:tales:thumbnail(img, 48, 48)}
+					</tal:var>
 				</div>
-				<span tal:content="i18n:pictogram.title">Title</span>
+				<span>${i18n:pictogram.title}</span>
 			</div>
 		</div>
 	</fieldset>