1- <html xmlns =" http://www.w3.org/1999/xhtml" xmlns : i18n =" http://xml.zope.org/namespaces/i18n"
2- xmlns : metal =" http://xml.zope.org/namespaces/metal" xmlns : tal =" http://xml.zope.org/namespaces/tal"
3- metal : use-macro =" context/main_template/macros/master" i18n : domain =" cs_dynamicpages" >
1+ <html xmlns =" http://www.w3.org/1999/xhtml"
2+ xmlns : i18n =" http://xml.zope.org/namespaces/i18n"
3+ xmlns : metal =" http://xml.zope.org/namespaces/metal"
4+ xmlns : tal =" http://xml.zope.org/namespaces/tal"
5+ metal : use-macro =" context/main_template/macros/master"
6+ i18n : domain =" cs_dynamicpages"
7+ >
48
5- <body >
9+ <body >
610
7- <metal : custom_title fill-slot =" content-title" >
8- <h1 i18n : translate =" " >
11+ <metal : custom_title fill-slot =" content-title" >
12+ <h1 i18n : translate =" " >
913 Dynamic Pages Templates management
10- </h1 >
11- </metal : custom_title >
14+ </h1 >
15+ </metal : custom_title >
1216
13- <metal : custom_description fill-slot =" content-description" >
17+ <metal : custom_description fill-slot =" content-description" >
1418
15- </metal : custom_description >
19+ </metal : custom_description >
1620
17- <metal : content-core fill-slot =" content-core" >
18- <metal : block define-macro =" content-core" >
21+ <metal : content-core fill-slot =" content-core" >
22+ <metal : block define-macro =" content-core" >
1923
2024
2125
22- <ul class =" list-group" >
23- <li class =" list-group-item d-flex justify-content-between align-items-start"
24- tal : repeat =" template view/available_templates" >
25- <ul >
26- <li ><span i18n : translate =" " >Name</span >:
27- <span tal : replace =" template/name" ></span >
28- </li >
29- <li ><span i18n : translate =" " >Content title</span >:
30- <span tal : replace =" template/Title" ></span >
31- (<span tal : replace =" template/translated_portal_type" ></span >)
32- </li >
33- <li ><a class =" btn btn-outline-primary btn-sm" href =" ${template/absolute_url}" target =" _blank"
34- data-template-name =" ${template/name}" i18n : translate =" " >See template</a ></li >
35- </ul >
26+ <ul class =" list-group" >
27+ <li class =" list-group-item d-flex justify-content-between align-items-start"
28+ tal : repeat =" template view/available_templates"
29+ >
30+ <ul >
31+ <li ><span i18n : translate =" " >Name</span >:
32+ <span tal : replace =" template/name" ></span >
33+ </li >
34+ <li ><span i18n : translate =" " >Content title</span >:
35+ <span tal : replace =" template/Title" ></span >
36+ (<span tal : replace =" template/translated_portal_type" ></span >)
37+ </li >
38+ <li ><a class =" btn btn-outline-primary btn-sm"
39+ href =" ${template/absolute_url}"
40+ target =" _blank"
41+ data-template-name =" ${template/name}"
42+ i18n : translate =" "
43+ >See template</a ></li >
44+ </ul >
3645
37- <a class =" btn btn-sm btn-danger btn-delete-element" href =" #" title =" Delete"
38- data-bs-target =" #deleteElementModal-${repeat/template/number}" data-bs-toggle =" modal"
39- i18n : attributes =" title" >
40- <tal : icon tal : replace =" structure python:icons.tag('trash')" />
41- </a >
42- <div class =" modal fade" id =" deleteElementModal-${repeat/template/number}" aria-hidden =" true"
43- aria-labelledby =" deleteElementModalLabel-${repeat/template/number}" tabindex =" -1" >
44- <div class =" modal-dialog" >
45- <div class =" modal-content" >
46- <div class =" modal-header" >
47- <h2 id =" deleteElementModalLabel-${repeat/template/number}" i18n : translate =" " >
48- Confirm Deletion</h5 >
49- <button class =" btn-close" aria-label =" Close" type =" button" data-bs-dismiss =" modal"
50- i18n : attributes =" aria-label" ></button >
51- </div >
52- <div class =" modal-body" >
53- <p i18n : translate =" " >Are you sure you want to delete this item? This action cannot be undone.</p >
54- </div >
55- <div class =" modal-footer" >
56- <button class =" btn btn-secondary" type =" button" data-bs-dismiss =" modal"
57- i18n : translate =" " >Cancel</button >
58- <button class =" btn btn-danger confirmDeleteElement" type =" button" data-uid =" ${template/uid}"
59- i18n : translate =" " >Delete</button >
46+ <a class =" btn btn-sm btn-danger btn-delete-element"
47+ href =" #"
48+ title =" Delete"
49+ data-bs-target =" #deleteElementModal-${repeat/template/number}"
50+ data-bs-toggle =" modal"
51+ i18n : attributes =" title"
52+ >
53+ <tal : icon tal : replace =" structure python:icons.tag('trash')" />
54+ </a >
55+ <div class =" modal fade"
56+ id =" deleteElementModal-${repeat/template/number}"
57+ aria-hidden =" true"
58+ aria-labelledby =" deleteElementModalLabel-${repeat/template/number}"
59+ tabindex =" -1"
60+ >
61+ <div class =" modal-dialog" >
62+ <div class =" modal-content" >
63+ <div class =" modal-header" >
64+ <h2 id =" deleteElementModalLabel-${repeat/template/number}"
65+ i18n : translate =" "
66+ >
67+ Confirm Deletion
68+ <button class =" btn-close"
69+ aria-label =" Close"
70+ type =" button"
71+ data-bs-dismiss =" modal"
72+ i18n : attributes =" aria-label"
73+ ></button >
74+ </h2 ></div >
75+ <div class =" modal-body" >
76+ <p i18n : translate =" " >Are you sure you want to delete this item? This action cannot be undone.</p >
77+ </div >
78+ <div class =" modal-footer" >
79+ <button class =" btn btn-secondary"
80+ type =" button"
81+ data-bs-dismiss =" modal"
82+ i18n : translate =" "
83+ >Cancel</button >
84+ <button class =" btn btn-danger confirmDeleteElement"
85+ type =" button"
86+ data-uid =" ${template/uid}"
87+ i18n : translate =" "
88+ >Delete</button >
89+ </div >
6090 </div >
6191 </div >
6292 </div >
63- </div >
64- </li >
65- </ul >
66- </metal : block >
67- </metal : content-core >
68- </body >
93+ </li >
94+ </ul >
95+ </metal : block >
96+ </metal : content-core >
97+ </body >
6998
70- </html >
99+ </html >
0 commit comments