Extra form info

This commit is contained in:
Oliver Walters 2019-06-11 23:58:00 +10:00
parent 1cb6c67086
commit 3460a48b63

View File

@ -2,6 +2,16 @@
{% block form %} {% block form %}
{% if parts|length > 0 %}
<div class='alert alert-info alert-block' role='alert'>
Select suppliers for {{ parts|length }} parts.
</div>
{% else %}
<div class='alert alert-warning alert-block' role='alert'>
No purchaseable parts selected.
</div>
{% endif %}
<form method="post" action='' class='js-modal-form' enctype="multipart/form-data"> <form method="post" action='' class='js-modal-form' enctype="multipart/form-data">
{% csrf_token %} {% csrf_token %}
{% load crispy_forms_tags %} {% load crispy_forms_tags %}