feat: RBAC + SAML support

This commit is contained in:
Markos Gogoulos
2025-04-05 12:44:21 +03:00
committed by GitHub
parent 8fecccce1c
commit 05414f66c7
158 changed files with 6423 additions and 106 deletions

View File

@@ -0,0 +1,30 @@
{% extends "admin/change_form.html" %}
{% load static %}
{% block extrahead %}
{{ block.super }}
<script>
document.addEventListener('DOMContentLoaded', function() {
const importCsvField = document.querySelector('.field-import_csv');
let targetFieldset = null;
if (importCsvField) {
targetFieldset = importCsvField.closest('fieldset.module.aligned');
const inlineFormsets = document.querySelectorAll('.js-inline-admin-formset');
const lastInlineFormset = inlineFormsets[inlineFormsets.length - 1];
if (false && targetFieldset && lastInlineFormset) {
lastInlineFormset.after(targetFieldset);
}
}
const providerLabel = document.querySelector('label[for="id_provider"]');
if (providerLabel && providerLabel.textContent.includes('Provider:')) {
providerLabel.textContent = providerLabel.textContent.replace('Provider:', 'Protocol:');
}
});
</script>
{% endblock %}