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