blob: 5f8ea8fa927b1aed3103edbfdcf96989bba7b597 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
[%# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.
#%]
[% mentor_logins = [] %]
[% FOREACH mentor = bug.mentors %]
[% mentor_logins.push(mentor.login) %]
[% END %]
<tr>
<th class="field_label">Mentors:</th>
<td>
[% IF bug.check_can_change_field("bug_mentors", 0, 1) %]
<div id="bz_bug_mentors_edit_container" class="bz_default_hidden">
<span>
[% FOREACH mentor = bug.mentors %]
[% INCLUDE global/user.html.tmpl who = mentor %]
[% "<br>" UNLESS loop.last %]
[% END %]
(<a href="#" id="bz_bug_mentors_edit_action">edit</a>)
</span>
</div>
<div id="bz_bug_mentors_input">
<input type="hidden" name="defined_bug_mentors"
value="[% mentor_logins.join(", ") FILTER html %]">
[% INCLUDE global/userselect.html.tmpl
id = "bug_mentors"
name = "bug_mentors"
value = mentor_logins.join(", ")
classes = ["bz_userfield"]
size = 30
multiple = 5
%]
<br>
</div>
<script type="text/javascript">
hideEditableField('bz_bug_mentors_edit_container',
'bz_bug_mentors_input',
'bz_bug_mentors_edit_action',
'bug_mentors',
'[% mentor_logins.join(", ") FILTER js %]' );
</script>
[% ELSE %]
[% FOREACH mentor = bug.mentors %]
[% INCLUDE global/user.html.tmpl who = mentor %]<br>
[% END %]
[% END %]
</td>
</tr>
|