source: trunk/templates/preferences.tt @ 1236

Last change on this file since 1236 was 1236, checked in by Dominic Hargreaves, 13 years ago

Add an admin navbar, to be displayed if the user requests (fixes #261)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.5 KB
Line 
1[% INCLUDE header.tt page_title = "Set username/preferences" %]
2[% INCLUDE banner.tt %]
3<div id="content">
4[% INCLUDE navbar.tt %]
5<div id="maincontent">
6[% IF show_form %]
7
8  <form action="preferences.cgi" method="post">
9    <h1>Username</h1>
10    <p><label for="username">How you wish to be identified in Recent Changes:</label></p>
11    <input type="text" size="20" id="username" name="username" value="[% prefs.username %]" />
12
13    <h1>Preferences</h1>
14
15    <p>
16    [% IF prefs.preview_above_edit_box %]
17      <input type="checkbox" id="preview_above" name="preview_above_edit_box" value="1" checked />
18    [% ELSE %]
19      <input type="checkbox" id="preview_above" name="preview_above_edit_box" value="1" />
20    [% END %]
21    <label for="preview_above">Put the preview above the edit area when previewing a page edit.</label>
22    </p>
23
24    <p>
25    [% IF prefs.include_geocache_link %]
26      <input type="checkbox" id="geocache" name="include_geocache_link" value="1" checked />
27    [% ELSE %]
28      <input type="checkbox" id="geocache" name="include_geocache_link" value="1" />
29    [% END %]
30    <label for="geocache">Include &#8220;Look for nearby geocaches&#8221; link in navbar.</label>
31    </p>
32
33    <p>
34    [% IF prefs.latlong_traditional %]
35      <input type="checkbox" id="latlong" name="latlong_traditional" value="1" checked />
36    [% ELSE %]
37      <input type="checkbox" id="latlong" name="latlong_traditional" value="1" />
38    [% END %]
39    <label for="latlong">Display latitude and longitude as degrees and minutes instead of decimal.</label>
40    </p>
41
42    <p>
43    [% IF prefs.omit_help_links %]
44      <input type="checkbox" id="omit_help" name="omit_help_links" value="1" checked />
45    [% ELSE %]
46      <input type="checkbox" id="omit_help" name="omit_help_links" value="1" />
47    [% END %]
48    <label for="omit_help">Omit help links from navbar.</label>
49    </p>
50
51    <p>
52    [% IF prefs.show_minor_edits_in_rc %]
53      <input type="checkbox" id="show_minor" name="show_minor_edits_in_rc" value="1" checked />
54    [% ELSE %]
55      <input type="checkbox" id="show_minor" name="show_minor_edits_in_rc" value="1" />
56    [% END %]
57    <label for="show_minor">Include &#8220;minor edits&#8221; in Recent Changes.</label>
58    </p>
59
60    <p>
61    [% IF prefs.is_admin %]
62      <input type="checkbox" id="is_admin" name="is_admin" value="1" checked />
63    [% ELSE %]
64      <input type="checkbox" id="is_admin" name="is_admin" value="1" />
65    [% END %]
66    <label for="show_minor">Show admin related links</label>
67    </p>
68
69    <p>
70      [% IF prefs.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 AND config.show_gmap_in_node_display %]
79      <p>
80        [% IF prefs.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" id="default_edit_type">
92        [% IF prefs.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" id="cookie_expires">
105        [% IF prefs.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 prefs.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;[% prefs.username %]&#8221;.</p>
130
131  <p>Preview area shown
132    [% IF prefs.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 prefs.include_geocache_link %] not [% END %]
141  included in navbar.</p>
142
143  <p>Latitude and longitude displayed as
144    [% IF prefs.latlong_traditional %]
145      degrees and minutes.
146    [% ELSE %]
147      decimal.
148    [% END %]
149  </p>
150
151  <p>Help links will
152    [% IF prefs.omit_help_links %] not [% END %]
153    be included in navbar.
154  </p>
155
156  <p>Admin links will
157    [% UNLESS prefs.is_admin %] not [% END %]
158    be included in navbar.
159  </p>
160  <p>Minor edits
161    [% UNLESS show_minor_edits_in_rc %] not [% END %]
162  included in Recent Changes.</p>
163
164  <p>Your visits to Recent Changes will
165    [% UNLESS prefs.track_recent_changes_views %] not [% END %]
166  be tracked.</p>
167
168  [% IF prefs.gmaps_api_key AND config.show_gmap_in_node_display %]
169    <p>Google Maps will
170      [% UNLESS display_google_maps %] not [% END %]
171    be displayed.</p>
172  [% END %]
173
174  <p>Default edit type set to
175    [% IF prefs.default_edit_type == 'normal' %]
176      &#8220;Normal edit&#8221;.
177    [% ELSE %]
178      &#8220;Minor tidying&#8221;.
179    [% END %]
180  </p>
181
182  <p>Your preferences will
183    [% IF prefs.cookie_expires == 'never' %]
184      never expire.
185    [% ELSIF prefs.cookie_expires == 'year' %]
186      expire in one year.
187    [% ELSE %]
188      expire in one month.
189    [% END %]
190  </p>
191
192<ul>
193  <li><a href="[% full_cgi_url %]">Return to [% site_name %]</a></li>
194  <li><a href="preferences.cgi">Change preferences</a></li>
195</ul>
196
197[% END %]
198</div>
199[% INCLUDE footer.tt %]
Note: See TracBrowser for help on using the repository browser.