Allow quantites in Orderdetails to be floats.

Useful for non integer based part units.
This commit is contained in:
Jan Böhmer 2019-08-31 13:08:02 +02:00
parent 40889832ca
commit b280d0c28b
7 changed files with 63 additions and 25 deletions

View file

@ -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>