{% extends 'modal_base.html' %}
{% load i18n %}

{% block title %}
    {% if certificationstatus.pk %}
        {% trans 'Edit assessment level' %}
    {% else %}
        {% blocktrans trimmed %}
            New assessment level
        {% endblocktrans %}
    {% endif %}
{% endblock %}

{% block body %}
    <form action="{% if certificationstatus.pk %}{{ certificationstatus.get_edit_url }}{% else %}{{ competency_tree.get_certification_status_create_url }}{% endif %}" method="post">{% csrf_token %}
        <div class="modal-body">
            {% include 'extras/form.html' %}
        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-default pull-left" data-dismiss="modal">{% trans 'Cancel' %}</button>
            <input class="btn btn-danger pull-right" type="submit" value="{% trans 'Confirm' %}" />
        </div>
    </form>
{% endblock %}
