{% load i18n %}
{% load custom_tags %}
<div class="card">
    <div class="card-header">
        <div class="card-header-title">
            <h2 class="title is-2">
                <a href="{{ rescue_org.get_absolute_url_bulma }}">{{ rescue_org.name }}</a>
            </h2>
            <i>{% translate 'Zuletzt geprüft:' %} {{ rescue_org.last_checked_hr }}</i>
        </div>
    </div>

    <div class="card-content">
        {% if rescue_org.website %}
        <a href="{{ rescue_org.website }}" target="_blank">
              <i class="fas fa-globe" aria-label="{% translate "Website" %}"></i>
            {{ rescue_org.website|domain }}
        </a>
    {% endif %}
    </div>
    <div class="card-footer">
        <div class="card-footer-item is-paddingless">
            <form method="post">
                {% csrf_token %}
                <input type="hidden"
                       name="rescue_organization_id"
                       value="{{ rescue_org.pk }}">
                <input type="hidden" name="action" value="checked">
                <button class="is-primary is-fullwidth" type="submit">{% translate "Organisation geprüft" %}</button>

            </form>
        </div>
    </div>
</div>