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