Template cleanup
authorThierry Florac <thierry.florac@onf.fr>
Tue, 26 Mar 2019 12:32:36 +0100
changeset 257 0bb9ccd96e14
parent 256 2f4c74301117
child 258 f2d84b373203
Template cleanup
src/pyams_portal/zmi/templates/renderer-input.pt
--- a/src/pyams_portal/zmi/templates/renderer-input.pt	Tue Mar 26 12:32:18 2019 +0100
+++ b/src/pyams_portal/zmi/templates/renderer-input.pt	Tue Mar 26 12:32:36 2019 +0100
@@ -1,12 +1,12 @@
 <label class="input bordered with-icon" i18n:domain="pyams_portal">
 	<tal:var define="render view/show_renderer_properties">
-		<i class="icon-append fa fa-fw fa-pencil-square-o text-primary inverted hint align-base opaque"
+		<i tal:condition="render"
+			class="icon-append fa fa-fw fa-pencil-square-o text-primary inverted hint align-base opaque"
 			title="Edit renderer properties" i18n:attributes="title"
 			data-ams-hint-gravity="se" data-toggle="modal"
-			tal:condition="render"
-			tal:attributes="data-ams-url tales:absolute_url(context, 'renderer-properties.html');"></i>
-		<i class="icon-append fa fa-fw fa-pencil-square-o opacity-25"
-			tal:condition="not:render"></i>
+			data-ams-url="${tales:absolute_url(context, 'renderer-properties.html')}"></i>
+		<i tal:condition="not:render"
+			class="icon-append fa fa-fw fa-pencil-square-o opacity-25"></i>
 	</tal:var>
 	<div class="select2-parent">
 		<select class="select2"