Manage Institution page: improved display and quick loading using explicit fields...
[myslice.git] / portal / templates / onelab / onelab_management-tab-about.html
1 {% load portal_filters %}
2 <div class="col-md-6">
3         <div>
4                 <img src="{{ STATIC_URL|add:'img/institutions/'|add:authority.authority_hrn|add:'.gif'|file_exists }}" alt="{{authority.name}}">
5         </div>
6         <br />
7     {% if authority.name and authority.url %}
8         <h3><a href="{{authority.url}}">{{authority.name}}</a></h3>
9     {% elif authority.name %}
10         <h3>{{authority.name}}</h3>
11     {% endif %}
12         <p>
13     {% if authority.address %}
14                 {{authority.address}} <br />
15     {% endif %}
16     {% if authority.postcode %}
17                 {{authority.postcode}} 
18     {% endif %}
19     {% if authority.address %}
20         {{authority.city}} <br />
21     {% endif %}
22     {% if authority.address %}
23                 {{authority.country}}
24     {% endif %}
25         </p>
26         <br />
27
28     {% if authority.address %}
29         <h4>Onelab membership</h4> 
30         <p>
31                 {{ authority.onelab_membership }}
32         </p>
33     {% endif %}
34 </div>
35 <div class="col-md-6">
36     {% if authority.legal %}
37         <h4>Legal Contact:</h4>
38         <p>
39         {% for c in authority_contacts.legal %}
40                  {{ c }} <br />
41         {% endfor %}
42         </p>
43         <br />
44     {% endif %}
45     {% if authority.scientific %}
46         <h4>Scientific Contact:</h4>
47         <p>
48         {% for c in authority_contacts.scientific %}
49                 {{ c }} <br />
50         {% endfor %}
51         </p>
52         <br />
53     {% endif %}
54     {% if authority.technical %}
55         <h4>Technical Contact:</h4>
56         <p>
57         {% for c in authority_contacts.technical %}
58                 {{ c }} <br />
59         {% endfor %}
60         </p>
61     {% endif %}
62 </div>
63 <script>$(document).ready(function() {
64 {% if authority.name %}
65     auth_name = "{{authority.name}}";
66 {% else %}
67     auth_name = "{{authority.authority_hrn}}";
68 {% endif %}
69     $('#authority_name').text(auth_name);
70 });
71 </script>