r324: Comment adding is now done on showreport.php
[bugdar.git] / templates / showreport.tpl
1 $doctype
2 $headinclude
3 $header
4
5 <if condition="$show['edit']">
6 <form name="bugreport" action="editreport.php" method="post">
7 <input type="hidden" name="do" value="update" />
8 <input type="hidden" name="bugid" value="$bug[bugid]" />
9 </if>
10
11 <if condition="$show['edit']">
12 <div><strong<if condition="$bug['hidden']"> style="color: red"</if>>Hidden:</strong> <input type="checkbox" name="hidden" value="1"<if condition="$bug['hidden']"> checked="checked"</if> /></div>
13 <else />
14 <if condition="$bug['hidden']"><div><strong style="color: red">This bug is hidden!</strong></div></if>
15 </if>
16
17 <div><strong>Bug ID:</strong> $bug[bugid]</div>
18 <div><strong>Reported by:</strong> $bug[userinfo]</div>
19
20 <if condition="$show['edit']">
21 <div><strong>Summary/Title:</strong> <input type="text" name="summary" size="25" value="$bug[summary]" /></div>
22 <div><strong>Severity:</strong> <select name="severity">$select[severity]</select></div>
23
24 <if condition="$show['changestatus']">
25 <div><strong>Priority:</strong> <select name="priority">$select[priority]</select></div>
26 <div><strong>Status:</strong> <select name="status">$select[status]</select></div>
27 <div><strong>Resolution:</strong> <select name="resolution">$select[resolution]</select></div>
28 </if>
29
30 <if condition="$show['assign']">
31 <div><strong>Assigned to:</strong> <select name="assignedto"><option value="0"<if condition="!$bug['assignedto']"> selected="selected"</if>>No Assignment</option>$select[dev]</select></div>
32 </if>
33
34 <div><strong>Duplicate of:</strong> <input type="text" name="duplicateof" size="10" value="<if condition="$bug['duplicateof']">$bug[duplicateof]</if>" /> <if condition="$bug['duplicateof']"><a href="showreport.php?bugid=$bug[duplicateof]" target="_blank">$duplicate[summary]</a></if></div>
35
36 <div><strong>Dependencies:</strong> <input type="text" name="dependency" size="25" value="$bug[dependency]" /> $dependencies</div>
37
38 <div><strong>Product/Component/Version:</strong>
39 <div>$pcv_select</div>
40 </div>
41
42 <div><strong>Automatic Response Action:</strong>
43 <div><select name="autoaction">$select[autoaction]</select></div>
44 </div>
45
46 $customfields
47
48 <if condition="$show['newreply']">
49 <div><strong>Comment:</strong></div>
50 <textarea name="comment" cols="100" rows="35"></textarea>
51 </if>
52 <else />
53 <div><strong>Product:</strong> $bug[product] <if condition="$bug['componentid']">/ <strong>Component:</strong> $bug[component]</if> / <strong>Version:</strong> $bug[version]</div>
54 <div><strong>Title / summary:</strong> $bug[summary]</div>
55 <div><strong>Status:</strong> $bug[status] / <strong>Resolution:</strong> $bug[resolution]</div>
56 <div><strong>Severity:</strong> $bug[severity]</div>
57 <div><strong>Priority:</strong> $bug[priority]</div>
58 <if condition="$bug['assigninfo']"><div><strong>Assigned to:</strong> $bug[assigninfo]</div></if>
59 <if condition="$bug['duplicateof']"><div><strong>Duplicate of:</strong> <a href="showreport.php?bugid=$bug[duplicateof]">$duplicateof[summary]</a></div></if>
60 <if condition="$dupelist"><div><strong>Bugs marked as duplicates of this:</strong> $dupelist</div></if>
61 <if condition="$dependencies"><div><strong>Dependencies:</strong> $dependencies</div></if>
62 $customfields
63
64 <if condition="$show['newreply']">
65 <form name="newcomment" method="post" action="newcomment.php">
66 <input type="hidden" name="do" value="insert" />
67 <input type="hidden" name="bugid" value="$bug[bugid]" />
68 <div><strong>Comment:</strong></div>
69 <textarea name="comment" cols="100" rows="35"></textarea>
70 <div><input type="submit" name="submit" value="Add Comment" /></div>
71 </form>
72 </if>
73 </if>
74
75 <div><input type="submit" name="submit" value="Save Changes" /></div>
76 </form>
77
78 <div>[<a href="showhistory.php?bugid=$bug[bugid]">Show Bug History</a>]<if condition="$bugsys->userinfo['userid']"> [<a href="favourite.php?do=handle&amp;bugid=$bug[bugid]">$favouritetext</a>]</div>
79
80 <br />
81
82 <if condition="$show['getattachments'] OR $show['putattachments']">
83 <table border="1" cellspacing="2" cellpadding="4">
84 <thead style="background-color: #EEEEEE">
85 <tr>
86 <td>Attachments</td>
87 </tr>
88 </thead>
89 <tbody>
90 $attachments
91 <if condition="$show['putattachments']">
92 <tr>
93 <td style="background-color: #999999">[<a href="attachment.php?do=add&amp;bugid=$bug[bugid]">Add New Attachment</a>]</td>
94 </tr>
95 </if>
96 </tbody>
97 </table>
98
99 <br />
100 </if>
101
102 <table border="1" cellspacing="2" cellpadding="4">
103 <thead style="background-color: #EEEEEE">
104 <tr>
105 <td>Votes for this Bug</td>
106 </tr>
107 </thead>
108 <tbody>
109 <tr>
110 <td>
111 <strong>Votes for this Bug:</strong> $vote[votefor] ($vote[forpercent]%)<br />
112 <strong>Votes against this bug:</strong> $vote[voteagainst] ($vote[againstpercent]%)<br />
113 <strong>Total Votes:</strong> $vote[total]
114 </td>
115 </tr>
116
117 <if condition="$show['vote']">
118 <tr>
119 <td>
120 <form name="vote" action="vote.php" method="post">
121 <input type="hidden" name="do" value="vote" />
122 <input type="hidden" name="bugid" value="$bug[bugid]" />
123
124 <input type="radio" name="vote" value="1" /> Vote For (+1)<br />
125 <input type="radio" name="vote" value="-1" /> Vote Against (-1)<br />
126 <input type="submit" name="submit" value="Vote" />
127
128 </form>
129 </td>
130 </tr>
131 </if>
132 </tbody>
133 </table>
134
135 <br />
136
137 $comments
138
139 <if condition="$show['newreply']"><div>[<a href="newcomment.php?bugid=$bug[bugid]">New Comment</a>]</div></if>
140
141 $footer