r1338: Incomplete JavaScript implementation of column ordering options
[bugdar.git] / templates / userctrl.tpl
1 $doctype
2 <html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
3 <head>
4 $headinclude
5 <link rel="stylesheet" href="templates/box.css" media="screen" />
6 <link rel="stylesheet" href="templates/fields.css" media="screen" />
7 <title>{$bugsys->options['trackertitle']} - {@"User Options"}</title>
8
9 <script type="text/javascript">
10 <!--
11
12 var columns;
13
14 function moveUp(caller)
15 {
16 position = caller.parentNode.parentNode.rowIndex;
17 if (position > 0)
18 {
19 rows = document.getElementById("bugColumns").getElementsByTagName("tr");
20 temp = rows[position].innerHTML;
21 rows[position].innerHTML = rows[position - 1].innerHTML;
22 rows[position - 1].innerHTML = temp;
23 }
24 }
25
26 function moveDown(caller)
27 {
28 position = caller.parentNode.parentNode.rowIndex;
29 rows = document.getElementById("bugColumns").getElementsByTagName("tr");
30 if (position < rows.length)
31 {
32 temp = rows[position].innerHTML;
33 rows[position].innerHTML = rows[position + 1].innerHTML;
34 rows[position + 1].innerHTML = temp;
35 }
36 }
37
38 //-->
39 </script>
40 </head>
41
42 <body>
43
44 $header
45
46 <form action="userctrl.php" name="options" method="post">
47 <input type="hidden" name="do" value="update" />
48
49 <if condition="$show['errors']">
50 <div class="error" style="text-align: $stylevar[left]">
51 {@"The following errors occurred"}:
52 {$message->process}
53 </div>
54 </if>
55
56 <table style="width: 100%" cellspacing="$stylevar[spacing]" cellpadding="$stylevar[padding]" border="$stylevar[border]">
57 <tr valign="top">
58 <td width="50%">
59 <div class="box">
60 <!-- user options -->
61 <div class="box-head" style="text-align: $stylevar[left]">{@"User Options"}</div>
62
63 <div class="box-mid">
64 <fieldset>
65 <legend>{@"Display Name"}</legend>
66 <input type="text" name="displayname" value="{$userinfo['displayname']}" size="25" style="width: 100%" maxlength="250" />
67 </fieldset>
68
69 <fieldset>
70 <legend>{@"Show Email Publicly"}</legend>
71 <input type="radio" name="showemail" value="1"<if condition="$userinfo['showemail']"> checked="checked"</if> /> {@"Yes"}
72 <input type="radio" name="showemail" value="0"<if condition="!$userinfo['showemail']"> checked="checked"</if> /> {@"No"}
73 </fieldset>
74
75 <fieldset>
76 <legend>{@"Show Status Colors on Bug Listings"}</legend>
77 <input type="radio" name="showcolors" value="1"<if condition="$userinfo['showcolors']"> checked="checked"</if> /> {@"Yes"}
78 <input type="radio" name="showcolors" value="0"<if condition="!$userinfo['showcolors']"> checked="checked"</if> /> {@"No"}
79 </fieldset>
80
81 <fieldset>
82 <legend>{@"Language"}</legend>
83 <select name="languageid">$langselect</select>
84 </fieldset>
85
86 <fieldset>
87 <legend>{@"Timezone"}</legend>
88 <select name="timezone">$tzselect</select>
89 </fieldset>
90
91 <fieldset>
92 <legend>{@"Observe Daylight Savings Time (DST)"}</legend>
93 <input type="checkbox" name="usedst" value="1"<if condition="$userinfo['usedst']"> checked="checked"</if> /> {@"Yes, I'm currently observing DST"}
94 </fieldset>
95 </div>
96 </div>
97 </td>
98 <!-- / user options -->
99
100 <!-- password and email -->
101 <td>
102 <div class="box">
103 <div class="box-head" style="text-align: $stylevar[left]">
104 {@"Please enter your password to change these fields"}:
105 <br />
106
107 <input type="password" name="validate" size="35" maxlength="250" />
108 </div>
109
110 <div class="box-mid box-margmod-top">
111 <fieldset>
112 <legend>{@"Password"}</legend>
113 <input type="password" name="password_change" size="25" style="width: 100%" maxlength="250" />
114 </fieldset>
115
116 <fieldset>
117 <legend>{@"Confirm Password"}</legend>
118 <input type="password" name="password_confirm" size="25" style="width: 100%" maxlength="250" />
119 </fieldset>
120 </div>
121
122 <div class="box-mid box-margmod-top">
123 <fieldset>
124 <legend>{@"Email"}</legend>
125 <input type="text" name="email_change" size="25" value="$email" style="width: 100%" maxlength="250" />
126 </fieldset>
127
128 <fieldset>
129 <legend>{@"Confirm Email"}</legend>
130 <input type="text" name="email_confirm" size="25" value="$email_confirm" style="width: 100%" maxlength="250" />
131 </fieldset>
132 </div>
133 </div>
134 </td>
135 <!-- / password and email -->
136 </tr>
137
138 <tr valign="top">
139 <!-- email options -->
140 <td>
141 <div class="box">
142 <div class="box-head" style="text-align: $stylevar[left]">{@"Email Options"}</div>
143
144 <div class="box-mid">
145 <table cellspacing="2" cellpadding="1" border="0" style="width: 100%">
146 <tr style="text-align: center">
147 <td>&nbsp;</td>
148 <td style="background-color: $stylevar[alt_color]"><strong>{@"Reporter"}</strong></td>
149 <td><strong>{@"Assignee"}</strong></td>
150 <td style="background-color: $stylevar[alt_color]"><strong>{@"Favorite"}</strong></td>
151 <td><strong>{@"Voter"}</strong></td>
152 <td style="background-color: $stylevar[alt_color]"><strong>{@"Commenter"}</strong></td>
153 </tr>
154
155 <tr style="text-align: center; background-color: $stylevar[alt_color]">
156 <td style="text-align: $stylevar[left]">{@"New bug is added"}</td>
157 <td colspan="5"><input type="checkbox" name="emailopts[0][2048]"{$checked[0][2048]} value="1" /></td>
158 </tr>
159
160 <tr style="text-align: center">
161 <td style="text-align: $stylevar[left]">{@"I am made the assignee"}</td>
162 <td colspan="5"><input type="checkbox" name="emailopts[0][32]"{$checked[0][32]} value="1" /></td>
163 </tr>
164
165 <tr style="text-align: center; background-color: $stylevar[alt_color]">
166 <td style="text-align: $stylevar[left]">{@"Status or resolution changes"}</td>
167 <td><input type="checkbox" name="emailopts[1][64]"{$checked[1][64]} value="1" /></td>
168 <td><input type="checkbox" name="emailopts[2][64]"{$checked[2][64]} value="1" /></td>
169 <td><input type="checkbox" name="emailopts[4][64]"{$checked[4][64]} value="1" /></td>
170 <td><input type="checkbox" name="emailopts[8][64]"{$checked[8][64]} value="1" /></td>
171 <td><input type="checkbox" name="emailopts[16][64]"{$checked[16][64]} value="1" /></td>
172 </tr>
173
174 <tr style="text-align: center">
175 <td style="text-align: $stylevar[left]">{@"'Duplicates' field is changed"}</td>
176 <td><input type="checkbox" name="emailopts[1][128]"{$checked[1][128]} value="1" /></td>
177 <td><input type="checkbox" name="emailopts[2][128]"{$checked[2][128]} value="1" /></td>
178 <td><input type="checkbox" name="emailopts[4][128]"{$checked[4][128]} value="1" /></td>
179 <td><input type="checkbox" name="emailopts[8][128]"{$checked[8][128]} value="1" /></td>
180 <td><input type="checkbox" name="emailopts[16][128]"{$checked[16][128]} value="1" /></td>
181 </tr>
182
183 <tr style="text-align: center; background-color: $stylevar[alt_color]">
184 <td style="text-align: $stylevar[left]">{@"A new comment is added"}</td>
185 <td><input type="checkbox" name="emailopts[1][256]"{$checked[1][256]} value="1" /></td>
186 <td><input type="checkbox" name="emailopts[2][256]"{$checked[2][256]} value="1" /></td>
187 <td><input type="checkbox" name="emailopts[4][256]"{$checked[4][256]} value="1" /></td>
188 <td><input type="checkbox" name="emailopts[8][256]"{$checked[8][256]} value="1" /></td>
189 <td><input type="checkbox" name="emailopts[16][256]"{$checked[16][256]} value="1" /></td>
190 </tr>
191
192 <tr style="text-align: center">
193 <td style="text-align: $stylevar[left]">{@"A new attachment is added"}</td>
194 <td><input type="checkbox" name="emailopts[1][512]"{$checked[1][512]} value="1" /></td>
195 <td><input type="checkbox" name="emailopts[2][512]"{$checked[2][512]} value="1" /></td>
196 <td><input type="checkbox" name="emailopts[4][512]"{$checked[4][512]} value="1" /></td>
197 <td><input type="checkbox" name="emailopts[8][512]"{$checked[8][512]} value="1" /></td>
198 <td><input type="checkbox" name="emailopts[16][512]"{$checked[16][512]} value="1" /></td>
199 </tr>
200
201 <tr style="text-align: center; background-color: $stylevar[alt_color]">
202 <td style="text-align: $stylevar[left]">{@"Any other field changes"}</td>
203 <td><input type="checkbox" name="emailopts[1][1024]"{$checked[1][1024]} value="1" /></td>
204 <td><input type="checkbox" name="emailopts[2][1024]"{$checked[2][1024]} value="1" /></td>
205 <td><input type="checkbox" name="emailopts[4][1024]"{$checked[4][1024]} value="1" /></td>
206 <td><input type="checkbox" name="emailopts[8][1024]"{$checked[8][1024]} value="1" /></td>
207 <td><input type="checkbox" name="emailopts[16][1024]"{$checked[16][1024]} value="1" /></td>
208 </tr>
209 </table>
210 </div>
211 </div>
212 </td>
213 <!-- / email options -->
214
215 <!-- display options -->
216 <td>
217 <div class="box">
218 <div class="box-head" style="text-align: $stylevar[left]">{@"Bug List Display Options"}</div>
219
220 <div class="box-mid">
221 <fieldset>
222 <legend>{@"Hidden Statuses on Bug Listing"}</legend>
223 <select name="hidestatuses[]" multiple="multiple" size="$hidestatusesnum">$hidestatuses</select>
224 </fieldset>
225
226 <fieldset>
227 <legend>{@"Default Sort Order Column"}</legend>
228 $defaultsortkey
229 </fieldset>
230
231 <fieldset>
232 <legend>{@"Default Sort Order Direction"}</legend>
233 $defaultsortas
234 </fieldset>
235
236 <fieldset>
237 <legend>{@"Bug List Columns"}</legend>
238 <table cellspacing="2" cellpadding="1" border="0" id="bugColumns">
239 $columnOptions
240 </table>
241 </fieldset>
242 </div>
243 </div>
244 <!-- / display options -->
245 </td>
246 </tr>
247 </table>
248
249 <br />
250
251 <div class="submitrow">
252 <input name="submit" type="submit" value=" {@"Submit"} " accesskey="s" />
253 <input name="reset" type="reset" value=" {@"Reset"} " accesskey="r" />
254 </div>
255
256 </form>
257
258 $footer