</div>
<div class="container tab-content">
<div class="tab-pane active row" id="about">
- <div class="col-md-6">
- <div>
- <img src="{{ STATIC_URL|add:'img/institutions/'|add:authority.authority_hrn|add:'.gif'|file_exists }}" alt="{{authority.name}}">
- </div>
- <br />
- <h3><a href="{{authority.url}}">{{authority.name}}</a></h3>
- <p>
- {{authority.address}} <br />
- {{authority.postcode}} {{authority.city}} <br />
- {{authority.country}}
- </p>
- <br />
- <h4>Onelab membership</h4>
- <p>
- {{ authority.onelab_membership }}
- </p>
- </div>
- <div class="col-md-6">
- <h4>Legal Contact:</h4>
- <p>
- {% for c in authority_contacts.legal %}
- {{ c }} <br />
- {% endfor %}
- </p>
- <br />
- <h4>Scientific Contact:</h4>
- <p>
- {% for c in authority_contacts.scientific %}
- {{ c }} <br />
- {% endfor %}
- </p>
- <br />
- <h4>Technical Contact:</h4>
- <p>
- {% for c in authority_contacts.technical %}
- {{ c }} <br />
- {% endfor %}
- </p>
- </div>
- <script>
- $(document).ready(function() {
- $('#authority_name').text("{{ authority.name|default:authority.authority_hrn }}");
- });
- </script>
</div>
<div class="tab-pane row" id="users" data-authority="{{user_details.parent_authority}}">
{% endif %}
}); // End document.ready
-/*
+
$(document).ready(function() {
$('.nav-tabs a').click(function (e) {
e.preventDefault();
$('.nav-tabs a[href=#about]').click();
}
});
-*/
</script>
{% endblock %}
{% endfor %}
</p>
</div>
-<script>
-$(document).ready(function() {
- $('#authority_name').text("{{ authority.name|default:authority.authority_hrn }}");
+<script>$(document).ready(function() {
+{% if authority.name %}
+ auth_name = "{{authority.name}}";
+{% else %}
+ auth_name = "{{authority.authority_hrn}}";
+{% endif %}
+ $('#authority_name').text(auth_name);
});
</script>