aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/admin/group_manager.html17
1 files changed, 10 insertions, 7 deletions
diff --git a/wqflask/wqflask/templates/admin/group_manager.html b/wqflask/wqflask/templates/admin/group_manager.html
index 692a7abc..c5000869 100644
--- a/wqflask/wqflask/templates/admin/group_manager.html
+++ b/wqflask/wqflask/templates/admin/group_manager.html
@@ -12,7 +12,11 @@
<h1>Manage Groups</h1>
{% if admin_groups|length != 0 or member_groups|length != 0 %}
<div style="display: inline;">
- <button type="button" id="create_group" class="btn btn-primary" data-url="/groups/create">Create Group</button>
+ <a href="{{ url_for('group_management.view_create_group_page') }}" target="_blank">
+ <button type="button" class="btn btn-primary">
+ Create Group
+ </button>
+ </a>
<button type="button" id="remove_groups" class="btn btn-primary" data-url="/groups/remove">Remove Selected Groups</button>
</div>
{% endif %}
@@ -23,7 +27,11 @@
{% if admin_groups|length == 0 and member_groups|length == 0 %}
<h4>You currently aren't a member or admin of any groups.</h4>
<br>
- <button type="button" id="create_group" class="btn btn-primary" data-url="/groups/create">Create a new group</button>
+ <a href="{{ url_for('group_management.view_create_group_page') }}" target="_blank">
+ <button type="button" class="btn btn-primary">
+ Create Group
+ </button>
+ </a>
{% else %}
<div style="margin-top: 20px;"><h2>Admin Groups</h2></div>
<hr>
@@ -119,11 +127,6 @@
return $("#groups_form").submit();
};
- $("#create_group").on("click", function() {
- url = $(this).data("url")
- return submit_special(url)
- });
-
$("#remove_groups").on("click", function() {
url = $(this).data("url")
groups = []