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