Added a field for edit the mass of a part.

This commit is contained in:
Jan Böhmer 2019-08-24 12:55:47 +02:00
parent 016c2889ba
commit e7cc53f046
9 changed files with 231 additions and 30 deletions

View file

@ -29,4 +29,18 @@
{% endif %}
{%- endif -%}
{% endfor %}
{%- endblock choice_widget_options -%}
{%- endblock choice_widget_options -%}
{% block si_unit_widget %}
<div class="input-group">
{{ form_widget(form.value) }}
<div class="input-group-append">
{% if form.prefix is defined %}
{{ form_widget(form.prefix, {'attr': {'class': 'custom-select btn'}}) }}
{% endif %}
{% if unit is not empty %}
<label class="input-group-text">{{ unit }}</label>
{% endif %}
</div>
</div>
{% endblock %}