Build display improvements

- Reload AJAX table instead of entire page
- Clean up auto-allocate page
- Add extra message
This commit is contained in:
Oliver Walters 2020-09-21 08:05:31 +10:00
parent 7dbb6c7c8e
commit 5d6e20d897
2 changed files with 7 additions and 4 deletions

View File

@ -415,7 +415,7 @@ InvenTree | Allocate Parts
launchModalForm(
"{% url 'build-auto-allocate' build.id %}",
{
reload: true,
success: reloadTable,
}
);
});
@ -424,7 +424,7 @@ InvenTree | Allocate Parts
launchModalForm(
"{% url 'build-unallocate' build.id %}",
{
reload: true,
success: reloadTable,
}
);
});

View File

@ -1,5 +1,6 @@
{% extends "modal_form.html" %}
{% load i18n %}
{% load inventree_extras %}
{% block pre_form_content %}
{{ block.super }}
@ -28,7 +29,7 @@
{{ item.stock_item.part.full_name }}<br>
<i>{{ item.stock_item.part.description }}</i>
</td>
<td>{{ item.quantity }}</td>
<td>{% decimal item.quantity %}</td>
<td>{{ item.stock_item.location }}</td>
</tr>
{% endfor %}
@ -36,7 +37,9 @@
{% else %}
<div class='alert alert-block alert-warning'>
{% trans "No stock items found that can be allocated to this build" %}
{% trans "No stock items found that can be automatically allocated to this build" %}
<br>
{% trans "Stock items will have to be manually allocated" %}
</div>
{% endif %}