mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-19 05:58:34 +02:00
Work in progress. I've moved permissions management to the new dedicated page. Adding permissions is working but deleting ones. I must also filter the list of users available when creating a super admin because the default admin appears inside :p
21 lines
549 B
HTML
21 lines
549 B
HTML
{% extends "admin/add_permission.html" %}
|
|
{% block html_head %}
|
|
{{ block.super }}
|
|
<script type="text/javascript">
|
|
window.addEvent("domready", function() {
|
|
$("id_domain").addEvent("change", function(event) {
|
|
domid = this.value;
|
|
if (domid == "") {
|
|
$("id_user").set("html", "");
|
|
return;
|
|
}
|
|
{% url domains as doms_url %}
|
|
new Request({url: "{{ doms_url }}" + domid + "/raw/",
|
|
method: "get", onSuccess: function(data) {
|
|
$("id_user").set("html", data);
|
|
}}).send();
|
|
});
|
|
});
|
|
</script>
|
|
{% endblock %}
|