root / djnro / templates / edumanage / institution.html @ 1d70dbce
History | View | Annotate | Download (3.6 kB)
1 |
{% extends "edumanage/welcome.html"%} |
---|---|
2 |
{% load tolocale %} |
3 |
{% load i18n %} |
4 |
|
5 |
{% block homeactive %}{% endblock %} |
6 |
{% block instactive %}class="active"{% endblock %} |
7 |
{% block management_content %} |
8 |
<h4>{% trans "Institution" %}</h4> |
9 |
<hr>
|
10 |
{% if messages %} |
11 |
<table class="table table-condensed"> |
12 |
{% for message in messages %} |
13 |
<tr {% if %} class="{{ message.tags }}"{% endif %}><td>{{ message }}<td></tr> |
14 |
{% endfor %} |
15 |
</table>
|
16 |
{% endif %} |
17 |
{% if institution %} |
18 |
{% if institution.institutiondetails %} |
19 |
<div class="row"> |
20 |
<div class="col-md-12"> |
21 |
<div class="col-md-2"> |
22 |
<label for="id_ertype">{% trans "Name" %}</label> |
23 |
<div>
|
24 |
{% tolocale institution LANGUAGE_CODE %} |
25 |
</div>
|
26 |
</div>
|
27 |
<div class="col-md-2"> |
28 |
<label class="" for="id_ertype">{% trans "Type" %}</label> |
29 |
<div class=""> |
30 |
{{ institution.get_ertype_display }} |
31 |
</div>
|
32 |
</div>
|
33 |
<div class="col-md-2"> |
34 |
<label class="" for="id_address_street">{% trans "Address Street" %}</label> |
35 |
<div class=""> |
36 |
{{ institution.institutiondetails.address_street }} |
37 |
</div>
|
38 |
</div>
|
39 |
<div class="col-md-2"> |
40 |
<label class="" for="id_address_city">{% trans "Address City" %}</label> |
41 |
<div class=""> |
42 |
{{ institution.institutiondetails.address_city }} |
43 |
</div>
|
44 |
</div>
|
45 |
<div class="col-md-2"> |
46 |
<label class="" for="id_contact">{% trans "Contacts" %}</label> |
47 |
<div class=""> |
48 |
{% for contact in institution.institutiondetails.contact.all %} |
49 |
{{contact.name}} (<a href="mailto:{{contact.email}}">{{contact.email}}</a> - tel:{{contact.phone}}){% if not forloop.last %}<br>{% endif %} |
50 |
{% endfor %} |
51 |
</div>
|
52 |
</div>
|
53 |
<div class="col-md-2 "> |
54 |
<label class="" for="id_urls">{% trans "Urls" %}</label> |
55 |
|
56 |
<div class=""> |
57 |
{% for url in institution.institutiondetails.url.all %} |
58 |
<a href="{{url.url}}" target="_blank">{{url.url}}</a> - {{url.get_urltype_display}} ({{url.get_lang_display}}){% if not forloop.last %}<br>{% endif %} |
59 |
{% endfor %} |
60 |
</div>
|
61 |
</div>
|
62 |
{% if institution.ertype == 2 or institution.ertype == 3 %} |
63 |
<div class="col-md-2"> |
64 |
<label class="" for="id_oper_name">{% trans "Domain Name" %}</label> |
65 |
<div class=""> |
66 |
{{ institution.institutiondetails.oper_name }} |
67 |
</div>
|
68 |
</div>
|
69 |
{% endif %} |
70 |
{% if institution.ertype == 1 or institution.ertype == 3 %} |
71 |
<div class="col-md-2"> |
72 |
<label class="" for="id_number_user">{% trans "Number User" %}</label> |
73 |
<div class=""> |
74 |
{{ institution.institutiondetails.number_user }} |
75 |
</div>
|
76 |
</div>
|
77 |
{% endif %} |
78 |
<div class="col-md-2"> |
79 |
<label class="" for="id_number_id">{% trans "Number of IDs" %}</label> |
80 |
<div class=""> |
81 |
{{ institution.institutiondetails.number_id }} |
82 |
</div>
|
83 |
</div>
|
84 |
</div>
|
85 |
</div>
|
86 |
<div class="row"> |
87 |
<div class="col-md-12" style="margin-top: 20px;"> |
88 |
<div class="col-md-12"> |
89 |
<a class="btn btn-primary" href="{% url edit-institution institution.pk %}">{% trans "Edit" %}</a> |
90 |
</div>
|
91 |
</div>
|
92 |
</div>
|
93 |
{% else %} |
94 |
<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> |
95 |
{% endif %} |
96 |
{% else %} |
97 |
<p>{% trans "No institution defined" %}</p> |
98 |
{% endif %} |
99 |
{% endblock %} |
100 |
|