Added per-user forward definition (with a custom interface available inside the "Options" menu). It will not be available for admins.

see #143
This commit is contained in:
Antoine Nguyen
2011-06-06 15:44:30 +02:00
parent a2ec92daa7
commit add222840c
7 changed files with 134 additions and 27 deletions
+18
View File
@@ -0,0 +1,18 @@
{% extends "layout_simple.html" %}
{% block html_head %}
<script src="{{ MEDIA_URL }}js/form.js" type="text/javascript"></script>
{% endblock %}
{% block content %}
{% load i18n %}
<div class="title"><h1>{% trans "Define your forward" %}</h1></div>
{% if error %}<div class="error">{{ error }}</div>{% endif %}
{% url userprefs.views.setforward as action_url %}
<form action="{{ action_url }}" method="post" name="setfwform" id="setfwform">
{% include "common/genericform.html" %}
<div class="lastrow" align="center">
<input type="submit" class="button" name="submit" value="{% trans 'Update' %}" />
</div>
</form>
{% endblock %}