przebudowa endpointow i inne porządki
This commit is contained in:
@@ -159,3 +159,17 @@ input.form-control {
|
||||
border-radius: 10px 10px 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
.table-responsive {
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.table-responsive table {
|
||||
min-width: 1000px;
|
||||
}
|
||||
|
||||
.bg-dark .form-control::placeholder {
|
||||
color: #ccc !important;
|
||||
opacity: 1;
|
||||
}
|
14
static/js/user_management.js
Normal file
14
static/js/user_management.js
Normal file
@@ -0,0 +1,14 @@
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
var resetPasswordModal = document.getElementById('resetPasswordModal');
|
||||
resetPasswordModal.addEventListener('show.bs.modal', function (event) {
|
||||
var button = event.relatedTarget;
|
||||
var userId = button.getAttribute('data-user-id');
|
||||
var username = button.getAttribute('data-username');
|
||||
|
||||
var modalTitle = resetPasswordModal.querySelector('#resetUsernameLabel strong');
|
||||
modalTitle.textContent = username;
|
||||
|
||||
var form = resetPasswordModal.querySelector('#resetPasswordForm');
|
||||
form.action = '/admin/change_password/' + userId;
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user