source: trunk/templates/preferences.tt @ 644

Last change on this file since 644 was 617, checked in by Dominic Hargreaves, 17 years ago

New css id maincontent, and misc template bugfixes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.6 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html lang="[% language %]">
3<head>
4  <title>[% site_name %] - Set username/preferences</title>
5  [% IF stylesheet %]
6    <link rel="stylesheet" href="[% stylesheet %]" type="text/css">
7  [% END %]
8</head>
9
10<body>
11[% INCLUDE banner.tt %]
12<div id="content">
13[% INCLUDE navbar.tt %]
14<div id="maincontent">
15[% IF show_form %]
16
17  <form action="preferences.cgi" method="post">
18    <h1>Username</h1>
19    <p><label for="username">How you wish to be identified in Recent Changes:</label></p>
20    <input type="text" size="20" id="username" name="username" value="[% username %]" />
21
22    <h1>Preferences</h1>
23
24    <p>
25    [% IF preview_above_edit_box %]
26      <input type="checkbox" id="preview_above" name="preview_above_edit_box" value="1" checked />
27    [% ELSE %]
28      <input type="checkbox" id="preview_above" name="preview_above_edit_box" value="1" />
29    [% END %]
30    <label for="preview_above">Put the preview above the edit area when previewing a page edit.</label>
31    </p>
32
33    <p>
34    [% IF include_geocache_link %]
35      <input type="checkbox" id="geocache" name="include_geocache_link" value="1" checked />
36    [% ELSE %]
37      <input type="checkbox" id="geocache" name="include_geocache_link" value="1" />
38    [% END %]
39    <label for="geocache">Include &#8220;Look for nearby geocaches&#8221; link in navbar.</label>
40    </p>
41
42    <p>
43    [% IF latlong_traditional %]
44      <input type="checkbox" id="latlong" name="latlong_traditional" value="1" checked />
45    [% ELSE %]
46      <input type="checkbox" id="latlong" name="latlong_traditional" value="1" />
47    [% END %]
48    <label for="latlong">Display latitude and longitude as degrees and minutes instead of decimal.</label>
49    </p>
50
51    <p>
52    [% IF omit_help_links %]
53      <input type="checkbox" id="omit_help" name="omit_help_links" value="1" checked />
54    [% ELSE %]
55      <input type="checkbox" id="omit_help" name="omit_help_links" value="1" />
56    [% END %]
57    <label for="omit_help">Omit help links from navbar.</label>
58    </p>
59
60    <p>
61    [% IF show_minor_edits_in_rc %]
62      <input type="checkbox" id="show_minor" name="show_minor_edits_in_rc" value="1" checked />
63    [% ELSE %]
64      <input type="checkbox" id="show_minor" name="show_minor_edits_in_rc" value="1" />
65    [% END %]
66    <label for="show_minor">Include &#8220;minor edits&#8221; in Recent Changes.</label>
67    </p>
68
69    <p>
70      [% IF track_recent_changes_views %]
71        <input type="checkbox" id="track_recent_changes_views" name="track_recent_changes_views" value="1" checked="1" />
72      [% ELSE %]
73        <input type="checkbox" id="track_recent_changes_views" name="track_recent_changes_views" value="1" />
74      [% END %]
75      <label for="track_recent_changes_views">Track my visits to Recent Changes and offer me a link for &#8220;changes since I last viewed Recent Changes&#8221;.</label>
76    </p>
77
78    <p>
79      <label for="default_edit_type">Default edit type:</label>
80      <select name="default_edit_type">
81        [% IF default_edit_type == 'normal' %]
82          <option value="normal" selected="1">Normal edit</option>
83          <option value="tidying">Minor tidying</option>
84        [% ELSE %]
85          <option value="normal">Normal edit</option>
86          <option value="tidying" selected="1">Minor tidying</option>
87        [% END %]
88      </select>
89    </p>
90
91    <p>
92      <label for="cookie_expires">Preferences expire:</label>
93      <select name="cookie_expires">
94        [% IF cookie_expires == 'never' %]
95          <option value="month">in one month</option>
96          <option value="year">in one year</option>
97          <option value="never" selected="1">never</option>
98        [% ELSIF cookie_expires == "year" %]
99          <option value="month">in one month</option>
100          <option value="year" selected="1">in one year</option>
101          <option value="never">never</option>
102        [% ELSE %]
103          <option value="month" selected="1">in one month</option>
104          <option value="year">in one year</option>
105          <option value="never">never</option>
106        [% END %]
107      </select>
108    </p>
109
110    <input type="submit" value="Set it" class="form_button" />
111    <input type="hidden" name="action" value="set_preferences">
112  </form>
113
114[% ELSE %]
115
116  <h1>Username/preferences saved</h1>
117
118  <p>Username set to &#8220;[% username %]&#8221;.</p>
119
120  <p>Preview area shown
121    [% IF preview_above_edit_box %]
122      above
123    [% ELSE %]
124      below
125    [% END %]
126  edit box.</p>
127
128  <p>&#8220;Look for nearby geocaches&#8221; link
129    [% UNLESS include_geocache_link %] not [% END %]
130  included in navbar.</p>
131
132  <p>Latitude and longitude displayed as
133    [% IF latlong_traditional %]
134      degrees and minutes.
135    [% ELSE %]
136      decimal.
137    [% END %]
138  </p>
139
140  <p>Help links will
141    [% IF omit_help_links %] not [% END %]
142    be included in navbar.
143  </p>
144
145  <p>Minor edits
146    [% UNLESS show_minor_edits_in_rc %] not [% END %]
147  included in Recent Changes.</p>
148
149  <p>Your visits to Recent Changes will
150    [% UNLESS track_recent_changes_views %] not [% END %]
151  be tracked.</p>
152
153  <p>Default edit type set to
154    [% IF default_edit_type == 'normal' %]
155      &#8220;Normal edit&#8221;.
156    [% ELSE %]
157      &#8220;Minor tidying&#8221;.
158    [% END %]
159  </p>
160
161  <p>Your preferences will
162    [% IF cookie_expires == 'never' %]
163      never expire.
164    [% ELSIF cookie_expires == 'year' %]
165      expire in one year.
166    [% ELSE %]
167      expire in one month.
168    [% END %]
169  </p>
170
171<ul>
172  <li><a href="[% full_cgi_url %]">Return to [% site_name %]</a></li>
173  <li><a href="preferences.cgi">Change preferences</a></li>
174</ul>
175
176[% END %]
177</div>
178[% INCLUDE footer.tt %]
Note: See TracBrowser for help on using the repository browser.