diff --git a/contacts_and_people/templates/contacts_and_people/contacts_and_people.html b/contacts_and_people/templates/contacts_and_people/contacts_and_people.html new file mode 100644 index 00000000..f4ed9c50 --- /dev/null +++ b/contacts_and_people/templates/contacts_and_people/contacts_and_people.html @@ -0,0 +1,110 @@ +{% extends entity.get_template %} +{% comment %} + +Extends the base page template, and includes the main_page_body_file specified in the view. + +{% endcomment %} +{% load typogrify_tags entity_tags thumbnail placeholder_tags %} + +{% block title %} + {{ title }} +{% endblock %} + +{% block col_class %} + {% with is_menu_node="True" %} + {{ block.super }} + {% endwith %} +{% endblock col_class %} + +{% block skip_and_language %} +{% endblock %} + +{% if pagetitle %} + {% block pagetitle %} + {{ pagetitle|typogrify }} + {% endblock pagetitle %} +{% endif %} + +{% block main_page_body %} + + {% thumbnail entity.image.file entity_image_size crop subject_location=entity.image.subject_location as image %} + + {% block arkestra_content %} + +
+ {% render_placeholder intro_page_placeholder %} + +
+
+ Contact information +
+ {% include "includes/key_contacts.html" %} + {% with entity_map_size as map_size %} + {% include "includes/contact_information.html" %} + {% endwith %} +
+ {% if image %}{% endif %} +
+
+ + {% if entity.get_people_with_roles or initials_list or people %} +
+ {% block people_search %} + Person search +
+ {% for field in search_fields %} +
+ + + + +
+ {% endfor %} +
+ {% endblock people_search %} + {% if search %} + {% if people_qs %} + {% with people_qs as people %} + {% include "includes/people_with_roles.html" %} + {% endwith %} + {% else %} +

No matching results

+ {% endif %} + {% else %} + {% if entity.get_key_people %} +
+ Key people + {% regroup entity.get_key_people by role as roles %} +
+ {% for role in roles %} +
{{ role.grouper }}
+ {% for person in role.list %} + {% thumbnail person.person.image.file person_thumbnail_size subject_location=person.person.image.subject_location crop as personimage %} +
{{person.person}}{% if personimage %} {% endif %}
+ {% endfor %} + {% endfor %} +
+
+ {% endif %} + {% endif %} + {% if initials_list %} + All people A-Z by surname + + {% endif %} + {% if people %} + {{ people_list_heading }} + {% include "includes/people_with_roles.html" %} + {% endif %} +
+ {% endif %} +
+ {% endblock arkestra_content %} + + +{% endblock main_page_body %} diff --git a/contacts_and_people/views.py b/contacts_and_people/views.py index e832a0dc..fcb1e64a 100755 --- a/contacts_and_people/views.py +++ b/contacts_and_people/views.py @@ -25,7 +25,6 @@ def contacts_and_people(request, slug): # request.path = entity.get_website.get_absolute_url() request.current_page = entity.get_website template = entity.get_template() - main_page_body_file = "contacts_and_people/entity_contacts_and_people.html" # meta values - title and meta title = "Contact information for %s" % entity @@ -99,12 +98,11 @@ def contacts_and_people(request, slug): return render_to_response( # this is a catch-all template, that then uses includes to bring in # extra information - "arkestra_utilities/entity_auto_page.html", + "contacts_and_people/contacts_and_people.html", { "entity": entity, "pagetitle": pagetitle, "entity.website.template": template, - "main_page_body_file": main_page_body_file, "email": entity.email, "title": title, "meta": meta,