added preferred email view, added possibility to delete ldap keys (when a None is provided as value
This commit is contained in:
parent
2986d395b2
commit
eacbb841a7
7 changed files with 60 additions and 8 deletions
22
account/templates/preferred_email.html
Normal file
22
account/templates/preferred_email.html
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{% extends "form_base.html" %}
|
||||
{% load i18n %}
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
{% block form_title %}{% trans "Preferred e-mail"%}{% endblock %}
|
||||
|
||||
{% block form_description %}
|
||||
<p>{% blocktrans %}The e-mail address that you want your c-base mail forwarded to.{% endblocktrans %}</p>
|
||||
{% endblock %}
|
||||
|
||||
{% block form_fields %}
|
||||
<form action="{% url 'preferred_email' %}" method="post" class="form-horizontal well">
|
||||
{% csrf_token %}
|
||||
{{ form|crispy }}
|
||||
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<button type="submit" class="btn btn-primary">{% trans "Save" %}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock form_fields %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue