9269.3.1
by Tim Penhey
Start of a generic merge proposal listing. |
1 |
<html
|
2 |
xmlns="http://www.w3.org/1999/xhtml" |
|
3 |
xmlns:tal="http://xml.zope.org/namespaces/tal" |
|
4 |
xmlns:metal="http://xml.zope.org/namespaces/metal" |
|
5 |
xmlns:i18n="http://xml.zope.org/namespaces/i18n" |
|
6 |
metal:use-macro="view/macro:page/main_only" |
|
7 |
i18n:domain="launchpad"> |
|
8 |
||
9 |
<body>
|
|
10 |
||
11 |
<div metal:fill-slot="main"> |
|
12 |
||
9269.3.4
by Tim Penhey
Move the filter form to the generic listing template. |
13 |
<div>
|
14 |
<form method="get" name="filter" id="filter_form" |
|
15 |
style="padding-bottom: 0.5em" |
|
9269.3.5
by Tim Penhey
Fix the javascript. |
16 |
tal:attributes="action view/request/URL"> |
9269.3.4
by Tim Penhey
Move the filter form to the generic listing template. |
17 |
<label for="field.status"> |
18 |
Proposals with status: |
|
19 |
</label>
|
|
9269.3.5
by Tim Penhey
Fix the javascript. |
20 |
<tal:lifecycle-selector replace="structure view/widgets/status"/> |
9269.3.4
by Tim Penhey
Move the filter form to the generic listing template. |
21 |
<noscript>
|
22 |
<input type="submit" value="Filter"/> |
|
23 |
</noscript>
|
|
24 |
</form>
|
|
25 |
<script type="text/javascript"> |
|
26 |
||
7675.351.220
by Guilherme Salgado
Update all templates to use LPS instead of creating their own YUI instance |
27 |
LPS.use('node', function(Y) { |
9269.3.4
by Tim Penhey
Move the filter form to the generic listing template. |
28 |
|
29 |
function submit_filter() { |
|
9778.2.6
by Guilherme Salgado
Replace deprecated Y.get with Y.one on page templates |
30 |
Y.one('#filter_form').submit(); |
9269.3.4
by Tim Penhey
Move the filter form to the generic listing template. |
31 |
} |
32 |
Y.on('domready', function () { |
|
9778.2.6
by Guilherme Salgado
Replace deprecated Y.get with Y.one on page templates |
33 |
var field = Y.one("[id=field.status]"); |
9269.3.4
by Tim Penhey
Move the filter form to the generic listing template. |
34 |
field.on('change', submit_filter); |
35 |
}); |
|
36 |
||
37 |
}); |
|
38 |
||
39 |
</script>
|
|
40 |
</div>
|
|
41 |
||
9269.3.1
by Tim Penhey
Start of a generic merge proposal listing. |
42 |
<tal:has-proposals condition="view/proposal_count"> |
43 |
<div tal:replace="structure view/proposals/@@+listing" /> |
|
44 |
</tal:has-proposals>
|
|
45 |
||
46 |
<p id="no-proposals" |
|
47 |
tal:condition="not: view/proposal_count" |
|
48 |
tal:content="view/no_proposal_message"> |
|
49 |
No reviews |
|
50 |
</p>
|
|
51 |
||
52 |
</div>
|
|
53 |
||
54 |
</body>
|
|
55 |
</html>
|