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