r464: - colour debugging for fields and labels
[bugdar.git] / templates / showreport.tpl
1 $doctype
2 <html lang="$stylevar[lang]" xml:lang="$stylevar[lang]">
3 <head>
4 $headinclude
5 <link rel="stylesheet" href="templates/report.css" media="screen" />
6 <title><lang 1="$bug[bugid]">{@"Bug Report %1$s"}</lang> - $bug[summary]</title>
7 </head>
8
9 $header
10
11 <form name="bugreport" action="editreport.php" method="post" class="form">
12 <input type="hidden" name="do" value="update" />
13 <input type="hidden" name="bugid" value="$bug[bugid]" />
14
15 <div id="fieldbody">
16 <!-- LEFT COLUMN -->
17 <div id="leftcol">
18
19 <!-- bug id & hidden -->
20 <div class="wrapper">
21 <label>{@"Bug Id"}</label>
22 <div class="field">
23 $bug[bugid]
24
25 <if condition="$show['edit']">
26 /
27 <strong<if condition="$bug['hidden']"> class="error"</if>>{@"Hidden"}:</strong>
28 <input type="checkbox" name="hidden" value="1"<if condition="$bug['hidden']"> checked="checked"</if> />
29 <else />
30 <if condition="$bug['hidden']"> / <span class="error">{@"Hidden Bug"}</span></if>
31 </if>
32 </div>
33 </div>
34 <!-- / bug id & hidden -->
35
36 <!-- reporter -->
37 <div class="wrapper">
38 <label>{@"Reporter"}</label>
39 <div class="field">$bug[userinfo]</div>
40 </div>
41 <!-- / reporter -->
42
43 <!-- reporting time -->
44 <div class="wrapper">
45 <label>{@"Report Time"}</label>
46 <div class="field">$bug[datetime]</div>
47 </div>
48 <!-- / reporting time -->
49
50 <!-- status -->
51 <div class="wrapper">
52 <label>{@"Status"}</label>
53 <div class="field">
54 <if condition="$show['changestatus']">
55 <select name="status">$select[status]</select>
56 <else />
57 $bug[status]
58 </if>
59 </div>
60 </div>
61 <!-- / status -->
62
63 <!-- severity -->
64 <div class="wrapper">
65 <label>{@"Severity"}</label>
66 <div class="field">
67 <if condition="$show['edit']">
68 <select name="severity">$select[severity]</select>
69 <else />
70 $bug[severity]
71 </if>
72 </div>
73 </div>
74 <!-- / severity -->
75
76 <!-- duplicate -->
77 <div class="wrapper">
78 <label>{@"Duplicate Of"}</label>
79 <div class="field">
80 <if condition="$show['edit']">
81 <input type="text" name="duplicateof" size="10" value="<if condition="$bug['duplicateof']">$bug[duplicateof]</if>" />
82 <if condition="$bug['duplicateof']"><a href="showreport.php?bugid=$bug[duplicateof]" title="$duplicate[summary]" target="_blank">$duplicate[bugid]</a></if>
83 <else />
84 <a href="showreport.php?bugid=$bug[duplicateof]">$duplicateof[summary]</a>
85 </if>
86 </div>
87 </div>
88 <!-- / duplicate -->
89
90 </div>
91 <!-- / LEFT COLUMN -->
92
93 <!-- RIGHT COLUMN -->
94 <div id="rightcol">
95
96 <!-- summary -->
97 <div class="wrapper">
98 <label>{@"Summary"}</label>
99 <div class="field">
100 <if condition="$show['edit']">
101 <input type="text" name="summary" size="25" value="$bug[summary]" style="width: 65%" />
102 <else />
103 $bug[summary]
104 </if>
105 </div>
106 </div>
107 <!-- / summary -->
108
109 <!-- product -->
110 <div class="wrapper">
111 <label>{@"Product/Version"}</label>
112 <div class="field">
113 <if condition="$show['edit']">
114 $bug[product] / <if condition="$bug['componentid']">$bug[component] / </if><select name="pcv_select">$pcv_select</select>
115 <else />
116 $bug[product] <if condition="$bug['componentid']">/ $bug[component]</if> / $bug[version]
117 </if>
118 </div>
119 </div>
120 <!-- / product -->
121
122 <!-- assignment -->
123 <div class="wrapper">
124 <label>{@"Assignment"}</label>
125 <div class="field">
126 <if condition="$show['assign']">
127 <select name="assignedto"><option value="0"<if condition="!$bug['assignedto']"> selected="selected"</if>>{@"No Assignment"}</option>$select[dev]</select>
128 <else />
129 $bug[assigninfo]
130 </if>
131 </div>
132 </div>
133 <!-- / assignment -->
134
135 <!-- resolution -->
136 <div class="wrapper">
137 <label>{@"Resolution"}</label>
138 <div class="field">
139 <if condition="$show['changestatus']">
140 <select name="resolution">$select[resolution]</select>
141 <else />
142 $bug[resolution]
143 </if>
144 </div>
145 </div>
146 <!-- / resolution -->
147
148 <!-- priority -->
149 <div class="wrapper">
150 <label>{@"Priority"}</label>
151 <div class="field">
152 <if condition="$show['changestatus']">
153 <select name="priority">$select[priority]</select>
154 <else />
155 $bug[priority]
156 </if>
157 </div>
158 </div>
159 <!-- / priority -->
160
161 <!-- dependencies -->
162 <div class="wrapper">
163 <label>{@"Dependencies"}</label>
164 <div class="field">
165 <if condition="$show['edit']">
166 <input type="text" name="dependency" size="25" value="$bug[dependency]" /> $dependencies
167 <else />
168 $dependencies
169 </if>
170 </div>
171 </div>
172 <!-- / dependencies -->
173
174 </div>
175 <!-- / RIGHT COLUMN -->
176 </div>
177
178 <table width="100%" cellspasing="$stylevar[spacing]" cellpadding="$stylevar[padding]px" border="$stylevar[border]" class="tborder">
179 <if condition="$show['customfields']">
180 <!-- spacer -->
181 <tr>
182 <td colspan="4" style="height: 1px"></td>
183 </tr>
184 <!-- / spacer -->
185
186 $customfields
187 </if>
188
189 <!-- spacer -->
190 <tr>
191 <td colspan="4" style="height: 1px"></td>
192 </tr>
193 <!-- / spacer -->
194
195 <!-- new comment & controls -->
196 <tr>
197 <td class="tlabel" colspan="<if condition="$show['newreply']">2<else />4</if>" style="vertical-align: top">
198 <if condition="$show['newreply']">{@"New Reply"}</if>
199
200 <if condition="$show['edit']"><div<if condition="$show['newreply']"> style="margin-top: 15px"</if>>{@"Automatic Action"}: <select name="autoaction">$select[autoaction]</select></div></if>
201
202 <br />
203 <br />
204
205 <div>[<a href="showhistory.php?bugid=$bug[bugid]">{@"Show Bug History"}</a>]</div>
206 <if condition="$bugsys->userinfo['userid']"><div>[<a href="favourite.php?do=handle&amp;bugid=$bug[bugid]">$favouritetext</a>]</div></if>
207 </td>
208 <if condition="$show['newreply']"><td class="tdata" colspan="2"><textarea name="comment" cols="50" rows="10" style="width: 100%"></textarea></td></if>
209 </tr>
210 <!-- / new comment & controls -->
211
212 <!-- submit row -->
213 <tr>
214 <td colspan="4" class="tfoot">
215 <input type="submit" name="submit" value=" {@"Commit Changes"} " accesskey="s" />
216 <input type="reset" name="reset" value=" {@"Reset Fields"} " accesskey="r" />
217 </td>
218 </tr>
219 <!-- / submit row -->
220 </table>
221
222 </form>
223
224 <br />
225
226 <!-- attachments & voting -->
227 <table width="100%" cellspasing="$stylevar[spacing_border]" cellpadding="$stylevar[padding]px" border="$stylevar[border]" class="tborder">
228 <tr>
229 <if condition="$show['attachments']"><td class="thead" style="width: 50%">{@"Attachments"} <if condition="$show['putattachments']">[<a href="attachment.php?do=add&amp;bugid=$bug[bugid]">{@"New"}</a>]</if></td></if>
230 <td class="thead"<if condition="$show['vote']"> colspan="2"</if>>{@"Votes"}</td>
231 </tr>
232 <tr valign="top">
233 <if condition="$show['attachments']">
234 <!-- attachments -->
235 <td class="tmiddle">
236 $attachments
237 </td>
238 <!-- / attachments -->
239 </if>
240
241 <!-- voting -->
242 <td class="tmiddle">
243 <strong>{@"For"}:</strong> $vote[votefor] ($vote[forpercent]%)<br />
244 <strong>{@"Against"}:</strong> $vote[voteagainst] ($vote[againstpercent]%)<br />
245 <strong>{@"Total"}:</strong> $vote[total]
246 </td>
247
248 <if condition="$show['vote']">
249 <td class="tmiddle">
250 <strong>{@"Your Vote"}</strong><br />
251 <form name="vote" action="vote.php" method="post" class="form">
252 <input type="hidden" name="do" value="vote" />
253 <input type="hidden" name="bugid" value="$bug[bugid]" />
254 <input type="radio" name="vote" value="1" /> {@"Vote For (+1)"}<br />
255 <input type="radio" name="vote" value="-1" /> {@"Vote Against (-1)"}<br />
256
257 <input type="submit" name="submit" value=" {@"Vote"} " accesskey="v" />
258 </form>
259 </td>
260 </if>
261 <!-- / voting -->
262 </tr>
263 </table>
264 <!-- / attachments & voting -->
265
266 <br />
267
268 $comments
269
270 $footer