r341: -Show PC on edit mode
[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 </head>
7
8 $header
9
10 <form name="bugreport" action="editreport.php" method="post" class="form">
11 <input type="hidden" name="do" value="update" />
12 <input type="hidden" name="bugid" value="$bug[bugid]" />
13
14 <table width="100%" cellspasing="$stylevar[spacing_border]" cellpadding="$stylevar[padding]" border="$stylevar[border]" class="tborder">
15 <tr>
16 <!-- bug id & hidden -->
17 <td class="tlabel">Bug ID</td>
18 <td class="tdata">
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 </td>
29 <!-- / bug id & hidden -->
30
31 <!-- summary -->
32 <td class="tlabel">Summary</td>
33 <td class="tdata">
34 <if condition="$show['edit']">
35 <input type="text" name="summary" size="25" value="$bug[summary]" style="width: 100%" />
36 <else />
37 $bug[summary]
38 </if>
39 </td>
40 <!-- / summary -->
41 </tr>
42 <tr>
43 <!-- reporter -->
44 <td class="tlabel">Reporter</td>
45 <td class="tdata">$bug[userinfo]</td>
46 <!-- / reporter -->
47
48 <!-- product -->
49 <td class="tlabel">Product/Version</td>
50 <td class="tdata">
51 <if condition="$show['edit']">
52 $bug[product] / <if condition="$bug['componentid']">$bug[component] / </if><select name="pcv_select">$pcv_select</select>
53 <else />
54 $bug[product] <if condition="$bug['componentid']">/ $bug[component]</if> / $bug[version]
55 </if>
56 </td>
57 <!-- / product -->
58 </tr>
59 <tr>
60 <!-- reporting time -->
61 <td class="tlabel">Report Time</td>
62 <td class="tdata">$bug[datetime]</td>
63 <!-- / reporting time -->
64
65 <!-- assignment -->
66 <td class="tlabel">Assignment</td>
67 <td class="tdata">
68 <if condition="$show['assign']">
69 <select name="assignedto"><option value="0"<if condition="!$bug['assignedto']"> selected="selected"</if>>No Assignment</option>$select[dev]</select>
70 <else />
71 $bug[assigninfo]
72 </if>
73 </td>
74 <!-- / assignment -->
75 </tr>
76 <tr>
77 <!-- status -->
78 <td class="tlabel">Status</td>
79 <td class="tdata">
80 <if condition="$show['changestatus']">
81 <select name="status">$select[status]</select>
82 <else />
83 $bug[status]
84 </if>
85 </td>
86 <!-- / status -->
87
88 <!-- resolution -->
89 <td class="tlabel">Resolution</td>
90 <td class="tdata">
91 <if condition="$show['changestatus']">
92 <select name="resolution">$select[resolution]</select>
93 <else />
94 $bug[resolution]
95 </if>
96 </td>
97 <!-- / resolution -->
98 </tr>
99 <tr>
100 <!-- severity -->
101 <td class="tlabel">Severity</td>
102 <td class="tdata">
103 <if condition="$show['edit']">
104 <select name="severity">$select[severity]</select>
105 <else />
106 $bug[severity]
107 </if>
108 </td>
109 <!-- / severity -->
110
111 <!-- priority -->
112 <td class="tlabel">Priority</td>
113 <td class="tdata">
114 <if condition="$show['changestatus']">
115 <select name="priority">$select[priority]</select>
116 <else />
117 $bug[priority]
118 </if>
119 </td>
120 <!-- / priority -->
121 </tr>
122 <tr>
123 <!-- duplicate -->
124 <td class="tlabel">Duplicate Of</td>
125 <td class="tdata">
126 <if condition="$show['edit']">
127 <input type="text" name="duplicateof" size="10" value="<if condition="$bug['duplicateof']">$bug[duplicateof]</if>" />
128 <if condition="$bug['duplicateof']"><a href="showreport.php?bugid=$bug[duplicateof]" title="$duplicate[summary]" target="_blank">$duplicate[bugid]</a></if>
129 <else />
130 <a href="showreport.php?bugid=$bug[duplicateof]">$duplicateof[summary]</a>
131 </if>
132 </td>
133 <!-- / duplicate -->
134
135 <!-- dependencies -->
136 <td class="tlabel">Dependencies</td>
137 <td class="tdata">
138 <if condition="$show['edit']">
139 <input type="text" name="dependency" size="25" value="$bug[dependency]" /> $dependencies
140 <else />
141 $dependencies
142 </if>
143 </td>
144 <!-- / dependencies -->
145 </tr>
146
147 <!-- spacer -->
148 <tr>
149 <td colspan="4" style="height: 1px"></td>
150 </tr>
151 <!-- / spacer -->
152
153 $customfields
154
155 <!-- spacer -->
156 <tr>
157 <td colspan="4" style="height: 1px"></td>
158 </tr>
159 <!-- / spacer -->
160
161 <!-- new comment & controls -->
162 <tr>
163 <td class="tlabel" colspan="<if condition="$show['newreply']">2" style="vertical-align: top"<else />4"</if>>
164 <if condition="$show['newreply']">New Reply</if>
165
166 <if condition="$show['edit']"><div<if condition="$show['newreply']"> style="margin-top: 15px"</if>>Automatic Action: <select name="autoaction">$select[autoaction]</select></div></if>
167
168 <br />
169 <br />
170
171 <div>[<a href="showhistory.php?bugid=$bug[bugid]">Show Bug History</a>]</div>
172 <if condition="$bugsys->userinfo['userid']"><div>[<a href="favourite.php?do=handle&amp;bugid=$bug[bugid]">$favouritetext</a>]</div></if>
173 </td>
174 <if condition="$show['newreply']"><td class="tdata" colspan="2"><textarea name="comment" cols="50" rows="10" style="width: 100%"></textarea></td></if>
175 </tr>
176 <!-- / new comment & controls -->
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