r327: Changed the conditionals around the new reply screen
[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 <!-- new comment & controls -->
160 <tr>
161 <td class="tlabel" colspan="<if condition="$show['newreply']">2" style="vertical-align: top"<else />4"</if>>
162 <if condition="$show['newreply']">New Reply</if>
163
164 <if condition="$show['edit']"><div<if condition="$show['newreply']"> style="margin-top: 15px"</if>>Automatic Action: <select name="autoaction">$select[autoaction]</select></div></if>
165
166 <br />
167 <br />
168
169 <div>[<a href="showhistory.php?bugid=$bug[bugid]">Show Bug History</a>]</div>
170 <if condition="$bugsys->userinfo['userid']"><div>[<a href="favourite.php?do=handle&amp;bugid=$bug[bugid]">$favouritetext</a>]</div></if>
171 </td>
172 <if condition="$show['newreply']"><td class="tdata" colspan="2"><textarea name="comment" cols="50" rows="10" style="width: 100%"></textarea></td></if>
173 </tr>
174 <!-- / new comment & controls -->
175
176 <!-- submit row -->
177 <tr>
178 <td colspan="4" class="tfoot">
179 <input type="submit" name="submit" value=" Commit Changes " accesskey="s" />
180 <input type="reset" name="reset" value=" Reset Fields " accesskey="r" />
181 </td>
182 </tr>
183 <!-- / submit row -->
184 </table>
185
186 </form>
187
188 <br />
189
190 <!-- attachments & voting -->
191 <table width="100%" cellspasing="$stylevar[spacing_border]" cellpadding="$stylevar[padding]" border="$stylevar[border]" class="tborder">
192 <tr>
193 <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>
194 <td class="thead" colspan="2">Votes</td>
195 </tr>
196 <tr valign="top">
197 <!-- attachments -->
198 <td class="tmiddle">
199 <if condition="$show['attachments']">
200 $attachments
201 </if>
202 </td>
203 <!-- / attachments -->
204
205 <!-- voting -->
206 <td class="tmiddle">
207 <strong>For:</strong> $vote[votefor] ($vote[forpercent]%)<br />
208 <strong>Against:</strong> $vote[voteagainst] ($vote[againstpercent]%)<br />
209 <strong>Total:</strong> $vote[total]
210 </td>
211 <td class="tmiddle">
212 <strong>Your Vote</strong><br />
213 <form name="vote" action="vote.php" method="post" class="form">
214 <input type="hidden" name="do" value="vote" />
215 <input type="hidden" name="bugid" value="$bug[bugid]" />
216 <input type="radio" name="vote" value="1" /> Vote For (+1)<br />
217 <input type="radio" name="vote" value="-1" /> Vote Against (-1)<br />
218
219 <input type="submit" name="submit" value="Vote" accesskey="v" />
220 </form>
221 </td>
222 <!-- / voting -->
223 </tr>
224 </table>
225 <!-- / attachments & voting -->
226
227 <br />
228
229 $comments
230
231 $footer