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