aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBonfaceKilz2021-11-08 08:57:57 +0300
committerBonfaceKilz2021-11-11 09:32:26 +0300
commit8766b3104be9cdbe00f594c936442b76f3b9a83e (patch)
treeeb49859264bfe7af2093c625d4d8df7c6662e80f
parent1184fa8b540b1fef205fd87e3a8f0a8a2c702d76 (diff)
downloadgenenetwork2-8766b3104be9cdbe00f594c936442b76f3b9a83e.tar.gz
Update "create_group" endpoint in template
-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 = []