source: trunk/templates/preferences.tt @ 811

Last change on this file since 811 was 730, checked in by Dominic Hargreaves, 16 years ago

Add initial google maps support, see #46 but this isn't yet a complete
implementation so leaving the bug open for now.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.1 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    [% IF gmaps_api_key %]
79      <p>
80        [% IF display_google_maps %]
81          <input type="checkbox" id="display_google_maps" name="display_google_maps" value="1" checked="1" />
82        [% ELSE %]
83          <input type="checkbox" id="display_google_maps" name="display_google_maps" value="1" />
84        [% END %]
85        <label for="display_google_maps">Display Google Maps.</label>
86      </p>
87    [% END %]
88
89    <p>
90      <label for="default_edit_type">Default edit type:</label>
91      <select name="default_edit_type">
92        [% IF default_edit_type == 'normal' %]
93          <option value="normal" selected="1">Normal edit</option>
94          <option value="tidying">Minor tidying</option>
95        [% ELSE %]
96          <option value="normal">Normal edit</option>
97          <option value="tidying" selected="1">Minor tidying</option>
98        [% END %]
99      </select>
100    </p>
101
102    <p>
103      <label for="cookie_expires">Preferences expire:</label>
104      <select name="cookie_expires">
105        [% IF cookie_expires == 'never' %]
106          <option value="month">in one month</option>
107          <option value="year">in one year</option>
108          <option value="never" selected="1">never</option>
109        [% ELSIF cookie_expires == "year" %]
110          <option value="month">in one month</option>
111          <option value="year" selected="1">in one year</option>
112          <option value="never">never</option>
113        [% ELSE %]
114          <option value="month" selected="1">in one month</option>
115          <option value="year">in one year</option>
116          <option value="never">never</option>
117        [% END %]
118      </select>
119    </p>
120
121    <input type="submit" value="Set it" class="form_button" />
122    <input type="hidden" name="action" value="set_preferences">
123  </form>
124
125[% ELSE %]
126
127  <h1>Username/preferences saved</h1>
128
129  <p>Username set to &#8220;[% username %]&#8221;.</p>
130
131  <p>Preview area shown
132    [% IF preview_above_edit_box %]
133      above
134    [% ELSE %]
135      below
136    [% END %]
137  edit box.</p>
138
139  <p>&#8220;Look for nearby geocaches&#8221; link
140    [% UNLESS include_geocache_link %] not [% END %]
141  included in navbar.</p>
142
143  <p>Latitude and longitude displayed as
144    [% IF latlong_traditional %]
145      degrees and minutes.
146    [% ELSE %]
147      decimal.
148    [% END %]
149  </p>
150
151  <p>Help links will
152    [% IF omit_help_links %] not [% END %]
153    be included in navbar.
154  </p>
155
156  <p>Minor edits
157    [% UNLESS show_minor_edits_in_rc %] not [% END %]
158  included in Recent Changes.</p>
159
160  <p>Your visits to Recent Changes will
161    [% UNLESS track_recent_changes_views %] not [% END %]
162  be tracked.</p>
163
164  [% IF gmaps_api_key %]
165    <p>Google Maps will
166      [% UNLESS display_google_maps %] not [% END %]
167    be displayed.</p>
168  [% END %]
169
170  <p>Default edit type set to
171    [% IF default_edit_type == 'normal' %]
172      &#8220;Normal edit&#8221;.
173    [% ELSE %]
174      &#8220;Minor tidying&#8221;.
175    [% END %]
176  </p>
177
178  <p>Your preferences will
179    [% IF cookie_expires == 'never' %]
180      never expire.
181    [% ELSIF cookie_expires == 'year' %]
182      expire in one year.
183    [% ELSE %]
184      expire in one month.
185    [% END %]
186  </p>
187
188<ul>
189  <li><a href="[% full_cgi_url %]">Return to [% site_name %]</a></li>
190  <li><a href="preferences.cgi">Change preferences</a></li>
191</ul>
192
193[% END %]
194</div>
195[% INCLUDE footer.tt %]
Note: See TracBrowser for help on using the repository browser.