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/sitewide/group-create-page.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/sitewide/group-create-page.ezt
diff --git a/appengine/monorail/templates/sitewide/group-create-page.ezt b/appengine/monorail/templates/sitewide/group-create-page.ezt
new file mode 100644
index 0000000000000000000000000000000000000000..9d54b028c6c9ba299a9dc2aa0b251f71309d2351
--- /dev/null
+++ b/appengine/monorail/templates/sitewide/group-create-page.ezt
@@ -0,0 +1,43 @@
+[define category_css]css/ph_detail.css[end]
+[include "../framework/master-header.ezt" "hidetabs"]
+
+<h2>Create a new user group</h2>
+
+[if-any read_only][include "../framework/read-only-rejection.ezt"]
+[else]
+
+<form action="createGroup.do" method="POST" id="create_group_form"
+ style="margin:1em">
+ <input type="hidden" name="token" value="[form_token]">
+
+ Group email address:<br>
+ <input size="30" type="text" id="groupname" name="groupname" value="[initial_name]">
+ <span class="graytext">Example: group-name@example.com</span>
+ <div class="fielderror">
+ <span id="groupnamefeedback"></span>
+ [if-any errors.groupname][errors.groupname][end]
+ </div>
+ <br>
+
+ Members viewable by:
+ [include "../framework/group-setting-fields.ezt"]
+ <br>
+
+ <input type="submit" id="submit_btn" name="btn" value="Create group">
+</form>
+
+<script type="text/javascript" nonce="[nonce]">
+runOnLoad(function() {
+ $("create_group_form").addEventListener("submit", function() {
+ $("submit_btn").value = "Creating group...";
+ $("submit_btn").disabled = "disabled";
+ });
+});
+</script>
+
+[include "../framework/footer-script.ezt"]
+
+
+[end][# not read-only]
+
+[include "../framework/master-footer.ezt"]

Powered by Google App Engine
This is Rietveld 408576698