mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-12-02 12:13:54 +01:00
see #92
I think the refactoring is over :-) I need to add specifec events that will allow plugins to define their own roles inside the hierarchy. Otherwise, the graphical part needs some improvment, actually it's not really pretty :p
This commit is contained in:
@@ -5,9 +5,10 @@
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<div class="title"><h1>{{ title }}</h1></div>
|
||||
|
||||
{% if error %}<div class="error">{{ error }}</div>{% endif %}
|
||||
<form action="{{ action }}" method="POST" id="permform" name="permform">
|
||||
{% url admin.views.add_permission as addurl %}
|
||||
<form action="{{ addurl }}" method="POST" id="permform" name="permform">
|
||||
<input type="hidden" name="role" id="role" value="{{ role }}" />
|
||||
{% include "common/genericform.html" %}
|
||||
<div class="spacer"></div>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{% extends "nlayout.html" %}
|
||||
{% load i18n admin_extras %}
|
||||
{% load i18n libextras admin_extras %}
|
||||
{% block html_head %}
|
||||
<script src="{{ MEDIA_URL }}js/permissions.js" type="text/javascript"></script>
|
||||
{% endblock %}
|
||||
@@ -8,10 +8,13 @@
|
||||
{% permissions_menu user %}
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
{% if messages %}
|
||||
{% display_messages messages %}
|
||||
{% endif %}
|
||||
<div id="accordion">
|
||||
{% for table in permtables %}
|
||||
<h3 class="toggler atStart">{{ table.title }}</h3>
|
||||
<div class="element atStart" name="{{ table.addurl }}">
|
||||
<div class="element atStart" id="{{ table.id }}">
|
||||
{{ table.content }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user