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:
tonio
2010-11-26 17:35:23 +01:00
parent eff3c7d815
commit bd32445e3e
13 changed files with 250 additions and 137 deletions
+3 -2
View File
@@ -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>
+5 -2
View File
@@ -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 %}