feat: Add description of adoption process
This commit is contained in:
		@@ -218,6 +218,9 @@
 | 
				
			|||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
 | 
					            <div class="block">
 | 
				
			||||||
 | 
					                {% include 'fellchensammlung/partials/adoption_process/base.html' %}
 | 
				
			||||||
 | 
					            </div>
 | 
				
			||||||
            <div class="block">
 | 
					            <div class="block">
 | 
				
			||||||
                {% if adoption_notice.further_information %}
 | 
					                {% if adoption_notice.further_information %}
 | 
				
			||||||
                    <form method="get" action="{% url 'external-site' %}">
 | 
					                    <form method="get" action="{% url 'external-site' %}">
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -0,0 +1,16 @@
 | 
				
			|||||||
 | 
					{% load custom_tags %}
 | 
				
			||||||
 | 
					{% load i18n %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<div class="card">
 | 
				
			||||||
 | 
					    <div class="card-header">
 | 
				
			||||||
 | 
					        <h2 class="card-header-title">
 | 
				
			||||||
 | 
					            {% translate 'Adoptionsprozess' %}
 | 
				
			||||||
 | 
					        </h2>
 | 
				
			||||||
 | 
					    </div>
 | 
				
			||||||
 | 
					    <div class="card-content">
 | 
				
			||||||
 | 
					        {% include adoption_process_template %}
 | 
				
			||||||
 | 
					    </div>
 | 
				
			||||||
 | 
					</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -0,0 +1,31 @@
 | 
				
			|||||||
 | 
					{% load i18n %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<div class="content">
 | 
				
			||||||
 | 
					    <ol class="adoption-process">
 | 
				
			||||||
 | 
					        {% if adoption_notice.organization %}
 | 
				
			||||||
 | 
					            {% if adoption_notice.further_information %}
 | 
				
			||||||
 | 
					                <li>{% translate 'Link zu "Weiteren Informationen" prüfen' %}</li>
 | 
				
			||||||
 | 
					            {% endif %}
 | 
				
			||||||
 | 
					            <li>
 | 
				
			||||||
 | 
					                {% translate 'Organization kontaktieren' %}<br>
 | 
				
			||||||
 | 
					                <a class="button is-info is-small is-fullwidth"
 | 
				
			||||||
 | 
					                   href="{{ adoption_notice.organization.get_absolute_url }}">
 | 
				
			||||||
 | 
					                    {% translate 'Kontaktdaten' %}
 | 
				
			||||||
 | 
					                </a>
 | 
				
			||||||
 | 
					            </li>
 | 
				
			||||||
 | 
					            <li>{% translate 'Bei erfolgreicher Vermittlung: Vermittlung als geschlossen melden' %}</li>
 | 
				
			||||||
 | 
					        {% else %}
 | 
				
			||||||
 | 
					            {% if adoption_notice.further_information %}
 | 
				
			||||||
 | 
					                <li>{% translate 'Link zu "Weiteren Informationen" prüfen' %}</li>
 | 
				
			||||||
 | 
					                <li>{% translate 'Person, die die Vermittlung eingestellt hat, kontaktieren' %}</li>
 | 
				
			||||||
 | 
					            {% else %}
 | 
				
			||||||
 | 
					                <li>
 | 
				
			||||||
 | 
					                    {% translate 'Person, die die Vermittlung eingestellt hat, per Kommentar kontaktieren' %}
 | 
				
			||||||
 | 
					                </li>
 | 
				
			||||||
 | 
					            {% endif %}
 | 
				
			||||||
 | 
					            <li>{% translate 'Bei erfolgreicher Vermittlung: Vermittlung als geschlossen melden' %}</li>
 | 
				
			||||||
 | 
					        {% endif %}
 | 
				
			||||||
 | 
					    </ol>
 | 
				
			||||||
 | 
					</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -172,7 +172,8 @@ def adoption_notice_detail(request, adoption_notice_id):
 | 
				
			|||||||
        comment_form = CommentForm(instance=adoption_notice)
 | 
					        comment_form = CommentForm(instance=adoption_notice)
 | 
				
			||||||
    context = {"adoption_notice": adoption_notice, "comment_form": comment_form, "user": request.user,
 | 
					    context = {"adoption_notice": adoption_notice, "comment_form": comment_form, "user": request.user,
 | 
				
			||||||
               "has_edit_permission": has_edit_permission, "is_subscribed": is_subscribed,
 | 
					               "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)
 | 
					    return render(request, 'fellchensammlung/details/detail-adoption-notice.html', context=context)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user