Commit 25028c1d authored by Leonidas Poulopoulos's avatar Leonidas Poulopoulos
Browse files

Added translation strings to templates

parent 84078e5c
......@@ -3,7 +3,7 @@
<form id="add_user_form" method="POST" class="form-horizontal">
{% csrf_token %}
<div class="control-group {% if form.firstname.errors %} error {% endif %}">
<label class="control-label" for="id_firstname"><b>First name</b></label>
<label class="control-label" for="id_firstname"><b>{% trans "First name" %}</b></label>
<div class="controls">
{{ form.firstname }}
{% if form.firstname.errors %} <span class="help-inline"> {{ form.firstname.errors|join:", " }} </span>
......@@ -11,7 +11,7 @@
</div>
</div>
<div class="control-group {% if form.lastname.errors %} error {% endif %}">
<label class="control-label" for="id_lastname"><b>Last name</b></label>
<label class="control-label" for="id_lastname"><b>{% trans "Last name" %}</b></label>
<div class="controls">
{{ form.lastname }}
{% if form.lastname.errors %} <span class="help-inline"> {{ form.lastname.errors|join:", " }} </span>
......@@ -19,7 +19,7 @@
</div>
</div>
<div class="control-group {% if form.email.errors %} error {% endif %}">
<label class="control-label" for="id_email"><b>Email</b></label>
<label class="control-label" for="id_email"><b>{% trans "Email" %}</b></label>
<div class="controls">
{{ form.email }}
{% if form.email.errors %} <span class="help-inline"> {{ form.email.errors|join:", " }} </span>
......@@ -27,7 +27,7 @@
</div>
</div>
<div class="control-group {% if form.phone.errors %} error {% endif %}">
<label class="control-label" for="id_phone"><b>Phone</b></label>
<label class="control-label" for="id_phone"><b>{% trans "Phone" %}</b></label>
<div class="controls">
{{ form.phone }}
{% if form.phone.errors %} <span class="help-inline"> {{ form.phone.errors|join:", " }} </span>
......
{% extends "edumanage/welcome.html"%}
{% load i18n %}
{% block crumbs %}
<li><a href="{% url manage %}">Home</a><span class="divider">/</span></li>
<li class="active">Contacts</li>
<li><a href="{% url manage %}">{% trans "Home" %}</a><span class="divider">/</span></li>
<li class="active">{% trans "Contacts" %}</li>
{% endblock %}
{% load i18n %}
{% block extrahead %}
......@@ -97,16 +98,16 @@ $("#delcontactSubmit").click(function(){
<h4>Contacts</h4>
<hr>
<div><a href="{% url edit-contacts %}" class="btn btn-primary">Add new contact</a></div>
<div><a href="{% url edit-contacts %}" class="btn btn-primary">{% trans "Add new contact" %}</a></div>
<div class="span10"></div>
{% if contacts %}
<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" width="100%" id="table">
<thead>
<tr>
<th>Name</th>
<th>Email</th>
<th>Phone</th>
<th style="text-align: center;">Action</th>
<th>{% trans "Name" %}</th>
<th>{% trans "Email" %}</th>
<th>{% trans "Phone" %}</th>
<th style="text-align: center;">{% trans "Action" %}</th>
</tr>
</thead>
......@@ -116,7 +117,7 @@ $("#delcontactSubmit").click(function(){
<td>{{contact.firstname}} {{contact.lastname}}</td>
<td>{{contact.email}}</td>
<td>{{contact.phone}}</td>
<td style="text-align: center;"><a href="{% url edit-contacts contact.pk %}" class="btn btn-small">edit</a> <a href="#" id="del_contact_{{contact.pk}}" data-contactname="{{contact.firstname}} {{contact.lastname}}" class="btn btn-small btn-warning">delete</a></td>
<td style="text-align: center;"><a href="{% url edit-contacts contact.pk %}" class="btn btn-small">{% trans "edit" %}</a> <a href="#" id="del_contact_{{contact.pk}}" data-contactname="{{contact.firstname}} {{contact.lastname}}" class="btn btn-small btn-warning">{% trans "delete" %}</a></td>
</tr>
{% endfor %}
</tbody>
......@@ -125,14 +126,14 @@ $("#delcontactSubmit").click(function(){
<div class="modal hide fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Delete contact</h3>
<h3 id="myModalLabel">{% trans "Delete contact" %}</h3>
</div>
<div class="modal-body" id="mymodalbody">
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
<a class="btn btn-warning" id="delcontactSubmit" href="#">Delete</a>
<button class="btn" data-dismiss="modal" aria-hidden="true">{% trans "Cancel" %}</button>
<a class="btn btn-warning" id="delcontactSubmit" href="#">{% trans "Delete" %}</a>
</div>
</div>
{% endblock %}
......
{% extends "edumanage/welcome.html"%}
{% load i18n %}
{% block crumbs %}
<li><a href="{% url manage %}">Home</a><span class="divider">/</span></li>
<li><a href="{% url contacts %}">Contacts</a><span class="divider">/</span></li>
<li class="active">{% if edit %}{{form.instance.firstname}} {{form.instance.lastname}} (edit){% else %}Add Contact{% endif %}</li>
<li><a href="{% url manage %}">{% trans "Home" %}</a><span class="divider">/</span></li>
<li><a href="{% url contacts %}">{% trans "Contacts" %}</a><span class="divider">/</span></li>
<li class="active">{% if edit %}{{form.instance.firstname}} {{form.instance.lastname}} ({% trans "edit" %}){% else %}{% trans "Add Contact" %}{% endif %}</li>
{% endblock %}
{% block extrahead %}
<script type="text/javascript" src="/static/js/jquery.min.js"></script>
......@@ -16,7 +17,7 @@
{% block homeactive %}{% endblock %}
{% block contactsactive %}class="active"{% endblock %}
{% block subcontent %} <h4>{% if edit %}{{form.instance.firstname}} {{form.instance.lastname}} (edit){% else %}Add Contact{% endif %}</h4>
{% block subcontent %} <h4>{% if edit %}{{form.instance.firstname}} {{form.instance.lastname}} ({% trans "edit" %}){% else %}{% trans "Add Contact" %}{% endif %}</h4>
<hr>
<form method="POST" class="form-horizontal">
{% csrf_token %}
......@@ -29,7 +30,7 @@
{{form.instid}}
</div>
<div class="control-group {% if form.firstname.errors %} error {% endif %}">
<label class="control-label" for="id_firstname"><b>First name</b></label>
<label class="control-label" for="id_firstname"><b>{% trans "First name" %}</b></label>
<div class="controls">
{{ form.firstname }}
{% if form.firstname.errors %} <span class="help-inline"> {{ form.firstname.errors|join:", " }} </span>
......@@ -37,7 +38,7 @@
</div>
</div>
<div class="control-group {% if form.lastname.errors %} error {% endif %}">
<label class="control-label" for="id_lastname"><b>Last name</b></label>
<label class="control-label" for="id_lastname"><b>{% trans "Last name" %}</b></label>
<div class="controls">
{{ form.lastname }}
{% if form.lastname.errors %} <span class="help-inline"> {{ form.lastname.errors|join:", " }} </span>
......@@ -45,7 +46,7 @@
</div>
</div>
<div class="control-group {% if form.email.errors %} error {% endif %}">
<label class="control-label" for="id_email"><b>Email</b></label>
<label class="control-label" for="id_email"><b>{% trans "Email" %}</b></label>
<div class="controls">
{{ form.email }}
{% if form.email.errors %} <span class="help-inline"> {{ form.email.errors|join:", " }} </span>
......@@ -53,7 +54,7 @@
</div>
</div>
<div class="control-group {% if form.phone.errors %} error {% endif %}">
<label class="control-label" for="id_phone"><b>Phone</b></label>
<label class="control-label" for="id_phone"><b>{% trans "Phone" %}</b></label>
<div class="controls">
{{ form.phone }}
{% if form.phone.errors %} <span class="help-inline"> {{ form.phone.errors|join:", " }} </span>
......@@ -63,7 +64,7 @@
<div class="control-group">
<div class="controls">
<button type="submit" id="applybutton" value="Apply" class="btn btn-large btn-primary"/>
Apply</button>
{% trans "Apply" %}</button>
</div>
</div>
</form>
......
{% extends "edumanage/welcome.html"%}
{% load i18n %}
{% block extrahead %}
<style type="text/css">
.control-label{
......@@ -8,8 +9,8 @@
</style>
{% endblock %}
{% block crumbs %}
<li><a href="{% url manage %}">Home</a><span class="divider">/</span></li>
<li class="active">Institution</li>
<li><a href="{% url manage %}">{% trans "Home" %}</a><span class="divider">/</span></li>
<li class="active">{% trans "Institution" %}</li>
{% endblock %}
{% block homeactive %}{% endblock %}
{% block instactive %}class="active"{% endblock %}
......@@ -24,31 +25,31 @@
<div class="control-group">
<label class="control-label" for="id_ertype">Name</label>
<label class="control-label" for="id_ertype">{% trans "Name" %}</label>
<div class="controls">
{% tolocale institution LANGUAGE_CODE %}
</div>
</div>
<div class="control-group">
<label class="control-label" for="id_ertype">ErType</label>
<label class="control-label" for="id_ertype">{% trans "Type" %}</label>
<div class="controls">
{{ institution.institutiondetails.get_ertype_display }}
{{ institution.get_ertype_display }}
</div>
</div>
<div class="control-group">
<label class="control-label" for="id_address_street">Address Street</label>
<label class="control-label" for="id_address_street">{% trans "Address Street" %}</label>
<div class="controls">
{{ institution.institutiondetails.address_street }}
</div>
</div>
<div class="control-group">
<label class="control-label" for="id_address_city">Address City</label>
<label class="control-label" for="id_address_city">{% trans "Address City" %}</label>
<div class="controls">
{{ institution.institutiondetails.address_city }}
</div>
</div>
<div class="control-group">
<label class="control-label" for="id_contact">Contact(s)</label>
<label class="control-label" for="id_contact">{% trans "Contacts" %}</label>
<div class="controls">
{% for contact in institution.institutiondetails.contact.all %}
{{contact.firstname}} {{contact.lastname}} (<a href="mailto:{{contact.email}}">{{contact.email}}</a> - tel:{{contact.phone}}){% if not forloop.last %}<br>{% endif %}
......@@ -56,7 +57,7 @@
</div>
</div>
<div class="control-group ">
<label class="control-label" for="id_urls">Urls</label>
<label class="control-label" for="id_urls">{% trans "Urls" %}</label>
<div class="controls">
{% for url in institution.institutiondetails.url.all %}
......@@ -66,7 +67,7 @@
</div>
{% if instdets.ertype == 2 or instdets.ertype == 3 %}
<div class="control-group">
<label class="control-label" for="id_oper_name">Oper Name</label>
<label class="control-label" for="id_oper_name">{% trans "Oper Name" %}</label>
<div class="controls">
{{ institution.institutiondetails.oper_name }}
</div>
......@@ -74,29 +75,29 @@
{% endif %}
{% if instdets.ertype == 1 or instdets.ertype == 3 %}
<div class="control-group">
<label class="control-label" for="id_number_user">Number User</label>
<label class="control-label" for="id_number_user">{% trans "Number User" %}</label>
<div class="controls">
{{ institution.institutiondetails.number_user }}
</div>
</div>
{% endif %}
<div class="control-group">
<label class="control-label" for="id_number_id">Number Id</label>
<label class="control-label" for="id_number_id">{% trans "Number Id" %}</label>
<div class="controls">
{{ institution.institutiondetails.number_id }}
</div>
</div>
<div class="control-group">
<div class="controls">
<a class="btn btn-large btn-primary" href="{% url edit-institution institution.pk %}">Edit</a>
<a class="btn btn-large btn-primary" href="{% url edit-institution institution.pk %}">{% trans "Edit" %}</a>
</div>
</div>
</div>
{% else %}
<div>No institution details defined yet for {% tolocale institution LANGUAGE_CODE%} <a href="{% url edit-institution institution.pk %}" class="btn btn-small btn-primary">edit</a></div>
<div>{% trans "No institution details defined yet for" %} {% tolocale institution LANGUAGE_CODE%} <a href="{% url edit-institution institution.pk %}" class="btn btn-small btn-primary">{% trans "edit" %}</a></div>
{% endif %}
{% else %}
<p>No institution defined!</p>
<p>{% trans "No institution defined" %}</p>
{% endif %}
{% endblock %}
\ No newline at end of file
{% extends "edumanage/welcome.html"%}
{% load i18n %}
{% load tolocale %}
{% block crumbs %}
<li><a href="{% url manage %}">Home</a><span class="divider">/</span></li>
<li><a href="{% url institutions %}">Institution</a><span class="divider">/</span></li>
<li class="active">{% tolocale institution LANGUAGE_CODE%} (Edit)</li>
<li><a href="{% url manage %}">{% trans "Home" %}</a><span class="divider">/</span></li>
<li><a href="{% url institutions %}">{% trans "Institution" %}</a><span class="divider">/</span></li>
<li class="active">{% tolocale institution LANGUAGE_CODE%} ({% trans "Edit" %})</li>
{% endblock %}
{% block extrahead %}
<script type="text/javascript" src="/static/js/jquery.formset.js"></script>
......@@ -70,7 +71,7 @@ function addButton(row){
{% block homeactive %}{% endblock %}
{% block instactive %}class="active"{% endblock %}
{% block subcontent %}
<h4>{% tolocale institution LANGUAGE_CODE%} Edit</h4>
<h4>{% tolocale institution LANGUAGE_CODE%} {% trans "Edit" %}</h4>
<hr>
<form method="POST" class="form-horizontal">
{% csrf_token %}
......@@ -83,21 +84,19 @@ function addButton(row){
{{form.institution}}
</div>
<div class="control-group">
<label class="control-label" for="id_ertype">Name</label>
<label class="control-label" for="id_name">{% trans "Name" %}</label>
<div class="controls">
<input class="input" id="disabledInput" type="text" placeholder="{% tolocale institution LANGUAGE_CODE%}" disabled>
<input class="input" id="disabledInput" type="text" placeholder="{% tolocale institution LANGUAGE_CODE %}" disabled>
</div>
</div>
<div class="control-group {% if form.ertype.errors %} error {% endif %}">
<label class="control-label" for="id_ertype">ErType</label>
<label class="control-label" for="id_ertype">{% trans "Type" %}</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>
<input class="input" id="disabledInput" type="text" placeholder="{{institution.get_ertype_display}}" disabled>
</div>
</div>
<div class="control-group {% if form.address_street.errors %} error {% endif %}">
<label class="control-label" for="id_address_street">Address Street</label>
<label class="control-label" for="id_address_street">{% trans "Address Street" %}</label>
<div class="controls">
{{ form.address_street }}
{% if form.address_street.errors %} <span class="help-inline"> {{ form.address_street.errors|join:", " }} </span>
......@@ -105,7 +104,7 @@ function addButton(row){
</div>
</div>
<div class="control-group {% if form.address_city.errors %} error {% endif %}">
<label class="control-label" for="id_address_city">Address City</label>
<label class="control-label" for="id_address_city">{% trans "Address City" %}</label>
<div class="controls">
{{ form.address_city }}
{% if form.address_city.errors %} <span class="help-inline"> {{ form.address_city.errors|join:", " }} </span>
......@@ -113,7 +112,7 @@ function addButton(row){
</div>
</div>
<div class="control-group {% if form.contact.errors %} error {% endif %}">
<label class="control-label" for="id_contact">Contact(s)</label>
<label class="control-label" for="id_contact">{% trans "Contacts" %}</label>
<div class="controls">
{{ form.contact }} <button class="btn btn-small btn-info" id="add_contact"><i class="icon-plus-sign icon-white"></i>Add...</button>
{% if form.contact.errors %} <span class="help-inline"> {{ form.ertype.contact|join:", " }} </span>
......@@ -121,7 +120,7 @@ function addButton(row){
</div>
</div>
<div class="control-group {% for err in urls_form.errors %}{% if err|length > 0 %}error{% endif %}{% endfor %}{% if urls_form.non_form_errors %}error{% endif %}">
<label class="control-label" for="id_urls">Urls</label>
<label class="control-label" for="id_urls">{% trans "Urls" %}</label>
{{urls_form.management_form}}
<div class="controls">
{% for err in urls_form.errors %}{% if err|length > 0 %}<span class="help-inline">{{err}}</span>{% endif %}{% endfor %}
......@@ -143,7 +142,7 @@ function addButton(row){
</div>
{% if instdets.ertype == 2 or instdets.ertype == 3 %}
<div class="control-group {% if form.oper_name.errors %} error {% endif %}">
<label class="control-label" for="id_oper_name">Oper Name</label>
<label class="control-label" for="id_oper_name">{% trans "Oper Name" %}</label>
<div class="controls">
{{ form.oper_name }}
{% if form.oper_name.errors %} <span class="help-inline"> {{ form.oper_name.errors|join:", " }} </span>
......@@ -153,7 +152,7 @@ function addButton(row){
{% endif %}
{% if instdets.ertype == 1 or instdets.ertype == 3 %}
<div class="control-group {% if form.number_user.errors %} error {% endif %}">
<label class="control-label" for="id_number_user">Number User</label>
<label class="control-label" for="id_number_user">{% trans "Number of Users" %}</label>
<div class="controls">
{{ form.number_user }}
{% if form.number_user.errors %} <span class="help-inline"> {{ form.number_user.errors|join:", " }} </span>
......@@ -162,7 +161,7 @@ function addButton(row){
</div>
{% endif %}
<div class="control-group {% if form.number_id.errors %} error {% endif %}">
<label class="control-label" for="id_number_id">Number Id</label>
<label class="control-label" for="id_number_id">{% trans "Number Id" %}</label>
<div class="controls">
{{ form.number_id }}
{% if form.number_id.errors %} <span class="help-inline"> {{ form.number_id.errors|join:", " }} </span>
......@@ -171,22 +170,21 @@ function addButton(row){
</div>
<div class="control-group">
<div class="controls">
<button type="submit" id="applybutton" value="Apply" class="btn btn-large btn-primary"/>
Apply</button>
<button type="submit" id="applybutton" value="Apply" class="btn btn-large btn-primary"/>{% trans "Apply" %}</button>
</div>
</div>
</form>
<div class="modal hide fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Add User</h3>
<h3 id="myModalLabel">{% trans "Add User" %}</h3>
</div>
<div class="modal-body" id="mymodalbody">
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<a class="btn btn-primary" id="adduserSubmit" href="#">Save changes</a>
<button class="btn" data-dismiss="modal" aria-hidden="true">{% trans "Close" %}</button>
<a class="btn btn-primary" id="adduserSubmit" href="#">{% trans "Save changes" %}</a>
</div>
</div>
{% endblock %}
......
{% extends "edumanage/welcome.html"%}
{% load i18n %}
{% block crumbs %}
<li><a href="{% url manage %}">Home</a><span class="divider">/</span></li>
<li class="active">Realms</li>
<li><a href="{% url manage %}">{% trans "Home" %}</a><span class="divider">/</span></li>
<li class="active">{% trans "Realms" %}</li>
{% endblock %}
{% load i18n %}
{% block extrahead %}
......@@ -102,7 +103,7 @@ $("#delrealmSubmit").click(function(){
{% endfor %}
</table>
{% endif %}
<div>{% if instdets.ertype == 1 or instdets.ertype == 3 %}<a href="{% url edit-realms %}" class="btn btn-primary">Add new realm</a>{% endif %}</div>
<div>{% if instdets.ertype == 1 or instdets.ertype == 3 %}<a href="{% url edit-realms %}" class="btn btn-primary">{% trans "Add new realm" %}</a>{% endif %}</div>
<div class="span10"></div>
{% if instdets.ertype == 1 or instdets.ertype == 3 %}
{% if realms %}
......@@ -111,7 +112,7 @@ $("#delrealmSubmit").click(function(){
<tr>
<th>Realm</th>
<th>Server(s)</th>
<th style="text-align: center;">Action</th>
<th style="text-align: center;">{% trans "Action" %}</th>
</tr>
</thead>
......@@ -120,7 +121,7 @@ $("#delrealmSubmit").click(function(){
<tr class="GradeC">
<td>{{realm.realm}}</td>
<td>{{realm.get_servers}}</td>
<td style="text-align: center;"><a href="{% url edit-realms realm.pk %}" class="btn btn-small">edit</a> <a href="#" id="del_realm_{{realm.pk}}" data-realmname="{{realm.realm}}" class="btn btn-small btn-warning">delete</a></td>
<td style="text-align: center;"><a href="{% url edit-realms realm.pk %}" class="btn btn-small">{% trans "edit" %}</a> <a href="#" id="del_realm_{{realm.pk}}" data-realmname="{{realm.realm}}" class="btn btn-small btn-warning">{% trans "delete" %}</a></td>
</tr>
{% endfor %}
</tbody>
......@@ -130,14 +131,14 @@ $("#delrealmSubmit").click(function(){
<div class="modal hide fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Delete Realm</h3>
<h3 id="myModalLabel">{% trans "Delete Realm" %}</h3>
</div>
<div class="modal-body" id="mymodalbody">
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
<a class="btn btn-warning" id="delrealmSubmit" href="#">Delete</a>
<button class="btn" data-dismiss="modal" aria-hidden="true">{% trans "Cancel" %}</button>
<a class="btn btn-warning" id="delrealmSubmit" href="#">{% trans "Delete" %}</a>
</div>
</div>
{% endblock %}
......
{% extends "edumanage/welcome.html"%}
{% load i18n %}
{% block crumbs %}
<li><a href="{% url manage %}">Home</a><span class="divider">/</span></li>
<li><a href="{% url realms %}">Realms</a><span class="divider">/</span></li>
<li class="active">{% if edit %}{{form.instance.realm}} (edit){% else %}Add Realm{% endif %}</li>
<li><a href="{% url manage %}">{% trans "Home" %}</a><span class="divider">/</span></li>
<li><a href="{% url realms %}">{% trans "Realms" %}</a><span class="divider">/</span></li>
<li class="active">{% if edit %}{{form.instance.realm}} ({% trans "edit" %}){% else %}{% trans "Add Realm" %}{% endif %}</li>
{% endblock %}
{% block extrahead %}
<script type="text/javascript" src="/static/js/jquery.min.js"></script>
......@@ -16,7 +17,7 @@
{% block homeactive %}{% endblock %}
{% block realmsactive %}class="active"{% endblock %}
{% block subcontent %}<h4>{% if edit %}{{form.instance.realm}} (edit){% else %}Add Realm{% endif %}</h4>
{% block subcontent %}<h4>{% if edit %}{{form.instance.realm}} ({% trans "edit" %}){% else %}{% trans "Add Realm" %}{% endif %}</h4>
<hr>
{% if messages %}
<table class="table table-condensed">
......@@ -37,7 +38,7 @@
{{form.instid}}
</div>
<div class="control-group {% if form.realm.errors %} error {% endif %}">
<label class="control-label" for="id_realm"><b>Realm</b></label>
<label class="control-label" for="id_realm"><b>{% trans "Realm" %}</b></label>
<div class="controls">
{{ form.realm }}
{% if form.realm.errors %} <span class="help-inline"> {{ form.realm.errors|join:", " }} </span>
......@@ -45,7 +46,7 @@
</div>
</div>
<div class="control-group {% if form.proxyto.errors %} error {% endif %}">
<label class="control-label" for="id_proxyto"><b>Proxy to Servers</b></label>
<label class="control-label" for="id_proxyto"><b>{% trans "Proxy to Servers" %}</b></label>
<div class="controls">
{{ form.proxyto }}
{% if form.proxyto.errors %} <span class="help-inline"> {{ form.proxyto.errors|join:", " }} </span>
......@@ -55,7 +56,7 @@
<div class="control-group">
<div class="controls">
<button type="submit" id="applybutton" value="Apply" class="btn btn-large btn-primary"/>
Apply</button>
{% trans "Apply" %}</button>
</div>
</div>
</form>
......
{% extends "edumanage/welcome.html"%}
{% load i18n %}
{% 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><a href="{% url manage %}">{% trans "Home" %}</a><span class="divider">/</span></li>
<li><a href="{% url servers %}">{% trans "Servers" %}</a><span class="divider">/</span></li>
<li class="active">{{server.name}}</li>
{% endblock %}
{% block extrahead %}
......@@ -14,7 +15,7 @@
{% endblock %}
{% block homeactive %}{% endblock %}
{% block serversactive %}class="active"{% endblock %}
{% block subcontent %} <h4>{{server.name}}</h4>
{% block subcontent %} <h4>{{server.get_name}}</h4>
<hr>
<div class="form-horizontal">
{% csrf_token %}
......@@ -27,70 +28,70 @@
{{form.instid}}
</div>
<div class="control-group">
<label class="control-label" for="id_ertype">ErType</label>
<label class="control-label" for="id_ertype">{% trans "Type" %}</label>
<div class="controls">
{{ server.ertype }}
{{ server.get_ertype_display }}
</div>
</div>
<div class="control-group">
<label class="control-label" for="id_name">name</label>
<label class="control-label" for="id_name">{% trans "Name" %}</label>
<div class="controls">
{{ server.name }}
</div>
</div>
<div class="control-group">
<label class="control-label" for="id_host">host</label>
<label class="control-label" for="id_host">{% trans "Host" %}</label>
<div class="controls">
{{ server.host }}
</div>
</div>
{% if instdets.ertype == 1 or instdets.ertype == 3 %}
<div class="control-group">
<label class="control-label" for="id_port">port</label>
<label class="control-label" for="id_port">{% trans "Port" %}</label>
<div class="controls">
{{ server.port }}
</div>
</div>
<div class="control-group">
<label class="control-label" for="id_acct_port">acct_port</label>
<label class="control-label" for="id_acct_port">{% trans "acct_port" %}</label>
<div class="controls">
{{ server.acct_port }}
</div>
</div>
<div class="control-group">
<label class="control-label" for="id_timeout">timeout</label>
<label class="control-label" for="id_timeout">{% trans "Timeout" %}</label>
<div class="controls">
{{ server.timeout }}
</div>
</div>
<div class="control-group">
<label class="control-label" for="id_retry">retry</label>
<label class="control-label" for="id_retry">{% trans "Retry" %}</label>
<div class="controls">
{{ server.retry }}
</div>
</div>
{% endif %}
<div class="control-group">
<label class="control-label" for="id_status_server">status_server</label>
<label class="control-label" for="id_status_server">{% trans "Status Server" %}</label>
<div class="controls">
{{ server.status_server }}
</div>
</div>
<div class="control-group">
<label class="control-label" for="id_secret">secret</label>
<label class="control-label" for="id_secret">{% trans "Secret" %}</label>
<div class="controls">
{{ server.secret }}
</div>
</div>
<div class="control-group">
<label class="control-label" for="id_proto">proto</label>
<label class="control-label" for="id_proto">{% trans "Protocol" %}</label>
<div class="controls">
{{ server.proto }}
</div>
</div>
<div class="control-group">
<div class="controls">
<a class="btn btn-large btn-primary" href="{% url edit-servers service.pk %}">Edit</a>
<a class="btn btn-primary" href="{% url edit-servers service.pk %}">{% trans "Edit" %}</a>
</div>
</div>
</div>
......
{% extends "edumanage/welcome.html"%}
{% load i18n %}
{% block crumbs %}
<li><a href="{% url manage %}">Home</a><span class="divider">/</span></li>
<li class="active">Servers</li>
<li><a href="{% url manage %}">{% trans "Home" %}</a><span class="divider">/</span></li>
<li class="active">{% trans "Servers" %}</li>
{% endblock %}
{% load i18n %}
{% block extrahead %}
......@@ -104,30 +105,30 @@ $("#delserverSubmit").click(function(){
<h4>Servers</h4>
<hr>
<div><a href="{% url edit-servers %}" class="btn btn-primary">Add new server</a></div>
<div><a href="{% url edit-servers %}" class="btn btn-primary">{% trans "Add new server" %}</a></div>
<div class="span10"></div>
{% if servers %}
<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" width="100%" id="table">
<thead>
<tr>
<th>Name</th>