Revision 25028c1d templates/edumanage/institution.html
b/templates/edumanage/institution.html | ||
---|---|---|
1 | 1 |
{% extends "edumanage/welcome.html"%} |
2 |
{% load i18n %} |
|
2 | 3 |
{% block extrahead %} |
3 | 4 |
<style type="text/css"> |
4 | 5 |
.control-label{ |
... | ... | |
8 | 9 |
</style> |
9 | 10 |
{% endblock %} |
10 | 11 |
{% block crumbs %} |
11 |
<li><a href="{% url manage %}">Home</a><span class="divider">/</span></li>
|
|
12 |
<li class="active">Institution</li>
|
|
12 |
<li><a href="{% url manage %}">{% trans "Home" %}</a><span class="divider">/</span></li>
|
|
13 |
<li class="active">{% trans "Institution" %}</li>
|
|
13 | 14 |
{% endblock %} |
14 | 15 |
{% block homeactive %}{% endblock %} |
15 | 16 |
{% block instactive %}class="active"{% endblock %} |
... | ... | |
24 | 25 |
|
25 | 26 |
|
26 | 27 |
<div class="control-group"> |
27 |
<label class="control-label" for="id_ertype">Name</label>
|
|
28 |
<label class="control-label" for="id_ertype">{% trans "Name" %}</label>
|
|
28 | 29 |
<div class="controls"> |
29 | 30 |
{% tolocale institution LANGUAGE_CODE %} |
30 | 31 |
</div> |
31 | 32 |
</div> |
32 | 33 |
<div class="control-group"> |
33 |
<label class="control-label" for="id_ertype">ErType</label>
|
|
34 |
<label class="control-label" for="id_ertype">{% trans "Type" %}</label>
|
|
34 | 35 |
<div class="controls"> |
35 |
{{ institution.institutiondetails.get_ertype_display }}
|
|
36 |
{{ institution.get_ertype_display }} |
|
36 | 37 |
</div> |
37 | 38 |
</div> |
38 | 39 |
<div class="control-group"> |
39 |
<label class="control-label" for="id_address_street">Address Street</label>
|
|
40 |
<label class="control-label" for="id_address_street">{% trans "Address Street" %}</label>
|
|
40 | 41 |
<div class="controls"> |
41 | 42 |
{{ institution.institutiondetails.address_street }} |
42 | 43 |
</div> |
43 | 44 |
</div> |
44 | 45 |
<div class="control-group"> |
45 |
<label class="control-label" for="id_address_city">Address City</label>
|
|
46 |
<label class="control-label" for="id_address_city">{% trans "Address City" %}</label>
|
|
46 | 47 |
<div class="controls"> |
47 | 48 |
{{ institution.institutiondetails.address_city }} |
48 | 49 |
</div> |
49 | 50 |
</div> |
50 | 51 |
<div class="control-group"> |
51 |
<label class="control-label" for="id_contact">Contact(s)</label>
|
|
52 |
<label class="control-label" for="id_contact">{% trans "Contacts" %}</label>
|
|
52 | 53 |
<div class="controls"> |
53 | 54 |
{% for contact in institution.institutiondetails.contact.all %} |
54 | 55 |
{{contact.firstname}} {{contact.lastname}} (<a href="mailto:{{contact.email}}">{{contact.email}}</a> - tel:{{contact.phone}}){% if not forloop.last %}<br>{% endif %} |
... | ... | |
56 | 57 |
</div> |
57 | 58 |
</div> |
58 | 59 |
<div class="control-group "> |
59 |
<label class="control-label" for="id_urls">Urls</label>
|
|
60 |
<label class="control-label" for="id_urls">{% trans "Urls" %}</label>
|
|
60 | 61 |
|
61 | 62 |
<div class="controls"> |
62 | 63 |
{% for url in institution.institutiondetails.url.all %} |
... | ... | |
66 | 67 |
</div> |
67 | 68 |
{% if instdets.ertype == 2 or instdets.ertype == 3 %} |
68 | 69 |
<div class="control-group"> |
69 |
<label class="control-label" for="id_oper_name">Oper Name</label>
|
|
70 |
<label class="control-label" for="id_oper_name">{% trans "Oper Name" %}</label>
|
|
70 | 71 |
<div class="controls"> |
71 | 72 |
{{ institution.institutiondetails.oper_name }} |
72 | 73 |
</div> |
... | ... | |
74 | 75 |
{% endif %} |
75 | 76 |
{% if instdets.ertype == 1 or instdets.ertype == 3 %} |
76 | 77 |
<div class="control-group"> |
77 |
<label class="control-label" for="id_number_user">Number User</label>
|
|
78 |
<label class="control-label" for="id_number_user">{% trans "Number User" %}</label>
|
|
78 | 79 |
<div class="controls"> |
79 | 80 |
{{ institution.institutiondetails.number_user }} |
80 | 81 |
</div> |
81 | 82 |
</div> |
82 | 83 |
{% endif %} |
83 | 84 |
<div class="control-group"> |
84 |
<label class="control-label" for="id_number_id">Number Id</label>
|
|
85 |
<label class="control-label" for="id_number_id">{% trans "Number Id" %}</label>
|
|
85 | 86 |
<div class="controls"> |
86 | 87 |
{{ institution.institutiondetails.number_id }} |
87 | 88 |
</div> |
88 | 89 |
</div> |
89 | 90 |
<div class="control-group"> |
90 | 91 |
<div class="controls"> |
91 |
<a class="btn btn-large btn-primary" href="{% url edit-institution institution.pk %}">Edit</a>
|
|
92 |
<a class="btn btn-large btn-primary" href="{% url edit-institution institution.pk %}">{% trans "Edit" %}</a>
|
|
92 | 93 |
</div> |
93 | 94 |
</div> |
94 | 95 |
</div> |
95 | 96 |
{% else %} |
96 |
<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>
|
|
97 |
<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>
|
|
97 | 98 |
{% endif %} |
98 | 99 |
{% else %} |
99 |
<p>No institution defined!</p>
|
|
100 |
<p>{% trans "No institution defined" %}</p>
|
|
100 | 101 |
{% endif %} |
101 | 102 |
{% endblock %} |
102 | 103 |
|
Also available in: Unified diff