root / djnro / templates / edumanage / realms_edit.html @ 4772922a
History | View | Annotate | Download (1.8 kB)
1 |
{% extends "edumanage/welcome.html"%} |
---|---|
2 |
{% load i18n %} |
3 |
{% load staticfiles %} |
4 |
|
5 |
|
6 |
{% block homeactive %}{% endblock %} |
7 |
{% block realmsactive %}class="active"{% endblock %} |
8 |
|
9 |
{% block management_content %} |
10 |
<h4>{% if edit %}{{form.instance.realm}} ({% trans "edit" %}){% else %}{% trans "Add Realm" %}{% endif %}</h4> |
11 |
<hr>
|
12 |
{% if messages %} |
13 |
<table class="table table-condensed"> |
14 |
{% for message in messages %} |
15 |
<tr {% if %} class="{{ message.tags }}"{% endif %}><td>{{ message }}<td></tr> |
16 |
{% endfor %} |
17 |
</table>
|
18 |
{% endif %} |
19 |
{% if institution.ertype == 1 or institution.ertype == 3 %} |
20 |
<form method="POST" class=""> |
21 |
{% csrf_token %} |
22 |
{% if form.non_field_errors %} |
23 |
<p class="error"> |
24 |
{{ form.non_field_errors}} |
25 |
</p>
|
26 |
{% endif %} |
27 |
<div style="display: none"> |
28 |
{{form.instid}} |
29 |
</div>
|
30 |
<div class="form-group {% if form.realm.errors %} error {% endif %}"> |
31 |
<label class="control-label" for="id_realm"><b>{% trans "Realm" %}</b></label> |
32 |
<div class="controls"> |
33 |
{{ form.realm }} |
34 |
{% if form.realm.errors %} <span class="help-inline"> {{ form.realm.errors|join:", " }} </span> |
35 |
{% endif %} <span class="help-block"> {{ form.realm.help_text }}</span> |
36 |
</div>
|
37 |
</div>
|
38 |
<div class="control-group {% if form.proxyto.errors %} error {% endif %}"> |
39 |
<label class="control-label" for="id_proxyto"><b>{% trans "Proxy to Servers" %}</b></label> |
40 |
<div class="controls"> |
41 |
{{ form.proxyto }} |
42 |
{% if form.proxyto.errors %}<span class="help-inline"> {{ form.proxyto.errors|join:", " }} </span> |
43 |
{% endif %}<span class="help-block">{% trans "Only IdP and IdP/SP server types are allowed" %}</span> |
44 |
</div>
|
45 |
</div>
|
46 |
<div class="control-group"> |
47 |
<div class="controls"> |
48 |
<button type="submit" id="applybutton" value="Apply" class="btn btn-primary"/> |
49 |
{% trans "Apply" %}</button>
|
50 |
</div>
|
51 |
</div>
|
52 |
</form>
|
53 |
{% endif %} |
54 |
{% endblock %} |
55 |
|