{% extends "base.html" %}
{% comment %}
SPDX-License-Identifier: GPL-3.0-or-later
{% endcomment %}
{% load i18n crispy_forms_tags %}

{% block content %}
    <div class="card bg-light">
        <div class="card-header text-center">
            <h4>{% trans "Validate achievement" %}</h4>
        </div>
            <div class="card-body">
                <div class="alert alert-warning">
                    {% blocktrans %}Are you sure you want to validate this achievement? This action can't be undone.{% endblocktrans %}
                </div>
            </div>
        <div class="card-footer text-center">
            <form method="post">
                {% csrf_token %}
                <a class="btn btn-primary" href="{% url 'family:achievement_list' %}">{% trans "Return to achievements list" %}</a>
                <form method="post" action="{% url 'family:achievement_validate' pk %}">
                    {% csrf_token %}
                    <button type="submit" class="btn btn-success">{% trans "Validate" %}</button>
                </form>
            </form>
        </div>
    </div>
{% endblock %}
