]> src.bluestatic.org Git - bugdar.git/blob - admin/templates/settings.html
Switch the 'modify' code of admin/field.php to use templates
[bugdar.git] / admin / templates / settings.html
1 <%- $templates['doctype'] %>
2 <html xmlns="http://www.w3.org/1999/xhtml" lang="<%- $stylevar['lang'] %>" xml:lang="<%- $stylevar['lang'] %>" dir="<%- $stylevar['lang_dir'] %>">
3 <head>
4 <%- $templates['headinclude'] %>
5 <title><%- $templates['title'] %> - <%- T('Settings') %></title>
6 </head>
7
8 <body>
9
10 <%- $templates['nav'] %>
11
12 <div id="title"><%- T('Administration') %></div>
13
14 <div id="body">
15
16 <%- admin_flash() %>
17
18 <form action="settings.php" method="post">
19 <input type="hidden" name="do" value="update" />
20
21 <fieldset>
22 <legend><%- T('General Options') %></legend>
23 <dl>
24
25 <!-- authmethod -->
26 <dt>
27 <label for="settings[authmethod]">
28 <%- T('Authentication Method') %>
29 <dfn><%- T('The authentication class to use to validate cookie data and longins. You may need to edit the actual file for certain authentication systems.') %></dfn>
30 </label>
31 </dt>
32 <dd><select name="settings[authmethod]" id="settings[authmethod]"><%- $authmethods %></select></dd>
33 <!-- / authmethod -->
34
35 <!-- allownewreg -->
36 <dt>
37 <label for="settings[allownewreg]">
38 <%- T('Allow New Registrations') %>
39 <dfn><%- T('If this is set to <em>yes</em>, then new users will be allowed to register.') %></dfn>
40 </label>
41 </dt>
42 <dd><%- BSDecorator::yesno('settings[allownewreg]', bugdar::$options['allownewreg']) %></dd>
43 <!-- / allownewreg -->
44
45 <!-- verifyemail -->
46 <dt>
47 <label for="settings[verifyemail]">
48 <%- T('Require Activation Email') %>
49 <dfn><%- T('Setting this to yes will force all new users to verify their account with an email activation link.') %></dfn>
50 </label>
51 </dt>
52 <dd><%- BSDecorator::yesno('settings[verifyemail]', bugdar::$options['verifyemail']) %></dd>
53 <!-- / verifyemail -->
54
55 <!-- moderatenewusers -->
56 <dt>
57 <label for="settings[moderatenewusers]">
58 <%- T('Moderate New Users') %>
59 <dfn><%- T('All new users will have to be approved by the administration before being able to have normal user rights.') %></dfn>
60 </label>
61 </dt>
62 <dd><%- BSDecorator::yesno('settings[moderatenewusers]', bugdar::$options['moderatenewusers']) %></dd>
63 <!-- / moderatenewusers -->
64
65 <!-- sendwelcomemail -->
66 <dt>
67 <label for="settings[sendwelcomemail]">
68 <%- T('Send New Use Welcome Email') %>
69 <dfn><%- T('Setting this option to <em>yes</em> will send each new verified user a welcome email.') %></dfn>
70 </label>
71 </dt>
72 <dd><%- BSDecorator::yesno('settings[sendwelcomemail]', bugdar::$options['sendwelcomemail']) %></dd>
73 <!-- / sendwelcomemail -->
74
75 <!-- webmasteremail -->
76 <dt>
77 <label for="settings[webmasteremail]">
78 <%- T('Webmaster Email Address') %>
79 <dfn><%- T('The email address from which emails will be sent out.') %></dfn>
80 </label>
81 </dt>
82 <dd><input type="text" name="settings[webmasteremail]" value="<%- bugdar::$options['webmasteremail'] %>" id="settings[webmasteremail]" /></dd>
83 <!-- / webmasteremail -->
84
85 <!-- trackertitle -->
86 <dt>
87 <label for="settings[trackertitle]">
88 <%- T('Tracker Title') %>
89 <dfn><%- T('The global name of the bug tracker. Example: Blue Static Bug Tracker') %></dfn>
90 </label>
91 </dt>
92 <dd><input type="text" name="settings[trackertitle]" value="<%- bugdar::$options['trackertitle'] %>" id="settings[trackertitle]" /></dd>
93 <!-- / trackertitle -->
94
95 <!-- trackerurl -->
96 <dt>
97 <label for="settings[trackerurl]">
98 <%- T('Tracker Base URL') %>
99 <dfn><%- T('The base URL of the tracker. This is used when creating external links to the tracker. <strong>Be sure that this does not end in a trailing slash (&quot;/&quot;).</strong><br />Example: http://www.bluestatic.org/bugs') %></dfn>
100 </label>
101 </dt>
102 <dd><input type="text" name="settings[trackerurl]" value="<%- bugdar::$options['trackerurl'] %>" id="settings[trackerurl]" /></dd>
103 <!-- / trackerurl -->
104
105 <!-- dateformat -->
106 <dt>
107 <label for="settings[dateformat]">
108 <%- T('Date Format') %>
109 <dfn><%- T('Set the date format used for bug report and comment information. This is based on PHP\'s date() function.') %></dfn>
110 </label>
111 </dt>
112 <dd><input type="text" name="settings[dateformat]" value="<%- bugdar::$options['dateformat'] %>" id="settings[dateformat]" /></dd>
113 <!-- / dateformat -->
114
115 <!-- defaulttimezone -->
116 <dt>
117 <label for="settings[defaulttimezone]">
118 <%- T('Default Time Zone') %>
119 <dfn><%- T('This controls the time zone that all unregistered users view the tracker with.') %></dfn>
120 </label>
121 </dt>
122 <dd><%- construct_option_select('settings[defaulttimezone]', BSDate::fetch_timezone_list(), bugdar::$options['defaulttimezone']) %></dd>
123 <!-- / defaulttimezone -->
124
125 <!-- defaultlanguage -->
126 <dt>
127 <label for="settings[defaultlanguage]">
128 <%- T('Default Language') %>
129 <dfn><%- T('You can set the default language that all new users (and guests) will use.') %></dfn>
130 </label>
131 </dt>
132 <dd><%- construct_option_select('settings[defaultlanguage]', bugdar::$datastore['language'], bugdar::$options['defaultlanguage'], 'languageid', 'title') %></dd>
133 <!-- / defaultlanguage -->
134
135 <!-- syndicateditems -->
136 <dt>
137 <label for="settings[syndicateditems]">
138 <%- T('Number of Syndicated Items') %>
139 <dfn><%- T('The number of bugs to be syndicated at any one time by the Atom XML feed.') %></dfn>
140 </label>
141 </dt>
142 <dd><input type="text" name="settings[syndicateditems]" value="<%- bugdar::$options['syndicateditems'] %>" id="settings[syndicateditems]" /></dd>
143 <!-- / syndicateditems -->
144
145 <!-- redirectheaders -->
146 <dt>
147 <label for="settings[redirectheaders]">
148 <%- T('Use Header Redirects') %>
149 <dfn><%- T('Instead of displaying an intermediate page informing the user that their action was a success and a redirect is occurring, just send the user to the next screen using HTTP headers. This can save bandwidth.') %></dfn>
150 </label>
151 </dt>
152 <dd><%- BSDecorator::yesno('settings[redirectheaders]', bugdar::$options['redirectheaders']) %></dd>
153 <!-- / redirectheaders -->
154
155 </dl>
156 </fieldset>
157
158 <div class="submit">
159 <input type="submit" name="save" value="<%- T('Save All Settings') %>" />
160 </div>
161
162 <fieldset>
163 <legend><%- T('Bug Reporting Options') %></legend>
164 <dl>
165
166 <!-- allowhtml -->
167 <dt>
168 <label for="settings[allowhtml]">
169 <%- T('Allow HTML in Bug Reports') %>
170 <dfn><%- T('Set this to <em>yes</em> if you want to allow users to post raw HTML in their bug reports. This is <strong>very</strong> dangerous and it is not recommended.') %></dfn>
171 </label>
172 </dt>
173 <dd><%- BSDecorator::yesno('settings[allowhtml]', bugdar::$options['allowhtml']) %></dd>
174 <!-- / allowhtml -->
175
176 <!-- defaultseverity -->
177 <dt>
178 <label for="settings[defaultseverity]">
179 <%- T('Default Severity') %>
180 <dfn><%- T('The default severity that is selected when creating a new bug report.') %></dfn>
181 </label>
182 </dt>
183 <dd><%- construct_option_select('setting[defaultseverity]', bugdar::$datastore['severity'], bugdar::$options['defaultseverity'], 'severityid', 'severity') %></dd>
184 <!-- / defaultseverity -->
185
186 <!-- defaultpriority -->
187 <dt>
188 <label for="settings[defaultpriority]">
189 <%- T('Default Priority') %>
190 <dfn><%- T('The default priority that will be selected when creating a new bug report. Depending on your permission setup, the user may not be able to set this in a new report so this will act as the value.') %></dfn>
191 </label>
192 </dt>
193 <dd><%- construct_option_select('settings[defaultpriority]', bugdar::$datastore['priority'], bugdar::$options['defaultpriority'], 'priorityid', 'priority') %></dd>
194 <!-- / defaultpriority -->
195
196 <!-- defaultstatus -->
197 <dt>
198 <label for="settings[defaultstatus]">
199 <%- T('Default Status') %>
200 <dfn><%- T('The default default that is selected when creating a new bug report. If a user can not assign a status, this will be the one inserted into the database.') %></dfn>
201 </label>
202 </dt>
203 <dd><%- construct_option_select('settings[defaultstatus]', bugdar::$datastore['status'], bugdar::$options['defaultstatus'], 'statusid', 'status') %></dd>
204 <!-- / defaultstatus -->
205
206 <!-- defaultresolve -->
207 <dt>
208 <label for="settings[defaultresolve]">
209 <%- T('Default Resolution') %>
210 <dfn><%- T('This is the default bug resolution. If a user is not able to change this field, setting this will act as the default value.') %></dfn>
211 </label>
212 </dt>
213 <dd><%- construct_option_select('settings[defaultresolve]', bugdar::$datastore['resolution'], bugdar::$options['defaultresolve'], 'resolutionid', 'resolution') %></dd>
214 <!-- / defaultresolve -->
215
216 <!-- defaultassign -->
217 <dt>
218 <label for="settings[defaultassign]">
219 <%- T('Default Bug Assignment') %>
220 <dfn><%- T('This is the default developer new bugs will be assigned to. If a user does not have permisssion to assign bugs, this will be the default. If you don\'t want any default assignment, leave this as <em>Not Selected</em>.') %></dfn>
221 </label>
222 </dt>
223 <dd><%- construct_option_select('settings[defaultassign]', bugdar::$datastore['assignto'], bugdar::$options['defaultassign'], 'userid', 'displayname', 0) %></dd>
224 <!-- / defaultassign -->
225
226 <!-- defaultcomment -->
227 <dt>
228 <label for="settings[defaultcomment]">
229 <%- T('Default Comment Text') %>
230 <dfn><%- T('If you wish to set a template for entering the initial comment of a bug report, then you may specify this here. However, the template will only take effect on the initial report/comment. Note: the template cannot be forced on the user as there is no way to validate it.') %></dfn>
231 </label>
232 </dt>
233 <dd><textarea name="settings[defaultcomment]" id="settings[defaultcomment]"><%- bugdar::$options['defaultcomment'] %></textarea></dd>
234 <!-- / defaultcomment -->
235 </dl>
236 </fieldset>
237
238 <div class="submit">
239 <input type="submit" name="save" value="<%- T('Save All Settings') %>" />
240 </div>
241
242 <fieldset>
243 <legend><%- T('Bug Listing Display Options') %></legend>
244 <dl>
245
246 <!-- hidestatuses -->
247 <dt>
248 <label for="settings[hidestatuses]">
249 <%- T('Hide Statuses on Bug Listings') %>
250 <dfn><%- T('Here you can specify which statuses to hide on the bug list displays. Users have options in their controls to change this from these values, and this does not affect searches or the favorites list.') %></dfn>
251 </label>
252 </dt>
253 <dd><%- construct_option_select('settings[hidestatuses]', bugdar::$datastore['status'], bugdar::$options['hidestatuses'], 'statusid', 'status', 0, true) %></dd>
254 <!-- / hidestatuses -->
255
256 <!-- defaultsortkey -->
257 <dt>
258 <label for="settings[defaultsortkey]">
259 <%- T('Default Sort Column') %>
260 <dfn><%- T('Select the column to sort bugs by on listings. This is only a default setting which users can override in their preferences.') %></dfn>
261 </label>
262 </dt>
263 <dd><%- construct_option_select('settings[defaultsortkey]', ListSorter::fetch_by_text(false, false), bugdar::$options['defaultsortkey']) %></dd>
264 <!-- / defaultsortkey -->
265
266 <!-- defaultsortas -->
267 <dt>
268 <label for="settings[defaultsortas]">
269 <%- T('Default Sort Direction') %>
270 <dfn><%- T('Specify the default direction to sort bugs in the selected column. This works with and follows the same rules as the Sort Column.') %></dfn>
271 </label>
272 </dt>
273 <dd><%- construct_option_select('settings[defaultsortas]', ListSorter::fetch_as_text(false), bugdar::$options['defaultsortas']) %></dd>
274 <!-- / defaultsortas -->
275
276 <!-- columnoptions -->
277 <dt>
278 <label for="settings[columnoptions]">
279 <%- T('Default Column Ordering Options') %>
280 <dfn><%- T('Specify the order of the columns for bug listings. The value 0 disables the display of a column and if two or more columns have the same position number, they will be displayed in the same column.') %></dfn>
281 </label>
282 </dt>
283 <dd><%- ConstructColumnOptionsSetting() %></dd>
284 <!-- / columnoptions -->
285
286 </dl>
287 </fieldset>
288
289 <div class="submit">
290 <input type="submit" name="save" value="<%- T('Save All Settings') %>" />
291 </div>
292
293 <fieldset>
294 <legend><%- T('Pagination Options') %></legend>
295 <dl>
296
297 <!-- defaultpp -->
298 <dt>
299 <label for="settings[defaultpp]">
300 <%- T('Default Per-Page Amount') %>
301 <dfn><%- T('The number of items (e.g. bugs) to be displayed on a page by default. The user will have the option of over-riding these values.') %></dfn>
302 </label>
303 </dt>
304 <dd><input type="text" name="settings[defaultpp]" value="<%- bugdar::$options['defaultpp'] %>" id="settings[defaultpp]" /></dd>
305 <!-- / defaultpp -->
306
307 <!-- maxpp -->
308 <dt>
309 <label for="settings[maxpp]">
310 <%- T('Maximum Per-Page Value') %>
311 <dfn><%- T('To prevent your server from experiencing load problems, set the maximum per page limit. Specifying a value here will make sure any user-entered value will not be higher than this, preventing server load problems.') %></dfn>
312 </label>
313 </dt>
314 <dd><input type="text" name="settings[maxpp]" value="<%- bugdar::$options['maxpp'] %>" id="settings[maxpp]" /></dd>
315 <!-- / maxpp -->
316
317 <!-- pagelinks -->
318 <dt>
319 <label for="settings[pagelinks]">
320 <%- T('Number of Page Links') %>
321 <dfn><%- T('The number of pages that will appear in the page navigation system on either side of the current page. Set this to 0 to display all pages.') %></dfn>
322 </label>
323 </dt>
324 <dd><input type="text" name="settings[pagelinks]" value="<%- bugdar::$options['pagelinks'] %>" id="settings[pagelinks]" /></dd>
325 <!-- / pagelinks -->
326
327 </dl>
328 </fieldset>
329
330 <div class="submit">
331 <input type="submit" name="save" value="<%- T('Save All Settings') %>" />
332 </div>
333
334 <% if (DEVDEBUG): %>
335 <fieldset>
336 <legend>Untouchables</legend>
337 <dl>
338
339 <!-- trackerversion -->
340 <dt>
341 <label for="settings[trackerversion]">Version Number</label>
342 </dt>
343 <dd><input type="text" name="settings[trackerversion]" value="<%- bugdar::$options['trackerversion'] %>" id="settings[trackerversion]" /></dd>
344 <!-- / trackerversion -->
345
346 <!-- devgettext -->
347 <dt>
348 <label for="settings[devgettext]">Custom Gettext Localizer</label>
349 <dfn>Use the custom MOReader implementation rather than the built-in Gettext extension.</dfn>
350 </dt>
351 <dd><%- BSDecorator::yesno('settings[devgettext]', bugdar::$options['devgettext']) %></dd>
352 <!-- / devgettext -->
353
354 </dl>
355 </fieldset>
356
357 <div class="submit">
358 <input type="submit" name="save" value="<%- T('Save All Settings') %>" />
359 </div>
360
361 <% endif %>
362
363 </form>
364
365 <%- admin_footer() %>
366
367 </div>
368
369 <script type="text/javascript"> nav_init("system", "system_settings"); </script>
370
371 </body>
372
373 </html>