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