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