| 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="[% username %]" /> |
|---|
| 12 | |
|---|
| 13 | <h1>Preferences</h1> |
|---|
| 14 | |
|---|
| 15 | <p> |
|---|
| 16 | [% IF 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 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 “Look for nearby geocaches” link in navbar.</label> |
|---|
| 31 | </p> |
|---|
| 32 | |
|---|
| 33 | <p> |
|---|
| 34 | [% IF 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 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 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 “minor edits” in Recent Changes.</label> |
|---|
| 58 | </p> |
|---|
| 59 | |
|---|
| 60 | <p> |
|---|
| 61 | [% IF track_recent_changes_views %] |
|---|
| 62 | <input type="checkbox" id="track_recent_changes_views" name="track_recent_changes_views" value="1" checked="1" /> |
|---|
| 63 | [% ELSE %] |
|---|
| 64 | <input type="checkbox" id="track_recent_changes_views" name="track_recent_changes_views" value="1" /> |
|---|
| 65 | [% END %] |
|---|
| 66 | <label for="track_recent_changes_views">Track my visits to Recent Changes and offer me a link for “changes since I last viewed Recent Changes”.</label> |
|---|
| 67 | </p> |
|---|
| 68 | |
|---|
| 69 | [% IF gmaps_api_key %] |
|---|
| 70 | <p> |
|---|
| 71 | [% IF display_google_maps %] |
|---|
| 72 | <input type="checkbox" id="display_google_maps" name="display_google_maps" value="1" checked="1" /> |
|---|
| 73 | [% ELSE %] |
|---|
| 74 | <input type="checkbox" id="display_google_maps" name="display_google_maps" value="1" /> |
|---|
| 75 | [% END %] |
|---|
| 76 | <label for="display_google_maps">Display Google Maps.</label> |
|---|
| 77 | </p> |
|---|
| 78 | [% END %] |
|---|
| 79 | |
|---|
| 80 | <p> |
|---|
| 81 | <label for="default_edit_type">Default edit type:</label> |
|---|
| 82 | <select name="default_edit_type"> |
|---|
| 83 | [% IF default_edit_type == 'normal' %] |
|---|
| 84 | <option value="normal" selected="1">Normal edit</option> |
|---|
| 85 | <option value="tidying">Minor tidying</option> |
|---|
| 86 | [% ELSE %] |
|---|
| 87 | <option value="normal">Normal edit</option> |
|---|
| 88 | <option value="tidying" selected="1">Minor tidying</option> |
|---|
| 89 | [% END %] |
|---|
| 90 | </select> |
|---|
| 91 | </p> |
|---|
| 92 | |
|---|
| 93 | <p> |
|---|
| 94 | <label for="cookie_expires">Preferences expire:</label> |
|---|
| 95 | <select name="cookie_expires"> |
|---|
| 96 | [% IF cookie_expires == 'never' %] |
|---|
| 97 | <option value="month">in one month</option> |
|---|
| 98 | <option value="year">in one year</option> |
|---|
| 99 | <option value="never" selected="1">never</option> |
|---|
| 100 | [% ELSIF cookie_expires == "year" %] |
|---|
| 101 | <option value="month">in one month</option> |
|---|
| 102 | <option value="year" selected="1">in one year</option> |
|---|
| 103 | <option value="never">never</option> |
|---|
| 104 | [% ELSE %] |
|---|
| 105 | <option value="month" selected="1">in one month</option> |
|---|
| 106 | <option value="year">in one year</option> |
|---|
| 107 | <option value="never">never</option> |
|---|
| 108 | [% END %] |
|---|
| 109 | </select> |
|---|
| 110 | </p> |
|---|
| 111 | |
|---|
| 112 | <input type="submit" value="Set it" class="form_button" /> |
|---|
| 113 | <input type="hidden" name="action" value="set_preferences"> |
|---|
| 114 | </form> |
|---|
| 115 | |
|---|
| 116 | [% ELSE %] |
|---|
| 117 | |
|---|
| 118 | <h1>Username/preferences saved</h1> |
|---|
| 119 | |
|---|
| 120 | <p>Username set to “[% username %]”.</p> |
|---|
| 121 | |
|---|
| 122 | <p>Preview area shown |
|---|
| 123 | [% IF preview_above_edit_box %] |
|---|
| 124 | above |
|---|
| 125 | [% ELSE %] |
|---|
| 126 | below |
|---|
| 127 | [% END %] |
|---|
| 128 | edit box.</p> |
|---|
| 129 | |
|---|
| 130 | <p>“Look for nearby geocaches” link |
|---|
| 131 | [% UNLESS include_geocache_link %] not [% END %] |
|---|
| 132 | included in navbar.</p> |
|---|
| 133 | |
|---|
| 134 | <p>Latitude and longitude displayed as |
|---|
| 135 | [% IF latlong_traditional %] |
|---|
| 136 | degrees and minutes. |
|---|
| 137 | [% ELSE %] |
|---|
| 138 | decimal. |
|---|
| 139 | [% END %] |
|---|
| 140 | </p> |
|---|
| 141 | |
|---|
| 142 | <p>Help links will |
|---|
| 143 | [% IF omit_help_links %] not [% END %] |
|---|
| 144 | be included in navbar. |
|---|
| 145 | </p> |
|---|
| 146 | |
|---|
| 147 | <p>Minor edits |
|---|
| 148 | [% UNLESS show_minor_edits_in_rc %] not [% END %] |
|---|
| 149 | included in Recent Changes.</p> |
|---|
| 150 | |
|---|
| 151 | <p>Your visits to Recent Changes will |
|---|
| 152 | [% UNLESS track_recent_changes_views %] not [% END %] |
|---|
| 153 | be tracked.</p> |
|---|
| 154 | |
|---|
| 155 | [% IF gmaps_api_key %] |
|---|
| 156 | <p>Google Maps will |
|---|
| 157 | [% UNLESS display_google_maps %] not [% END %] |
|---|
| 158 | be displayed.</p> |
|---|
| 159 | [% END %] |
|---|
| 160 | |
|---|
| 161 | <p>Default edit type set to |
|---|
| 162 | [% IF default_edit_type == 'normal' %] |
|---|
| 163 | “Normal edit”. |
|---|
| 164 | [% ELSE %] |
|---|
| 165 | “Minor tidying”. |
|---|
| 166 | [% END %] |
|---|
| 167 | </p> |
|---|
| 168 | |
|---|
| 169 | <p>Your preferences will |
|---|
| 170 | [% IF cookie_expires == 'never' %] |
|---|
| 171 | never expire. |
|---|
| 172 | [% ELSIF cookie_expires == 'year' %] |
|---|
| 173 | expire in one year. |
|---|
| 174 | [% ELSE %] |
|---|
| 175 | expire in one month. |
|---|
| 176 | [% END %] |
|---|
| 177 | </p> |
|---|
| 178 | |
|---|
| 179 | <ul> |
|---|
| 180 | <li><a href="[% full_cgi_url %]">Return to [% site_name %]</a></li> |
|---|
| 181 | <li><a href="preferences.cgi">Change preferences</a></li> |
|---|
| 182 | </ul> |
|---|
| 183 | |
|---|
| 184 | [% END %] |
|---|
| 185 | </div> |
|---|
| 186 | [% INCLUDE footer.tt %] |
|---|