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