{% extends "modal_form.html" %}
{% load i18n %}

{% block pre_form_content %}

{% if build.can_complete %}
<div class='alert alert-block alert-success'>
    {% trans "Build can be completed" %}
</div>
{% else %}
<div class='alert alert-block alert-danger'>
    <b>{% trans "Build cannot be completed" %}</b><br>
    <ul>
        {% if build.incomplete_count > 0 %}
        <li>{% trans "Incompleted build outputs remain" %}</li>
        {% endif %}
        {% if build.completed < build.quantity %}
        <li>{% trans "Required build quantity has not been completed" %}</li>
        {% endif %}
    </ul>
</div>
{% endif %}
{% endblock %}