root / templates / edumanage / institution.html @ 0f9fca26
History | View | Annotate | Download (3.4 kB)
1 |
{% extends "edumanage/welcome.html"%} |
---|---|
2 |
{% block extrahead %} |
3 |
<style type="text/css"> |
4 |
.control-label{ |
5 |
padding-top: 0px !important; |
6 |
width: auto !important; |
7 |
} |
8 |
</style>
|
9 |
{% endblock %} |
10 |
{% block crumbs %} |
11 |
<li><a href="{% url manage %}">Home</a><span class="divider">/</span></li> |
12 |
<li class="active">Institution</li> |
13 |
{% endblock %} |
14 |
{% block homeactive %}{% endblock %} |
15 |
{% block instactive %}class="active"{% endblock %} |
16 |
{% block subcontent %} |
17 |
<h4>Institution</h4> |
18 |
<hr>
|
19 |
{% load tolocale %} |
20 |
{% if institution %} |
21 |
{% if institution.institutiondetails %} |
22 |
|
23 |
<div class="form-horizontal"> |
24 |
|
25 |
|
26 |
<div class="control-group"> |
27 |
<label class="control-label" for="id_ertype">Name</label> |
28 |
<div class="controls"> |
29 |
{% tolocale institution LANGUAGE_CODE %} |
30 |
</div>
|
31 |
</div>
|
32 |
<div class="control-group"> |
33 |
<label class="control-label" for="id_ertype">ErType</label> |
34 |
<div class="controls"> |
35 |
{{ institution.institutiondetails.get_ertype_display }} |
36 |
</div>
|
37 |
</div>
|
38 |
<div class="control-group"> |
39 |
<label class="control-label" for="id_address_street">Address Street</label> |
40 |
<div class="controls"> |
41 |
{{ institution.institutiondetails.address_street }} |
42 |
</div>
|
43 |
</div>
|
44 |
<div class="control-group"> |
45 |
<label class="control-label" for="id_address_city">Address City</label> |
46 |
<div class="controls"> |
47 |
{{ institution.institutiondetails.address_city }} |
48 |
</div>
|
49 |
</div>
|
50 |
<div class="control-group"> |
51 |
<label class="control-label" for="id_contact">Contact(s)</label> |
52 |
<div class="controls"> |
53 |
{% for contact in institution.institutiondetails.contact.all %} |
54 |
{{contact.firstname}} {{contact.lastname}} (<a href="mailto:{{contact.email}}">{{contact.email}}</a> - tel:{{contact.phone}}){% if not forloop.last %}<br>{% endif %} |
55 |
{% endfor %} |
56 |
</div>
|
57 |
</div>
|
58 |
<div class="control-group "> |
59 |
<label class="control-label" for="id_urls">Urls</label> |
60 |
|
61 |
<div class="controls"> |
62 |
{% for url in institution.institutiondetails.url.all %} |
63 |
<a href="{{url.url}}" target="_blank">{{url.url}}</a> - {{url.get_urltype_display}} ({{url.get_lang_display}}){% if not forloop.last %}<br>{% endif %} |
64 |
{% endfor %} |
65 |
</div>
|
66 |
</div>
|
67 |
<div class="control-group"> |
68 |
<label class="control-label" for="id_oper_name">Oper Name</label> |
69 |
<div class="controls"> |
70 |
{{ institution.institutiondetails.oper_name }} |
71 |
</div>
|
72 |
</div>
|
73 |
<div class="control-group"> |
74 |
<label class="control-label" for="id_number_user">Number User</label> |
75 |
<div class="controls"> |
76 |
{{ institution.institutiondetails.number_user }} |
77 |
</div>
|
78 |
</div>
|
79 |
<div class="control-group"> |
80 |
<label class="control-label" for="id_number_id">Number Id</label> |
81 |
<div class="controls"> |
82 |
{{ institution.institutiondetails.number_id }} |
83 |
</div>
|
84 |
</div>
|
85 |
<div class="control-group"> |
86 |
<div class="controls"> |
87 |
<a class="btn btn-large btn-primary" href="{% url edit-institution institution.pk %}">Edit</a> |
88 |
</div>
|
89 |
</div>
|
90 |
</div>
|
91 |
{% else %} |
92 |
<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> |
93 |
{% endif %} |
94 |
{% else %} |
95 |
<p>No institution defined!</p> |
96 |
{% endif %} |
97 |
{% endblock %} |
98 |
|