przebudowa endpointow i inne porządki

This commit is contained in:
Mateusz Gruszczyński
2025-07-07 23:17:54 +02:00
parent 084e2f8221
commit 8152019632
13 changed files with 275 additions and 141 deletions

View File

@@ -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;
}

View 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;
});
});