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