r931: - You can now delete bugs and comments
[bugdar.git] / templates / showreport.tpl
1 $doctype
2 <html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
3 <head>
4 $headinclude
5 <link rel="stylesheet" href="templates/report.css" media="screen" />
6 <link rel="stylesheet" href="templates/fields.css" media="screen" />
7 <link rel="stylesheet" href="templates/box.css" media="screen" />
8 <title><lang 1="$bug[bugid]">{@"Bug Report %1$s"}</lang> - $bug[summary_title]</title>
9 </head>
10
11 <body>
12
13 $header
14
15 <form name="bugreport" action="editreport.php" method="post" class="form">
16 <input type="hidden" name="do" value="update" />
17 <input type="hidden" name="bugid" value="$bug[bugid]" />
18
19 <div id="fieldbody">
20 <!-- LEFT COLUMN -->
21 <div id="leftcol">
22
23 <!-- bug id & hidden -->
24 <fieldset>
25 <legend>{@"Bug Id"} $help[bugid]</legend>
26 <div class="field">
27 $bug[bugid]
28
29 <if condition="$show['edit']">
30 /
31 <strong<if condition="$bug['hidden']"> class="error"</if>>{@"Hidden"}:</strong>
32 <input type="checkbox" name="hidden" value="1"<if condition="$bug['hidden']"> checked="checked"</if> />
33 <else />
34 <if condition="$bug['hidden']"> / <span class="error">{@"Hidden Bug"}</span></if>
35 </if>
36
37 / [<a href="showhistory.php?bugid=$bug[bugid]">{@"Show Bug History"}</a>]
38 <if condition="$show['subscribe']">/ [<a href="favourite.php?do=handle&amp;bugid=$bug[bugid]">$favouritetext</a>]</if>
39 <if condition="$show['delete']">/ [<a href="editreport.php?do=delete&amp;bugid=$bug[bugid]">{@"Delete"}</a>]</if>
40 </div>
41 </fieldset>
42 <!-- / bug id & hidden -->
43
44 <!-- reporter -->
45 <fieldset>
46 <legend>{@"Reporter"} $help[reporter]</legend>
47 <div class="field">$bug[userinfo]</div>
48 </fieldset>
49 <!-- / reporter -->
50
51 <!-- product -->
52 <fieldset>
53 <legend><a href="explain.php?do=products">{@"Product/Version"}</a> $help[product]</legend>
54 <div class="field">
55 <if condition="$show['edit']">
56 $bug[product] / <if condition="$bug['componentid']">$bug[component] / </if><select name="pcv_select">$pcv_select</select>
57 <else />
58 $bug[product] <if condition="$bug['componentid']">/ $bug[component]</if> / $bug[version]
59 </if>
60 </div>
61 </fieldset>
62 <!-- / product -->
63
64 <!-- status -->
65 <fieldset>
66 <legend>{@"Status"} $help[status]</legend>
67 <div class="field">
68 <if condition="$show['changestatus']">
69 <select name="status">$select[status]</select>
70 <else />
71 $bug[status]
72 </if>
73 </div>
74 </fieldset>
75 <!-- / status -->
76
77 <!-- severity -->
78 <fieldset>
79 <legend>{@"Severity"} $help[severity]</legend>
80 <div class="field">
81 <if condition="$show['edit']">
82 <select name="severity">$select[severity]</select>
83 <else />
84 $bug[severity]
85 </if>
86 </div>
87 </fieldset>
88 <!-- / severity -->
89
90 <!-- duplicate -->
91 <fieldset>
92 <legend>{@"Duplicate Of"} $help[duplicateof]</legend>
93 <div class="field">
94 <if condition="$show['edit']">
95 <input type="text" name="duplicateof" size="10" value="<if condition="$bug['duplicateof']">$bug[duplicateof]</if>" />
96 <if condition="$bug['duplicateof']"><a href="showreport.php?bugid=$bug[duplicateof]" title="$duplicate[summary]" target="_blank">$duplicate[bugid]</a></if>
97 <else />
98 <if condition="$bug['duplicateof']"><a href="showreport.php?bugid=$bug[duplicateof]">$duplicateof[summary]</a><else />{@"- none -"}</if>
99 </if>
100 </div>
101 </fieldset>
102 <!-- / duplicate -->
103
104 $customfields[left]
105
106 </div>
107 <!-- / LEFT COLUMN -->
108
109 <!-- RIGHT COLUMN -->
110 <div id="rightcol">
111
112 <!-- summary -->
113 <fieldset>
114 <legend>{@"Summary"} $help[summary]</legend>
115 <div class="field">
116 <if condition="$show['edit']">
117 <input type="text" name="summary" size="25" value="$bug[summary]" style="width: 100%" />
118 <else />
119 $bug[summary]
120 </if>
121 </div>
122 </fieldset>
123 <!-- / summary -->
124
125 <!-- reporting time -->
126 <fieldset>
127 <legend>{@"Report Time"} $help[dateline]</legend>
128 <div class="field">$bug[datetime]</div>
129 </fieldset>
130 <!-- / reporting time -->
131
132 <!-- assignment -->
133 <fieldset>
134 <legend>{@"Assignment"} $help[assignedto]</legend>
135 <div class="field">
136 <if condition="$show['assign']">
137 <select name="assignedto"><option value="0"<if condition="!$bug['assignedto']"> selected="selected"</if>>{@"No Assignment"}</option>$select[dev]</select>
138 <else />
139 <if condition="$bug['assigninfo']">$bug[assigninfo]<else />{@"- none -"}</if>
140 </if>
141 </div>
142 </fieldset>
143 <!-- / assignment -->
144
145 <!-- resolution -->
146 <fieldset>
147 <legend>{@"Resolution"} $help[resolution]</legend>
148 <div class="field">
149 <if condition="$show['changestatus']">
150 <select name="resolution">$select[resolution]</select>
151 <else />
152 $bug[resolution]
153 </if>
154 </div>
155 </fieldset>
156 <!-- / resolution -->
157
158 <!-- priority -->
159 <fieldset>
160 <legend>{@"Priority"} $help[priority]</legend>
161 <div class="field">
162 <if condition="$show['changestatus']">
163 <select name="priority">$select[priority]</select>
164 <else />
165 $bug[priority]
166 </if>
167 </div>
168 </fieldset>
169 <!-- / priority -->
170
171 <!-- dependencies -->
172 <fieldset>
173 <legend>{@"Dependencies"} $help[dependency]</legend>
174 <div class="field">
175 <if condition="$show['edit']">
176 <input type="text" name="dependency" size="25" value="$bug[dependency]" /> $dependencies
177 <else />
178 <if condition="$dependencies">$dependencies<else />{@"- none -"}</if>
179 </if>
180 </div>
181 </fieldset>
182 <!-- / dependencies -->
183
184 $customfields[right]
185 </div>
186 <!-- / RIGHT COLUMN -->
187 </div>
188
189 <div class="clearspill"></div>
190
191 <br />
192
193 <if condition="$show['newreply']">
194 <!-- new reply -->
195 <fieldset>
196 <legend>{@"New Reply"}<if condition="$show['autoactions']"> : <a href="explain.php?do=autoactions">{@"Automatic Action"}</a> <select name="autoaction">$select[autoaction]</select></if> $help[newreply]</legend>
197
198 <textarea name="comment" cols="50" rows="10" style="width: 100%"></textarea>
199 </fieldset>
200 <!-- / new reply -->
201 </if>
202
203 <!-- submit row -->
204 <div id="submitrow">
205 <input type="submit" name="submit" value=" {@"Commit Changes"} " accesskey="s" />
206 <input type="reset" name="reset" value=" {@"Reset Fields"} " accesskey="r" />
207 </div>
208 <!-- / submit row -->
209
210 </form>
211
212 <br />
213
214 <!-- attachments & voting -->
215 <div id="attachvote">
216
217 <if condition="$show['attachments']">
218 <!-- attachments -->
219 <div id="attachments">
220 <fieldset>
221 <legend>{@"Attachments"}<if condition="$show['putattachments']"> : <a href="attachment.php?do=add&amp;bugid=$bug[bugid]">{@"New"}</a></if></legend>
222
223 $attachments
224 </fieldset>
225 </div>
226 <!-- / attachments -->
227 </if>
228
229 <!-- show votes -->
230 <div id="votes<if condition="$show['attachments']"><if condition="!$show['vote']">fifty</if><else /><if condition="!$show['vote']">hundred</if></if>">
231 <fieldset>
232 <legend>{@"Votes"}</legend>
233
234 <div><strong>{@"For"}:</strong> $vote[votefor] ($vote[forpercent]%)</div>
235 <div><strong>{@"Against"}:</strong> $vote[voteagainst] ($vote[againstpercent]%)</div>
236 <div><strong>{@"Total"}:</strong> $vote[total]</div>
237 </fieldset>
238 </div>
239 <!-- / show votes -->
240
241 <if condition="$show['vote']">
242 <!-- your vote -->
243 <div id="yourvote">
244 <fieldset>
245 <legend>{@"Your Vote"}</legend>
246
247 <form name="vote" action="vote.php" method="post" class="form">
248 <input type="hidden" name="do" value="vote" />
249 <input type="hidden" name="bugid" value="$bug[bugid]" />
250 <input type="radio" name="vote" value="1" /> {@"Vote For (+1)"}<br />
251 <input type="radio" name="vote" value="-1" /> {@"Vote Against (-1)"}<br />
252
253 <input type="submit" name="submit" value=" {@"Vote"} " accesskey="v" />
254 </form>
255 </fieldset>
256 </div>
257 <!-- / your vote -->
258 </if>
259 </div>
260 <!-- / attachments & voting -->
261
262 <div class="clearspill"></div>
263
264 <br />
265
266 $comments
267
268 $footer