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