| 1293 |
dpurdie |
1 |
[%# Screen for displaying the properties of a topic, such as the
|
|
|
2 |
title, author, creation date, reviewers, Cc, number of lines,
|
|
|
3 |
repository, project, description and state. Most of these
|
|
|
4 |
properties can be modified on this page. #%]
|
|
|
5 |
|
|
|
6 |
[% PROCESS viewtopicheader.html.tmpl version = version topicview = 0
|
|
|
7 |
topiccomments = 0 topicinfo = 0 topicproperties = 1 closehead = 1
|
|
|
8 |
help = "x624.html" %]
|
|
|
9 |
|
|
|
10 |
<script type="text/javascript">
|
|
|
11 |
<!--
|
|
|
12 |
//
|
|
|
13 |
// This function will hit the user with a "are you sure" message box if they
|
|
|
14 |
// ask to delete the topic. Otherwise, just let them change the state. It
|
|
|
15 |
// is called when the submit button is pressed.
|
|
|
16 |
//
|
|
|
17 |
function DeleteTopicConfirm()
|
|
|
18 |
{
|
|
|
19 |
var stateIndex = document.form.topic_state.options.selectedIndex;
|
|
|
20 |
var stateSelection = document.form.topic_state.options[stateIndex].value;
|
|
|
21 |
|
|
|
22 |
// Confirm with the user if they are deleting.
|
|
|
23 |
if (stateSelection == 'Deleted')
|
|
|
24 |
{
|
|
|
25 |
return confirm('This topic and all of its comments will be ' +
|
|
|
26 |
'permanently removed. Are you sure you want ' +
|
|
|
27 |
'to delete this topic?');
|
|
|
28 |
}
|
|
|
29 |
|
|
|
30 |
return 1;
|
|
|
31 |
}
|
|
|
32 |
-->
|
|
|
33 |
</script>
|
|
|
34 |
|
|
|
35 |
[%# Create a form to allow the topic's properties to be changed #%]
|
|
|
36 |
<form method="post" name="form" enctype="multipart/form-data" accept-charset="UTF-8">
|
|
|
37 |
|
|
|
38 |
<input type="hidden" name="action" value="edit_topic_properties" />
|
|
|
39 |
<input type="hidden" name="topic" value="[% topicid %]" />
|
|
|
40 |
<input type="hidden" name="mode" value="[% mode %]" />
|
|
|
41 |
<input type="hidden" name="version" value="[% topic_version %]" />
|
|
|
42 |
|
|
|
43 |
[%# Create a table illustrating the title, author, creation date, bug
|
|
|
44 |
ids, reviewers, number of lines and the current state, most of
|
|
|
45 |
which can be edited. #%]
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
<p>
|
|
|
49 |
<table cellpadding="2" cellspacing="2" border="0">
|
|
|
50 |
|
|
|
51 |
<tr class="tt1">
|
|
|
52 |
<td>Title:</td>
|
|
|
53 |
<td>
|
|
|
54 |
<input type="text" name="topic_title"
|
|
|
55 |
value="[% title | html_entity %]" size="70"
|
|
|
56 |
[%# Check to see if the topic is open or not #%]
|
|
|
57 |
[% IF topic_readonly != 0 %]readonly[% END %]
|
|
|
58 |
maxlength="70"/>
|
|
|
59 |
</td>
|
|
|
60 |
</tr>
|
|
|
61 |
|
|
|
62 |
<tr class="tt1">
|
|
|
63 |
<td>Author:</td>
|
|
|
64 |
<td>
|
|
|
65 |
<input type="text" name="author" value="[% author | html_entity %]"
|
|
|
66 |
size="50" maxlength="80"
|
|
|
67 |
[%# Check to see if the topic is open or not #%]
|
|
|
68 |
[% IF antispam_email || topic_readonly != 0 %]readonly[% END %] />
|
|
|
69 |
</td>
|
|
|
70 |
</tr>
|
|
|
71 |
|
|
|
72 |
<tr class="tt1">
|
|
|
73 |
<td>Created:</td>
|
|
|
74 |
<td>[% document_creation_time | html_entity %]</td>
|
|
|
75 |
</tr>
|
|
|
76 |
|
|
|
77 |
[% IF bug_db != '' %]
|
|
|
78 |
<tr class="tt1">
|
|
|
79 |
<td>Bug IDs:</td>
|
|
|
80 |
<td>
|
|
|
81 |
<input type="text" name="bug_ids" value="[% bug_ids %]"
|
|
|
82 |
size="30" maxlength="50" [% IF topic_readonly != 0 %]readonly[% END %] />
|
|
|
83 |
Links:
|
|
|
84 |
[% FOREACH bug = bug_id_array %]
|
|
|
85 |
[% IF loop.count() != 1 %], [% END %]
|
|
|
86 |
<a href="[% bugtracker %][% bug %]">Bug [% bug %]</a>
|
|
|
87 |
[% END %]
|
|
|
88 |
</td>
|
|
|
89 |
</tr>
|
|
|
90 |
[% END %]
|
|
|
91 |
|
|
|
92 |
<tr class="tt1">
|
|
|
93 |
<td>Reviewers:</td>
|
|
|
94 |
<td>
|
|
|
95 |
<input type="text" name="reviewers" value="[% reviewers | html_entity %]"
|
|
|
96 |
size="50" maxlength="1024"
|
|
|
97 |
[%# Check to see if the topic is open or not #%]
|
|
|
98 |
[% IF antispam_email || topic_readonly != 0 %]readonly[% END %] />
|
|
|
99 |
</td>
|
|
|
100 |
</tr>
|
|
|
101 |
|
|
|
102 |
<tr class="tt1">
|
|
|
103 |
<td>Cc:</td>
|
|
|
104 |
<td>
|
|
|
105 |
<input type="text" name="cc" value="[% cc | html_entity %]"
|
|
|
106 |
size="50" maxlength="1024"
|
|
|
107 |
[%# Check to see if the topic is open or not #%]
|
|
|
108 |
[% IF antispam_email || topic_readonly != 0 %]readonly[% END %] />
|
|
|
109 |
</td>
|
|
|
110 |
</tr>
|
|
|
111 |
|
|
|
112 |
[% IF start_tag != '' %]
|
|
|
113 |
<tr class="tt1">
|
|
|
114 |
<td>Start tag:</td>
|
|
|
115 |
<td>[% start_tag | html_entity %]</td>
|
|
|
116 |
</tr>
|
|
|
117 |
[% END %]
|
|
|
118 |
|
|
|
119 |
[% IF end_tag != '' %]
|
|
|
120 |
<tr class="tt1">
|
|
|
121 |
<td>End tag:</td>
|
|
|
122 |
<td>[% end_tag | html_entity %]</td>
|
|
|
123 |
</tr>
|
|
|
124 |
[% END %]
|
|
|
125 |
|
|
|
126 |
[% IF module != '' %]
|
|
|
127 |
<tr class="tt1">
|
|
|
128 |
<td>Module:</td>
|
|
|
129 |
<td>[% module | html_entity %]</td>
|
|
|
130 |
</tr>
|
|
|
131 |
[% END %]
|
|
|
132 |
|
|
|
133 |
[% IF topic_repository != '' %]
|
|
|
134 |
<tr class="tt1">
|
|
|
135 |
<td>Repository:</td>
|
|
|
136 |
<td>
|
|
|
137 |
[% FOREACH entry = repositories %]
|
|
|
138 |
[% IF entry == topic_repository %]
|
|
|
139 |
<input type="hidden" name="repository" value="[% topic_repository %]" readonly />
|
|
|
140 |
[% entry | html_entity %]
|
|
|
141 |
[% END %]
|
|
|
142 |
[% END %]
|
|
|
143 |
</td>
|
|
|
144 |
</tr>
|
|
|
145 |
|
|
|
146 |
[% END %]
|
|
|
147 |
|
|
|
148 |
[% IF projects_enabled != 0 %]
|
|
|
149 |
<tr class="tt1">
|
|
|
150 |
<td>Project:</td>
|
|
|
151 |
<td>
|
|
|
152 |
[%# Check to see if the project is open or not #%]
|
|
|
153 |
[% IF topic_readonly == 0 %]
|
|
|
154 |
<select name="projectid">
|
|
|
155 |
[% FOREACH project = projects %]
|
|
|
156 |
[% IF project.id == topic_projectid %]
|
|
|
157 |
<option selected value="[% project.id %]">[% project.name | html_entity %]</OPTION>
|
|
|
158 |
[% ELSE %]
|
|
|
159 |
[%# Only display additional Projects that are open #%]
|
|
|
160 |
[% IF project.state == project_states.0 %]
|
|
|
161 |
<option value="[% project.id %]">[% project.name | html_entity %]</OPTION>
|
|
|
162 |
[% END %]
|
|
|
163 |
[% END %]
|
|
|
164 |
[% END %]
|
|
|
165 |
</select>
|
|
|
166 |
[% ELSE %]
|
|
|
167 |
[% FOREACH project = projects %]
|
|
|
168 |
[% IF project.id == topic_projectid %]
|
|
|
169 |
<input type="hidden" name="projectid" value="[% project.id %]" />
|
|
|
170 |
<input type="text" name="projectname" value="[% project.name | html_entity %]" readonly />
|
|
|
171 |
[% END %]
|
|
|
172 |
[% END %]
|
|
|
173 |
[% END %]
|
|
|
174 |
</td>
|
|
|
175 |
</tr>
|
|
|
176 |
[% ELSE %]
|
|
|
177 |
<input type="hidden" name="projectid" value="[% topic_projectid %]" />
|
|
|
178 |
[% END %]
|
|
|
179 |
|
|
|
180 |
<tr class="tt1">
|
|
|
181 |
<td valign="top">Description:</td>
|
|
|
182 |
<td>
|
|
|
183 |
<textarea name="topic_description" rows="12" cols="70"
|
|
|
184 |
[%# Check to see if the topic is open or not #%]
|
|
|
185 |
[% IF topic_readonly != 0 %] readonly [% END %]
|
|
|
186 |
wrap="soft">[% description | html_entity %]</textarea>
|
|
|
187 |
</td>
|
|
|
188 |
</tr>
|
|
|
189 |
|
|
|
190 |
<tr class="tt1">
|
|
|
191 |
<td>State:
|
|
|
192 |
<FONT SIZE="-2"><A HREF="javascript:alert('
|
|
|
193 |
When a topic is created, it is initialised in state \'open\'.\n
|
|
|
194 |
Once a topic has been reviewed, and the code has been committed,\n
|
|
|
195 |
the state should be updated to \'committed\'. If the code\n
|
|
|
196 |
in this review is not to be committed, perhaps because a\n
|
|
|
197 |
new review will superceed this one, or because it was rejected,\n
|
|
|
198 |
the state should be changed to \'closed\'.\n
|
|
|
199 |
\n
|
|
|
200 |
If a topic is linked to Bugzilla bugs, each time the topic\n
|
|
|
201 |
state is changed, an appropriate comment will be appended to\n
|
|
|
202 |
all associated bugs, as a form of tracking.\n
|
|
|
203 |
\n
|
|
|
204 |
The topic states are also useful as a form of filtering, when\n
|
|
|
205 |
retrieving lists of topics from the search page.\n
|
|
|
206 |
\n
|
|
|
207 |
This topic can be superceeded by a new topic, by selecting the\n
|
|
|
208 |
state \'obsoleted\'.
|
|
|
209 |
')">(What's this?)</A></FONT>
|
|
|
210 |
</td>
|
|
|
211 |
<td>
|
|
|
212 |
[%# Now display the option button for changing the topic state #%]
|
|
|
213 |
<select name="topic_state">
|
|
|
214 |
[% FOREACH state = states %]
|
|
|
215 |
[% IF state == default_state %]
|
|
|
216 |
<option selected value="[% state %]">[% state %]</option>
|
|
|
217 |
[% ELSIF state == 'Deleted' %]
|
|
|
218 |
<option value="Deleted">Delete Topic ... </option>
|
|
|
219 |
[% ELSE %]
|
|
|
220 |
<option value="[% state %]">[% state %]</option>
|
|
|
221 |
[% END %]
|
|
|
222 |
[% END %]
|
|
|
223 |
</select>
|
|
|
224 |
</td>
|
|
|
225 |
</tr>
|
|
|
226 |
|
|
|
227 |
<tr class="tt1"><td colspan="2"> </td></tr>
|
|
|
228 |
|
|
|
229 |
|
|
|
230 |
[%# Render the submit button #%]
|
|
|
231 |
<tr>
|
|
|
232 |
<td colspan="2">
|
|
|
233 |
<input type="submit" name="button" value="Update Topic"
|
|
|
234 |
onClick="return DeleteTopicConfirm();" />
|
|
|
235 |
</td>
|
|
|
236 |
</tr>
|
|
|
237 |
|
|
|
238 |
</table>
|
|
|
239 |
</form>
|
|
|
240 |
|
|
|
241 |
[% PROCESS trailer.html.tmpl %]
|
|
|
242 |
|
|
|
243 |
</body>
|
|
|
244 |
</html>
|