From 1fe23d19c099305a7f3fe8afa1477964038e57a7 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Tue, 9 Nov 2021 12:54:05 +0300 Subject: view_group.html: Use GROUP_URL for adding admins and users --- wqflask/wqflask/templates/admin/view_group.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wqflask/wqflask/templates/admin/view_group.html b/wqflask/wqflask/templates/admin/view_group.html index abbdcf0e..a89ec54d 100644 --- a/wqflask/wqflask/templates/admin/view_group.html +++ b/wqflask/wqflask/templates/admin/view_group.html @@ -7,6 +7,7 @@ {% endblock %} {% block content %} +{% set GROUP_URL = url_for('group_management.view_group', group_id=guid) %}
- +
{% endif %}
@@ -94,7 +95,7 @@
- +
{% endif %} {% else %} @@ -230,7 +231,7 @@ new_name = $('input[name=new_group_name]').val() $.ajax({ type: "POST", - url: "/groups/change_name", + url: "{{ GROUP_URL }} ", data: { group_id: $('input[name=group_id]').val(), new_name: new_name -- cgit v1.2.3