servers_edit.html 4.81 KB
Newer Older
1
{% extends "edumanage/welcome.html"%}
2 3 4 5 6
{% block crumbs %}
	<li><a href="{% url manage %}">Home</a><span class="divider">/</span></li>
	<li><a href="{% url servers %}">Servers</a><span class="divider">/</span></li>
	<li class="active">Add-Edit</li>
{% endblock %}
7 8 9 10 11 12 13 14 15
{% block extrahead %}
<script type="text/javascript" src="/static/js/jquery.min.js"></script>
 <script type="text/javascript"
      src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
      



{% endblock %}
16 17 18
			
{% block homeactive %}{% endblock %}
{% block serversactive %}class="active"{% endblock %}
19 20
{% block subcontent %} <h4>Servers Add/Edit</h4>
<hr>
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
<form method="POST" class="form-horizontal">
	{% csrf_token %}
	{% if form.non_field_errors %}
	<p class="error">
		{{ form.non_field_errors}}
	</p>
	{% endif %}
	<div style="display: none">
		{{form.instid}}
	</div>
	<div class="control-group {% if form.ertype.errors %} error {% endif %}">
		<label class="control-label" for="id_ertype"><b>ErType</b></label>
		<div class="controls">
			{{ form.ertype }}
			{% if form.ertype.errors %} <span class="help-inline"> {{ form.ertype.errors|join:", " }} </span>
			{% endif %} <span class="help-block"> {{ form.ertype.help_text }}</span>
		</div>
	</div>
	<div class="control-group {% if form.name.errors %} error {% endif %}">
		<label class="control-label" for="id_name"><b>name</b></label>
		<div class="controls">
			{{ form.name }}
			{% if form.name.errors %} <span class="help-inline"> {{ form.name.errors|join:", " }} </span>
			{% endif %} <span class="help-block"> {{ form.name.help_text }}</span>
		</div>
	</div>
	<div class="control-group {% if form.host.errors %} error {% endif %}">
		<label class="control-label" for="id_host"><b>host</b></label>
		<div class="controls">
			{{ form.host }}
			{% if form.host.errors %} <span class="help-inline"> {{ form.host.errors|join:", " }} </span>
			{% endif %} <span class="help-block"> {{ form.host.help_text }}</span>
		</div>
	</div>
	<div class="control-group {% if form.port.errors %} error {% endif %}">
		<label class="control-label" for="id_port"><b>port</b></label>
		<div class="controls">
			{{ form.port }}
			{% if form.port.errors %} <span class="help-inline"> {{ form.port.errors|join:", " }} </span>
			{% endif %} <span class="help-block"> {{ form.port.help_text }}</span>
		</div>
	</div>
	<div class="control-group {% if form.acct_port.errors %} error {% endif %}">
		<label class="control-label" for="id_acct_port"><b>acct_port</b></label>
		<div class="controls">
			{{ form.acct_port }}
			{% if form.acct_port.errors %} <span class="help-inline"> {{ form.acct_port.errors|join:", " }} </span>
			{% endif %} <span class="help-block"> {{ form.acct_port.help_text }}</span>
		</div>
	</div>
	<div class="control-group {% if form.timeout.errors %} error {% endif %}">
		<label class="control-label" for="id_timeout"><b>timeout</b></label>
		<div class="controls">
			{{ form.timeout }}
			{% if form.timeout.errors %} <span class="help-inline"> {{ form.timeout.errors|join:", " }} </span>
			{% endif %} <span class="help-block"> {{ form.ertype.help_text }}</span>
		</div>
	</div>
	<div class="control-group {% if form.retry.errors %} error {% endif %}">
		<label class="control-label" for="id_retry"><b>retry</b></label>
		<div class="controls">
			{{ form.retry }}
			{% if form.retry.errors %} <span class="help-inline"> {{ form.retry.errors|join:", " }} </span>
			{% endif %} <span class="help-block"> {{ form.retry.help_text }}</span>
		</div>
	</div>
	<div class="control-group {% if form.status_server.errors %} error {% endif %}">
		<label class="control-label" for="id_status_server">status_server</label>
		<div class="controls">
			{{ form.status_server }}
			{% if form.status_server.errors %} <span class="help-inline"> {{ form.status_server.errors|join:", " }} </span>
			{% endif %} <span class="help-block"> {{ form.status_server.help_text }}</span>
		</div>
	</div>
	<div class="control-group {% if form.secret.errors %} error {% endif %}">
		<label class="control-label" for="id_secret"><b>secret</b></label>
		<div class="controls">
			{{ form.secret }}
			{% if form.secret.errors %} <span class="help-inline"> {{ form.secret.errors|join:", " }} </span>
			{% endif %} <span class="help-block"> {{ form.status_server.help_text }}</span>
		</div>
	</div>
	<div class="control-group {% if form.proto.errors %} error {% endif %}">
		<label class="control-label" for="id_proto"><b>proto</b></label>
		<div class="controls">
			{{ form.proto }}
			{% if form.proto.errors %} <span class="help-inline"> {{ form.proto.errors|join:", " }} </span>
			{% endif %} <span class="help-block"> {{ form.proto.help_text }}</span>
		</div>
	</div>
	<div class="control-group">
		<div class="controls">
			<button type="submit" id="applybutton" value="Apply" class="btn btn-large btn-primary"/>
			Apply</button>
		</div>
	</div>
</form>
{% endblock %}