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
|
<span tal:define="items view/items|nothing"
tal:attributes="id view/content_box_id">
<tal:label-open-tag replace="structure view/label_open_tag"/>
<span tal:replace="structure view/label"/>
<tal:has_choices condition="python:view.has_choices and view.can_write">
<button tal:attributes="id string:${view/content_box_id}-btn"
class="lazr-btn yui3-activator-act yui3-activator-hidden">
Edit
</button>
</tal:has_choices>
<noscript tal:condition="view/can_write">
<a tal:attributes="href view/edit_url;
title view/edit_title"
class="sprite edit"></a>
</noscript>
<tal:label-close-tag replace="structure view/label_close_tag"/>
<span class="yui3-activator-data-box">
<tal:items-open-tag replace="structure view/items_open_tag"/>
<span tal:condition="not:items" tal:content="structure view/empty_display_value"/>
<ul tal:condition="items">
<li tal:condition="view/linkify_items"
tal:repeat="item items"
tal:content="structure item/fmt:link"/>
<li tal:condition="not:view/linkify_items"
tal:repeat="item items"
tal:content="item/displayname"/>
</ul>
<tal:items-close-tag replace="structure view/items_close_tag"/>
</span>
<div class="yui3-activator-message-box yui3-activator-hidden"/>
</span>
<script tal:condition="view/can_write"
tal:content="string:
LPS.use('lp.app.multicheckbox', function(Y) {
if (Y.UA.ie) {
return;
}
Y.on('load', function(e) {
Y.lp.app.multicheckbox.addMultiCheckboxPatcher(
${view/json_items},
${view/json_description},
${view/json_resource_uri},
${view/json_attribute},
${view/json_attribute_type},
${view/json_content_box_id},
${view/json_config});
}, window);
});
"/>
|