diff --git a/src/fellchensammlung/templates/fellchensammlung/details/detail-adoption-notice.html b/src/fellchensammlung/templates/fellchensammlung/details/detail-adoption-notice.html index a1912b9..4032f7e 100644 --- a/src/fellchensammlung/templates/fellchensammlung/details/detail-adoption-notice.html +++ b/src/fellchensammlung/templates/fellchensammlung/details/detail-adoption-notice.html @@ -218,6 +218,9 @@ +
+ {% include 'fellchensammlung/partials/adoption_process/base.html' %} +
{% if adoption_notice.further_information %}
diff --git a/src/fellchensammlung/templates/fellchensammlung/partials/adoption_process/base.html b/src/fellchensammlung/templates/fellchensammlung/partials/adoption_process/base.html new file mode 100644 index 0000000..6d37813 --- /dev/null +++ b/src/fellchensammlung/templates/fellchensammlung/partials/adoption_process/base.html @@ -0,0 +1,16 @@ +{% load custom_tags %} +{% load i18n %} + +
+
+

+ {% translate 'Adoptionsprozess' %} +

+
+
+ {% include adoption_process_template %} +
+
+ + + diff --git a/src/fellchensammlung/templates/fellchensammlung/partials/adoption_process/generic.html b/src/fellchensammlung/templates/fellchensammlung/partials/adoption_process/generic.html new file mode 100644 index 0000000..38dfe76 --- /dev/null +++ b/src/fellchensammlung/templates/fellchensammlung/partials/adoption_process/generic.html @@ -0,0 +1,31 @@ +{% load i18n %} + +
+
    + {% if adoption_notice.organization %} + {% if adoption_notice.further_information %} +
  1. {% translate 'Link zu "Weiteren Informationen" prüfen' %}
  2. + {% endif %} +
  3. + {% translate 'Organization kontaktieren' %}
    + + {% translate 'Kontaktdaten' %} + +
  4. +
  5. {% translate 'Bei erfolgreicher Vermittlung: Vermittlung als geschlossen melden' %}
  6. + {% else %} + {% if adoption_notice.further_information %} +
  7. {% translate 'Link zu "Weiteren Informationen" prüfen' %}
  8. +
  9. {% translate 'Person, die die Vermittlung eingestellt hat, kontaktieren' %}
  10. + {% else %} +
  11. + {% translate 'Person, die die Vermittlung eingestellt hat, per Kommentar kontaktieren' %} +
  12. + {% endif %} +
  13. {% translate 'Bei erfolgreicher Vermittlung: Vermittlung als geschlossen melden' %}
  14. + {% endif %} +
+
+ + diff --git a/src/fellchensammlung/views.py b/src/fellchensammlung/views.py index c8416b2..8d3682f 100644 --- a/src/fellchensammlung/views.py +++ b/src/fellchensammlung/views.py @@ -172,7 +172,8 @@ def adoption_notice_detail(request, adoption_notice_id): comment_form = CommentForm(instance=adoption_notice) context = {"adoption_notice": adoption_notice, "comment_form": comment_form, "user": request.user, "has_edit_permission": has_edit_permission, "is_subscribed": is_subscribed, - "adoption_notice_meta": adoption_notice_meta} + "adoption_notice_meta": adoption_notice_meta, + "adoption_process_template": "fellchensammlung/partials/adoption_process/generic.html"} return render(request, 'fellchensammlung/details/detail-adoption-notice.html', context=context)