aboutsummaryrefslogtreecommitdiffstats
path: root/root/html/pages/distrib/index.tt
blob: 5ce85ea0921b20e73d6ac45fbd938179feb1e624 (plain)
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
<!-- $Id$ -->

<form id="distform" action="[% c.uri_for() %]">
[% SET versions = c.model('Mirrors').version_list.keys.sort %]
[% SET selver = c.req.param('version') %]
[% DEFAULT selver = versions.-1 %]
[% FOREACH ver = versions %]
[% IF loop.first %]
<select name="version">
[% END %]
<option value="[% ver | html %]"[% ' selected' IF ver == selver %]>[% ver | html %]</option>
[% IF loop.last %]
</select>
[% END %]
[% END %]

[% SET archs = c.model('Mirrors').arch_list.keys.sort %]
[% SET selarch = c.req.param('arch') %]
[% DEFAULT selarch = archs.-1 %]
[% FOREACH arch = archs %]
[% IF loop.first %]
<select name="arch">
[% END %]
<option value="[% arch | html %]"[% ' selected' IF arch == selarch %]>[% arch | html %]</option>
[% IF loop.last %]
</select>
[% END %]
[% END %]

<input type="submit">
</form>
[% c.prototype.observe_form( 'distform', {
    url    => c.uri_for('list'),
    update => 'distlist',
    frequency => 1,
} ) %]

<div id="distlist">
[% INCLUDE 'distrib/distrib.tt' %]
</div>