Lines 38-67
Link Here
|
38 |
<li> |
38 |
<li> |
39 |
<label>Subscription length:</label> |
39 |
<label>Subscription length:</label> |
40 |
<select name="subtype" id="subtype"> |
40 |
<select name="subtype" id="subtype"> |
41 |
[% FOREACH st IN subtypes %] |
41 |
[% FOREACH st IN ['numberlength', 'weeklength', 'monthlength'] %] |
|
|
42 |
[% IF st == subtype %] |
43 |
<option value="issues" selected="selected"> |
44 |
[% ELSE %] |
45 |
<option value="issues"> |
46 |
[% END %] |
42 |
[% SWITCH st %] |
47 |
[% SWITCH st %] |
43 |
[% CASE 'numberlength'%] |
48 |
[% CASE 'numberlength'%]issues |
44 |
[% IF st == subtype %] |
49 |
[% CASE 'weeklength' %]weeks |
45 |
<option value="issues" selected="selected"> |
50 |
[% CASE 'monthlength' %]months |
46 |
[% ELSE %] |
|
|
47 |
<option value="issues"> |
48 |
[% END %] |
49 |
issues |
50 |
[% CASE 'weeklength' %] |
51 |
[% IF st == subtype %] |
52 |
<option value="weeks" selected="selected"> |
53 |
[% ELSE %] |
54 |
<option value="weeks"> |
55 |
[% END %] |
56 |
weeks |
57 |
[% CASE 'monthlength' %] |
58 |
[% IF st == subtype %] |
59 |
<option value="months" selected="selected"> |
60 |
[% ELSE %] |
61 |
<option value="months"> |
62 |
[% END %] |
63 |
months |
64 |
[% CASE %][% st | html %] |
65 |
[% END %] |
51 |
[% END %] |
66 |
</option> |
52 |
</option> |
67 |
[% END %] |
53 |
[% END %] |