12547.2.2
by Ian Booth
Add some tests |
1 |
<span tal:define="items view/items|nothing" |
2 |
tal:attributes="id view/content_box_id"> |
|
12547.1.1
by Ian Booth
Add inline multicheckbox widget - first cut |
3 |
<tal:label-open-tag replace="structure view/label_open_tag"/> |
4 |
<span tal:replace="structure view/label"/> |
|
12547.2.14
by Ian Booth
Add lazrjs doc test |
5 |
<tal:has_choices condition="python:view.has_choices and view.can_write"> |
12547.2.13
by Ian Booth
Improve template |
6 |
<button tal:attributes="id string:${view/content_box_id}-btn" |
7 |
class="lazr-btn yui3-activator-act yui3-activator-hidden"> |
|
12547.2.9
by Ian Booth
More tests |
8 |
Edit |
9 |
</button>
|
|
10 |
</tal:has_choices>
|
|
12547.2.5
by Ian Booth
Add no script editing |
11 |
<noscript tal:condition="view/can_write"> |
12 |
<a tal:attributes="href view/edit_url; |
|
13 |
title view/edit_title"
|
|
14 |
class="sprite edit"></a> |
|
15 |
</noscript>
|
|
12547.1.1
by Ian Booth
Add inline multicheckbox widget - first cut |
16 |
<tal:label-close-tag replace="structure view/label_close_tag"/> |
17 |
<span class="yui3-activator-data-box"> |
|
18 |
<tal:items-open-tag replace="structure view/items_open_tag"/> |
|
19 |
<span tal:condition="not:items" tal:content="structure view/empty_display_value"/> |
|
20 |
<ul tal:condition="items"> |
|
21 |
<li tal:condition="view/linkify_items" |
|
22 |
tal:repeat="item items" |
|
12547.2.10
by Ian Booth
Lint |
23 |
tal:content="structure item/fmt:link"/> |
12547.1.1
by Ian Booth
Add inline multicheckbox widget - first cut |
24 |
<li tal:condition="not:view/linkify_items" |
25 |
tal:repeat="item items" |
|
12792.1.1
by Ian Booth
Minor tweak to template to close security hole |
26 |
tal:content="item/displayname"/> |
12547.1.1
by Ian Booth
Add inline multicheckbox widget - first cut |
27 |
</ul>
|
28 |
<tal:items-close-tag replace="structure view/items_close_tag"/> |
|
29 |
</span>
|
|
30 |
<div class="yui3-activator-message-box yui3-activator-hidden"/> |
|
12547.2.2
by Ian Booth
Add some tests |
31 |
</span>
|
12547.1.1
by Ian Booth
Add inline multicheckbox widget - first cut |
32 |
<script tal:condition="view/can_write" |
12915.4.1
by Deryck Hodge
Remove structure from tal building inline multicheckbox widget. |
33 |
tal:content="string: |
12547.1.1
by Ian Booth
Add inline multicheckbox widget - first cut |
34 |
LPS.use('lp.app.multicheckbox', function(Y) {
|
35 |
if (Y.UA.ie) {
|
|
36 |
return;
|
|
37 |
}
|
|
38 |
||
39 |
Y.on('load', function(e) {
|
|
40 |
Y.lp.app.multicheckbox.addMultiCheckboxPatcher(
|
|
41 |
${view/json_items}, |
|
42 |
${view/json_description}, |
|
43 |
${view/json_resource_uri}, |
|
44 |
${view/json_attribute}, |
|
45 |
${view/json_attribute_type}, |
|
46 |
${view/json_content_box_id}, |
|
47 |
${view/json_config}); |
|
48 |
}, window);
|
|
49 |
});
|
|
50 |
"/> |