diff --git a/people/templates/people/organisation/list.html b/people/templates/people/organisation/list.html index cf2961a..c862bc7 100644 --- a/people/templates/people/organisation/list.html +++ b/people/templates/people/organisation/list.html @@ -15,39 +15,36 @@ href="{% url 'people:organisation.create' %}">New Organisation - - - - - + {% regroup organisation_list.all by current_answers.hq_country as countries %} - {% for organisation in organisation_list.all %} - - - - {% if organisation.pk in existing_relationships %} - Update Relationship - + {% for organisation in country.list %} + + + {% comment %} + - + {% if organisation.pk in existing_relationships %} + Update Relationship + - {% empty %} - - - + {% else %} + New Relationship + + {% endif %} + + {% endcomment %} + + {% endfor %} {% endfor %}
Name
{{ organisation }} - Details + {% for country in countries %} +
{{ country.grouper.name|default:"Unknown" }}
{{ organisation }} + Details - {% else %} - New Relationship - - {% endif %} -
No records