initial commit
Some checks failed
Backend CI/CD / test (push) Has been cancelled
Backend CI/CD / deploy (push) Has been cancelled

This commit is contained in:
2026-05-19 20:53:08 +03:30
commit 88b793ed9f
169 changed files with 16763 additions and 0 deletions

21
static/js/scripts.js Normal file
View File

@@ -0,0 +1,21 @@
// Custom JavaScript for Django Unfold admin
document.addEventListener('DOMContentLoaded', function() {
// Add confirmation for hard delete actions
const hardDeleteButtons = document.querySelectorAll('[name="hard_delete"]');
hardDeleteButtons.forEach(button => {
button.addEventListener('click', function(e) {
if (!confirm('Are you sure you want to permanently delete this item? This action cannot be undone.')) {
e.preventDefault();
}
});
});
// Auto-resize textareas
const textareas = document.querySelectorAll('textarea');
textareas.forEach(textarea => {
textarea.addEventListener('input', function() {
this.style.height = 'auto';
this.style.height = this.scrollHeight + 'px';
});
});
});