mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Remove trailing zeros in part order form
This commit is contained in:
parent
570010b99c
commit
124967ed31
@ -1,18 +1,21 @@
|
|||||||
{% extends "modal_form.html" %}
|
{% extends "modal_form.html" %}
|
||||||
|
|
||||||
|
{% load inventree_extras %}
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
{% block form %}
|
{% block form %}
|
||||||
|
|
||||||
<h4>
|
<h4>
|
||||||
Step 1 of 2 - Select Part Suppliers
|
{% trans "Step 1 of 2 - Select Part Suppliers" %}
|
||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
{% if parts|length > 0 %}
|
{% if parts|length > 0 %}
|
||||||
<div class='alert alert-info alert-block' role='alert'>
|
<div class='alert alert-info alert-block' role='alert'>
|
||||||
Select suppliers for {{ parts|length }} parts.
|
{% trans "Select suppliers." %}
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class='alert alert-warning alert-block' role='alert'>
|
<div class='alert alert-warning alert-block' role='alert'>
|
||||||
No purchaseable parts selected.
|
{% trans "No purchaseable parts selected." %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
@ -24,9 +27,9 @@
|
|||||||
|
|
||||||
<table class='table table-condensed table-striped' id='order-wizard-part-table'>
|
<table class='table table-condensed table-striped' id='order-wizard-part-table'>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Part</th>
|
<th>{% trans "Part" %}</th>
|
||||||
<th colspan='2'>Select Supplier</th>
|
<th colspan='2'>{% trans "Select Supplier" %}</th>
|
||||||
<th>Quantity</th>
|
<th>{% trans "Quantity" %}</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
{% for part in parts %}
|
{% for part in parts %}
|
||||||
@ -51,14 +54,14 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
{% if not part.order_supplier %}
|
{% if not part.order_supplier %}
|
||||||
<span class='help-inline'>Select a supplier for <i>{{ part.name }}</i></span>
|
<span class='help-inline'>{% trans "Select a supplier for" %} <i>{{ part.name }}</i></span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div class='control-group'>
|
<div class='control-group'>
|
||||||
<div class='controls'>
|
<div class='controls'>
|
||||||
<input class='numberinput' type='number' min='0' value='{{ part.order_quantity }}' name='part-quantity-{{ part.id }}'/>
|
<input class='numberinput' type='number' min='0' value='{% decimal part.order_quantity %}' name='part-quantity-{{ part.id }}'/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
Reference in New Issue
Block a user