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