mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-13 11:54:32 +02:00
Allow quantites in Orderdetails to be floats.
Useful for non integer based part units.
This commit is contained in:
parent
40889832ca
commit
b280d0c28b
7 changed files with 63 additions and 25 deletions
|
@ -32,11 +32,11 @@
|
|||
{%- endblock choice_widget_options -%}
|
||||
|
||||
{% block si_unit_widget %}
|
||||
<div class="input-group">
|
||||
<div class="input-group {% if sm %}input-group-sm{% endif %}">
|
||||
{{ form_widget(form.value) }}
|
||||
<div class="input-group-append">
|
||||
<div class="input-group-append {% if sm %}input-group-sm{% endif %}">
|
||||
{% if form.prefix is defined %}
|
||||
{{ form_widget(form.prefix, {'attr': {'class': 'custom-select btn'}}) }}
|
||||
{{ form_widget(form.prefix, {'attr': {'class': 'custom-select'}}) }}
|
||||
{% endif %}
|
||||
{% if unit is not empty %}
|
||||
<label class="input-group-text">{{ unit }}</label>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue