Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: appengine/monorail/templates/project/people-add-members-form.ezt

Issue 1868553004: Open Source Monorail (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/monorail/templates/project/people-add-members-form.ezt
diff --git a/appengine/monorail/templates/project/people-add-members-form.ezt b/appengine/monorail/templates/project/people-add-members-form.ezt
new file mode 100644
index 0000000000000000000000000000000000000000..d6ec30edb6a76be52853ae1c4b14504f7aa281d2
--- /dev/null
+++ b/appengine/monorail/templates/project/people-add-members-form.ezt
@@ -0,0 +1,94 @@
+
+[if-any offer_membership_editing]
+<br>
+<div class="h4" style="margin-bottom:4px" id="addmembers">Add Members</div>
+
+<div id="makechanges" class="closed">
+
+ <div class="ifClosed">
+ <textarea id="tempt" rows="4" style="color:#666; width:500px; margin-left:4px"
+ >Enter new member email addresses</textarea>
+ </div>
+
+
+<input type="hidden" name="token" value="[form_token]">
+<table class="ifOpened vt" cellspacing="2" cellpadding="2" style="margin-top:0">
+ <tr>
+ <td colspan="2">
+ <textarea name="addmembers" style="width:500px" rows="4"
+ id="addMembersTextArea">[initial_add_members]</textarea>
+ [if-any errors.addmembers]
+ <div class="fielderror">[errors.addmembers]</div>
+ [end]<br>
+ </td>
+ <td rowspan="3">
+ <div class="tip" style="margin-top:0; margin-left:4px">
+ Enter the email addresses of users that you would like to
+ add to this [is arg0 "project"]project[else]group[end].<br><br>
+ Each email address must correspond to an existing Google Account.
+ </div>
+ </td>
+ </tr>
+
+ <tr>
+ <th width="30" align="left">Role:</th>
+
+ <td width="470" align="left">
+ [is arg0 "project"]
+ <input type="radio" name="role" value="owner" id="owner">
+ <label for="owner">Owner: may make any change to this
+ project.</label><br>
+
+ <input type="radio" name="role" value="committer" id="committer"
+ checked="checked">
+ <label for="committer">Committer: may work in the project, but may
+ not reconfigure it.</label><br>
+
+ <input type="radio" name="role" value="contributor" id="contributor">
+ <label for="contributor">Contributor: starts with the same permissions
+ as non-members.</label><br>
+ [# TODO(jrobbins): custom roles]
+ [else]
+ <input type="radio" name="role" value="owner" id="owner">
+ <label for="owner">Owner: may make any change to this
+ group.</label><br>
+
+ <input type="radio" name="role" value="member" id="member"
+ checked="checked">
+ <label for="member">Member: member of this user group.</label><br>
+ [end]
+ </td>
+
+ </tr>
+ <tr>
+ <td colspan="2">
+ <input type="submit" name="addbtn" id="addbtn"
+ value="Save changes" style="margin-top:1em">
+ </td>
+ </tr>
+</table>
+
+</div>
+
+
+<script type="text/javascript" nonce="[nonce]">
+runOnLoad(function() {
+ window._openAddMembersForm = function _openAddMembersForm() {
+ document.location.hash='addmembers';
+ document.getElementById('makechanges').className = "opened";
+ window.setTimeout(
+ function () { document.getElementById('addMembersTextArea').focus(); },
+ 100);
+ }
+
+ [if-any initially_expand_form]
+ _openAddMembersForm();
+ [end]
+
+ if ($("tempt"))
+ $("tempt").addEventListener("mousedown", _openAddMembersForm);
+
+});
+</script>
+
+[end]
« no previous file with comments | « appengine/monorail/templates/framework/user-link.ezt ('k') | appengine/monorail/templates/project/people-detail-page.ezt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698