{% load i18n %}
{% load custom_tags %}
<div class="card">
    <a href="{{ adoption_notice.get_absolute_url }}" class="card-header">
        <div class="card-header-title">
            {{ adoption_notice.name }}
        </div>
    </a>
    <div class="card-content">
        <i>{% translate 'Zuletzt geprüft:' %} {{ adoption_notice.last_checked_hr }}</i>
        {% if adoption_notice.further_information %}
            <p>{% translate "Externe Quelle" %}: {{ adoption_notice.link_to_more_information | safe }}</p>
        {% endif %}
        <div class="card-footer">
            <div class="card-footer-item">
                <form method="post" class="card-footer-item">
                    {% csrf_token %}
                    <input type="hidden"
                           name="adoption_notice_id"
                           value="{{ adoption_notice.pk }}">
                    <input type="hidden" name="action" value="checked_active">
                    <button class="" type="submit">{% translate "Vermittlung noch aktuell" %}</button>
                </form>
            </div>
            <div class="card-footer-item">
                <form method="post">
                    {% csrf_token %}
                    <input type="hidden"
                           name="adoption_notice_id"
                           value="{{ adoption_notice.pk }}">
                    <input type="hidden" name="action" value="checked_inactive">
                    <button class="" type="submit">{% translate "Vermittlung inaktiv" %}</button>
                </form>
            </div>
        </div>
    </div>
</div>