Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Commit

Permalink
essai change role
Browse files Browse the repository at this point in the history
  • Loading branch information
elouanjef committed Jan 31, 2024
1 parent 963a7fd commit 04b9230
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,17 @@ <h5 class="modal-title" id="selectRoleModalLabel">Sélectionner le rôle</h5>

$('#editUserModal').modal('hide');
});

$('#selectRoleForm').submit(function (event) {
event.preventDefault();

var userId = $('#edit-user-id').val();
var role = $('#roleSelect').val();

changeRole(userId, role);

$('#selectRoleModal').modal('hide');
});

$('#createUserForm').submit(function (event) {
event.preventDefault();
Expand Down

0 comments on commit 04b9230

Please sign in to comment.