2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-14 15:41:10 +00:00

Update PartCreate form

- Display list of close matches
- Invalidate form (for now)
This commit is contained in:
Oliver Walters
2019-05-11 11:55:17 +10:00
parent 4e4ee2742b
commit d9c0d2f5e3
4 changed files with 65 additions and 7 deletions

View File

@@ -0,0 +1,18 @@
{% extends "modal_form.html" %}
{% block pre_form_content %}
{{ block.super }}
{% if matches %}
<b>Matching Parts</b>
<ul class='list-group'>
{% for match in matches %}
<li class='list-group-item list-group-item-condensed'>
{{ match.part.name }} - <i>{{ match.part.description }}</i> ({{ match.ratio }}%)
</li>
{% endfor %}
</ul>
{% endif %}
{% endblock %}