Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame^] | 1 | [define category_css]css/ph_detail.css[end] |
| 2 | [include "../framework/header.ezt" "hidetabs"] |
| 3 | |
| 4 | <h2>Create a new user group</h2> |
| 5 | |
| 6 | [if-any read_only][include "../framework/read-only-rejection.ezt"] |
| 7 | [else] |
| 8 | |
| 9 | <form action="createGroup.do" method="POST" id="create_group_form" |
| 10 | style="margin:1em"> |
| 11 | <input type="hidden" name="token" value="[form_token]"> |
| 12 | |
| 13 | Group email address:<br> |
| 14 | <input size="30" type="text" id="groupname" name="groupname" value="[initial_name]"> |
| 15 | <span class="graytext">Example: group-name@example.com</span> |
| 16 | <div class="fielderror"> |
| 17 | <span id="groupnamefeedback"></span> |
| 18 | [if-any errors.groupname][errors.groupname][end] |
| 19 | </div> |
| 20 | <br> |
| 21 | |
| 22 | Members viewable by: |
| 23 | [include "../framework/group-setting-fields.ezt"] |
| 24 | <br> |
| 25 | |
| 26 | <input type="submit" id="submit_btn" name="btn" value="Create group"> |
| 27 | </form> |
| 28 | |
| 29 | <script type="text/javascript" nonce="[nonce]"> |
| 30 | runOnLoad(function() { |
| 31 | $("create_group_form").addEventListener("submit", function() { |
| 32 | $("submit_btn").value = "Creating group..."; |
| 33 | $("submit_btn").disabled = "disabled"; |
| 34 | }); |
| 35 | }); |
| 36 | </script> |
| 37 | |
| 38 | [end][# not read-only] |
| 39 | |
| 40 | [include "../framework/footer.ezt"] |