Updated template properties edit form template
authorThierry Florac <thierry.florac@onf.fr>
Fri, 28 Sep 2018 09:24:42 +0200
changeset 199 09aaa72ce3bc
parent 198 3e934db06959
child 200 b2bb69f30e67
Updated template properties edit form template
src/pyams_portal/zmi/templates/template-properties.pt
--- a/src/pyams_portal/zmi/templates/template-properties.pt	Wed Sep 26 18:35:37 2018 +0200
+++ b/src/pyams_portal/zmi/templates/template-properties.pt	Fri Sep 28 09:24:42 2018 +0200
@@ -55,7 +55,7 @@
 								   value="shared"
 								   id="shared_template_mode"
 								   name="template_mode"
-								   checked="${'checked' if content.use_shared_template else None}" />
+								   checked="${'checked' if not content.inherit_parent and content.use_shared_template else None}" />
 							<i></i><span i18n:translate="">Use shared template</span>
 						</label>
 					</div>
@@ -75,7 +75,7 @@
 								   value="local"
 								   id="local_template_mode"
 								   name="template_mode"
-								   checked="${'checked' if content.use_local_template else None}" />
+								   checked="${'checked' if not content.inherit_parent and content.use_local_template else None}" />
 							<i></i><span i18n:translate="">Use custom local template</span>
 						</label>
 					</div>