diff --git a/src/fellchensammlung/templates/fellchensammlung/partials/partial-in-panel-contact-data.html b/src/fellchensammlung/templates/fellchensammlung/partials/partial-in-panel-contact-data.html new file mode 100644 index 0000000..cf7c6e7 --- /dev/null +++ b/src/fellchensammlung/templates/fellchensammlung/partials/partial-in-panel-contact-data.html @@ -0,0 +1,55 @@ +{% load i18n %} + +{% if org.website %} + + +{% endif %} + +{% if org.phone_number %} + + {{ org.website }} + + +{% endif %} + +{% if org.email %} + + {{ org.phone_number }} + + +{% endif %} + +{% if org.fediverse_profile %} + + {{ org.email }} + + +{% endif %} + +{% if org.instagram %} + + {{ org.fediverse_profile }} + + +{% endif %} + +{% if org.facebook %} + + {{ org.instagram }} + + +{% endif %} \ No newline at end of file diff --git a/src/fellchensammlung/templates/fellchensammlung/partials/partial-rescue-organization-contact.html b/src/fellchensammlung/templates/fellchensammlung/partials/partial-rescue-organization-contact.html index c5c0e6c..f3e5455 100644 --- a/src/fellchensammlung/templates/fellchensammlung/partials/partial-rescue-organization-contact.html +++ b/src/fellchensammlung/templates/fellchensammlung/partials/partial-rescue-organization-contact.html @@ -4,58 +4,13 @@ + {{ org.facebook }} +
{% trans "Kontaktdaten" %}
{% if org.has_contact_data %} - {% if org.website %} - - - {% endif %} - {% if org.phone_number %} - - {{ org.website }} - - - {% endif %} - {% if org.email %} - - {{ org.phone_number }} - - - {% endif %} - - {% if org.fediverse_profile %} - - {{ org.email }} - - - {% endif %} - {% if org.instagram %} - - {{ org.fediverse_profile }} - - - {% endif %} - - {% if org.facebook %} - - {{ org.instagram }} - - - {% endif %} + {% include "fellchensammlung/partials/partial-in-panel-contact-data.html" %} + {% elif org.parent_org.has_contact_data %} + {% with org=org.parent_org %} + {% include "fellchensammlung/partials/partial-in-panel-contact-data.html" %} + {% endwith %} {% else %} - - {{ org.facebook }} -