mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-31 00:04:40 +02:00
Added a field for edit the mass of a part.
This commit is contained in:
parent
016c2889ba
commit
e7cc53f046
9 changed files with 231 additions and 30 deletions
|
@ -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 %}
|
Loading…
Add table
Add a link
Reference in a new issue