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