root / templates / edumanage / realms_edit.html @ 80d3b062
History | View | Annotate | Download (2.3 kB)
1 |
{% extends "edumanage/welcome.html"%} |
---|---|
2 |
{% load i18n %} |
3 |
{% block crumbs %} |
4 |
<li><a href="{% url manage %}">{% trans "Home" %}</a><span class="divider">/</span></li> |
5 |
<li><a href="{% url realms %}">{% trans "Realms" %}</a><span class="divider">/</span></li> |
6 |
<li class="active">{% if edit %}{{form.instance.realm}} ({% trans "edit" %}){% else %}{% trans "Add Realm" %}{% endif %}</li> |
7 |
{% endblock %} |
8 |
{% block extrahead %} |
9 |
<script type="text/javascript" src="/static/js/jquery.min.js"></script> |
10 |
<script type="text/javascript" |
11 |
src="http://maps.googleapis.com/maps/api/js?sensor=false"></script> |
12 |
|
13 |
|
14 |
|
15 |
|
16 |
{% endblock %} |
17 |
|
18 |
{% block homeactive %}{% endblock %} |
19 |
{% block realmsactive %}class="active"{% endblock %} |
20 |
{% block subcontent %}<h4>{% if edit %}{{form.instance.realm}} ({% trans "edit" %}){% else %}{% trans "Add Realm" %}{% endif %}</h4> |
21 |
<hr>
|
22 |
{% if messages %} |
23 |
<table class="table table-condensed"> |
24 |
{% for message in messages %} |
25 |
<tr {% if %} class="{{ message.tags }}"{% endif %}><td>{{ message }}<td></tr> |
26 |
{% endfor %} |
27 |
</table>
|
28 |
{% endif %} |
29 |
{% if institution.ertype == 1 or institution.ertype == 3 %} |
30 |
<form method="POST" class="form-horizontal"> |
31 |
{% csrf_token %} |
32 |
{% if form.non_field_errors %} |
33 |
<p class="error"> |
34 |
{{ form.non_field_errors}} |
35 |
</p>
|
36 |
{% endif %} |
37 |
<div style="display: none"> |
38 |
{{form.instid}} |
39 |
</div>
|
40 |
<div class="control-group {% if form.realm.errors %} error {% endif %}"> |
41 |
<label class="control-label" for="id_realm"><b>{% trans "Realm" %}</b></label> |
42 |
<div class="controls"> |
43 |
{{ form.realm }} |
44 |
{% if form.realm.errors %} <span class="help-inline"> {{ form.realm.errors|join:", " }} </span> |
45 |
{% endif %} <span class="help-block"> {{ form.realm.help_text }}</span> |
46 |
</div>
|
47 |
</div>
|
48 |
<div class="control-group {% if form.proxyto.errors %} error {% endif %}"> |
49 |
<label class="control-label" for="id_proxyto"><b>{% trans "Proxy to Servers" %}</b></label> |
50 |
<div class="controls"> |
51 |
{{ form.proxyto }} |
52 |
{% if form.proxyto.errors %} <span class="help-inline"> {{ form.proxyto.errors|join:", " }} </span> |
53 |
{% endif %} <span class="help-block"> {{ form.proxyto.help_text }}</span> |
54 |
</div>
|
55 |
</div>
|
56 |
<div class="control-group"> |
57 |
<div class="controls"> |
58 |
<button type="submit" id="applybutton" value="Apply" class="btn btn-primary"/> |
59 |
{% trans "Apply" %}</button>
|
60 |
</div>
|
61 |
</div>
|
62 |
</form>
|
63 |
{% endif %} |
64 |
{% endblock %} |
65 |
|