instrealmmon_edit.html 1.75 KB
Newer Older
1
{% extends "edumanage/welcome.html"%}
Kroustouris Stauros's avatar
Kroustouris Stauros committed
2
{% load staticfiles %}
3 4
{% load i18n %}

Kroustouris Stauros's avatar
Kroustouris Stauros committed
5
{% block extrajs %}
6
<script type="text/javascript" src="//maps.googleapis.com/maps/api/js?{% if GOOGLE_MAPS_API_KEY %}key={{ GOOGLE_MAPS_API_KEY }}{% endif %}"></script>
7
{% endblock %}
Kroustouris Stauros's avatar
Kroustouris Stauros committed
8

9 10
{% block homeactive %}{% endblock %}
{% block instrealmmon %}class="active"{% endblock %}
Kroustouris Stauros's avatar
Kroustouris Stauros committed
11
{% block management_content %}
Kroustouris Stauros's avatar
Kroustouris Stauros committed
12
 <h4>{% if edit %}{% trans 'Monitored realm' %}: {{form.instance.realm}} ({% trans "edit" %}){% else %}{% trans "Add Monitored Realm" %}{% endif %}</h4>
13
<hr>
Kroustouris Stauros's avatar
Kroustouris Stauros committed
14
<form method="POST" class="">
15 16 17 18 19 20 21 22 23 24 25
	{% csrf_token %}
	{% if form.non_field_errors %}
	<div class="text-error" style="color: #B94A48">{{form.non_field_errors}}</div>
	{% endif %}
	<div style="display: none">
		{{form.instid}}
	</div>
	<div class="control-group {% if form.realm.errors %} error {% endif %}">
		<label class="control-label" for="id_realm"><b>{% trans "Realm" %}</b></label>
		<div class="controls">
			{{ form.realm }}
26
			{% if form.realm.errors %} <div class="alert-danger"> {{ form.realm.errors|join:", " }} </div>
27 28 29 30 31 32 33
			{% endif %} <span class="help-block"> {{ form.realm.help_text }}</span>
		</div>
	</div>
	<div class="control-group {% if form.mon_type.errors %} error {% endif %}">
		<label class="control-label" for="id_mon_type"><b>{% trans "Monitoring Method" %}</b></label>
		<div class="controls">
			{{ form.mon_type }}
34
			{% if form.mon_type.errors %} <div class="alert-danger"> {{ form.mon_type.errors|join:", " }} </div>
35 36 37 38 39 40 41 42 43 44 45
			{% endif %} <span class="help-block"> {{ form.mon_type.help_text }}</span>
		</div>
	</div>
	<div class="control-group">
		<div class="controls">
			<button type="submit" id="applybutton" value="Apply" class="btn btn-primary"/>
			{% trans "Apply" %}</button>
		</div>
	</div>
</form>
{% endblock %}
Kroustouris Stauros's avatar
Kroustouris Stauros committed
46