/
edit_markers.pt
82 lines (69 loc) · 2.92 KB
/
edit_markers.pt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<html metal:use-macro="context/@@standard_macros/page">
<body>
<metal:slot metal:fill-slot="body">
<metal:macro metal:define-macro="heading">
<h1 i18n:translate="heading_edit_marker">Assign Marker Interfaces</h1>
</metal:macro>
<metal:macro metal:define-macro="main">
<p class="form-help formHelp" i18n:translate="">
Change the behavior of this object by adding or removing marker
interfaces. You can choose one or more interfaces to be added to the
list of provided interfaces for this object.
</p>
<p class="form-help formHelp" i18n:translate="">
A marker interface is used to identify an instance of a piece of
content. This allows you to enable and disable views based on marker
interfaces for example.
</p>
<form action="." method="post"
tal:attributes="action request/ACTUAL_URL">
<h3 i18n:translate="legend_provided">Provided interfaces</h3>
<table class="table table-striped table-hover table-sm">
<tr tal:repeat="interface view/getInterfaceNames">
<td class="zmi-object-check text-right"> </td>
<td class="zmi-object-id"
tal:content="interface/name">Interface Name</td>
</tr>
<tr tal:repeat="interface view/getDirectlyProvidedNames">
<td class="zmi-object-check text-right">
<input type="checkbox" id="INTERFACE" name="remove:list"
tal:attributes="id interface/name;
value interface/name"/>
</td>
<td class="zmi-object-id"
tal:content="interface/name">Interface Name</td>
</tr>
<tr tal:condition="view/getDirectlyProvidedNames">
<td class="zmi-object-check text-right"> </td>
<td class="zmi-controls">
<input class="btn btn-primary" type="submit" name="SAVE"
value="Remove" i18n:attributes="value"/>
</td>
</tr>
</table>
<h3 i18n:translate="legend_available_marker">
Available Marker Interfaces
</h3>
<table class="table table-striped table-hover table-sm">
<tr tal:repeat="interface view/getAvailableInterfaceNames">
<td class="zmi-object-check text-right">
<input type="checkbox" id="INTERFACE" name="add:list"
tal:attributes="id interface/name;
value interface/name"/>
</td>
<td class="zmi-object-id"
tal:content="interface/name">Interface Name</td>
</tr>
<tr tal:condition="view/getAvailableInterfaceNames">
<td class="zmi-object-check text-right"> </td>
<td class="zmi-controls">
<input class="btn btn-primary" type="submit" name="SAVE"
value="Add" i18n:attributes="value"/>
</td>
</tr>
</table>
</form>
</metal:macro>
</metal:slot>
</body>
</html>