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