blob: f013a0a80995057af4f4b826799ebf12a20d3b6d [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001
2[if-any offer_membership_editing]
3<br>
4<div class="h4" style="margin-bottom:4px" id="addmembers">Add Members</div>
5
6<div id="makechanges" class="closed">
7
8 <div class="ifClosed">
9 <textarea id="tempt" rows="4" style="color:#666; width:500px; margin-left:4px"
10 >Enter new member email addresses</textarea>
11 </div>
12
13
14<table class="ifOpened vt" cellspacing="2" cellpadding="2" style="margin-top:0">
15 <tr>
16 <td colspan="2">
17 <textarea name="addmembers" style="width:500px" rows="4"
18 id="addMembersTextArea">[initial_add_members]</textarea>
19 [if-any errors.addmembers]
20 <div class="fielderror">[errors.addmembers]</div>
21 [end]<br>
22 </td>
23 <td rowspan="3">
24 <div class="tip" style="margin-top:0; margin-left:4px">
25 Enter the email addresses of users that you would like to
26 add to this [is arg0 "project"]project[else]
27 [is arg0 "hotlist"]hotlist.
28 <strong>You can also add group lists to give every member of the group permission to edit this hotlist</strong>
29 [else]group[end][end].<br><br>
30 Each email address must correspond to a Google Account when in use.
31 </div>
32 </td>
33 </tr>
34
35 <tr>
36 <th width="30" align="left">Role:</th>
37
38 <td width="470" align="left">
39 [is arg0 "project"]
40 <input type="radio" name="role" value="owner" id="owner">
41 <label for="owner">Owner: may make any change to this
42 project.</label><br>
43
44 <input type="radio" name="role" value="committer" id="committer"
45 checked="checked">
46 <label for="committer">Committer: may work in the project, but may
47 not reconfigure it.</label><br>
48
49 <input type="radio" name="role" value="contributor" id="contributor">
50 <label for="contributor">Contributor: starts with the same permissions
51 as non-members.</label><br>
52 [# TODO(jrobbins): custom roles]
53 [else][is arg0 "hotlist"]
54 <input type="radio" name="role" value="editor" id="editor"
55 checked="checked">
56 <label for="editor">Editor: may add/remove/rank issues.</label><br>
57 [if-any errors.incorrect_email_input]
58 <div class="fielderror">[errors.incorrect_email_input]</div>
59 [end]
60 [else]
61 <input type="radio" name="role" value="owner" id="owner">
62 <label for="owner">Owner: may make any change to this
63 group.</label><br>
64
65 <input type="radio" name="role" value="member" id="member"
66 checked="checked">
67 <label for="member">Member: member of this user group.</label><br>
68 [end][end]
69 </td>
70
71 </tr>
72 <tr>
73 <td colspan="2">
74 <input type="submit" name="addbtn" id="addbtn"
75 value="Save changes" style="margin-top:1em">
76 </td>
77 </tr>
78</table>
79
80</div>
81
82
83<script type="text/javascript" nonce="[nonce]">
84runOnLoad(function() {
85 window._openAddMembersForm = function _openAddMembersForm() {
86 document.location.hash='addmembers';
87 document.getElementById('makechanges').className = "opened";
88 window.setTimeout(
89 function () { document.getElementById('addMembersTextArea').focus(); },
90 100);
91 }
92
93 [if-any initially_expand_form]
94 _openAddMembersForm();
95 [end]
96
97 if ($("tempt"))
98 $("tempt").addEventListener("mousedown", _openAddMembersForm);
99
100});
101</script>
102
103[end]