{% block pricedetail_widget %}
{% form_theme form.currency 'form/extended_bootstrap_layout.html.twig' %}
{% import 'components/collection_type.macro.html.twig' as collection %}
{{ form_widget(form.min_discount_quantity, {'attr': {'class': 'form-control-sm'}}) }} {{ form_errors(form.min_discount_quantity) }}
{{ form_widget(form.price) }}
{{ form_widget(form.currency, {'attr': {'class': 'form-control-sm'}}) }}
{{ form_errors(form.price) }}
{{ form_errors(form.currency) }}
{{ form_widget(form.price_related_quantity, {'attr': {'class': 'form-control-sm'}}) }} {{ form_errors(form.price_related_quantity) }}
{{ form_errors(form) }}
{% endblock %}
{% block orderdetail_widget %}
{% import 'components/collection_type.macro.html.twig' as collection %}
{{ form_row(form.supplier, {'attr': {'class': 'form-control-sm form-control'}}) }}
{{ form_row(form.supplierpartnr, {'attr': {'class': 'form-control-sm'}}) }}
{{ form_row(form.supplier_product_url, {'attr': {'class': 'form-control-sm'}}) }}
{{ form_widget(form.obsolete) }}
{% for price in form.pricedetails %}
{{ form_widget(price) }}
{% endfor %}
{% trans %}pricedetails.edit.min_qty{% endtrans %} |
{% trans %}pricedetails.edit.price{% endtrans %} |
{% trans %}pricedetails.edit.price_qty{% endtrans %} |
|
{{ form_errors(form) }}
{% endblock %}
{% block parameter_widget %}
{% import 'components/collection_type.macro.html.twig' as collection %}
{{ form_widget(form.name, {"attr": {"data-pages--parameters-autocomplete-target": "name"}}) }}{{ form_errors(form.name) }}
{{ form_widget(form.symbol, {"attr": {"data-pages--parameters-autocomplete-target": "symbol", "data-pages--latex-preview-target": "input"}}) }}{{ form_errors(form.symbol) }}
{{ form_widget(form.value_min) }}{{ form_errors(form.value_min) }}
{{ form_widget(form.value_typical) }}{{ form_errors(form.value_typical) }}
{{ form_widget(form.value_max) }}{{ form_errors(form.value_max) }}
{{ form_widget(form.unit, {"attr": {"data-pages--parameters-autocomplete-target": "unit", "data-pages--latex-preview-target": "input"}}) }}{{ form_errors(form.unit) }}
{{ form_widget(form.value_text) }}{{ form_errors(form.value_text) }}
{{ form_widget(form.group) }}{{ form_errors(form.group) }}
{{ form_errors(form) }}
{% endblock %}
{% block part_lot_widget %}
{% import 'components/collection_type.macro.html.twig' as collection %}
{{ form_row(form.description) }}
{{ form_row(form.storage_location) }}
{{ form_row(form.amount) }}
{{ form_row(form.instock_unknown) }}
{{ form_row(form.needs_refill) }}
{{ form_row(form.expiration_date) }}
{% set id = 'collapse_' ~ random() %}
{% trans %}part_lot.edit.advanced{% endtrans %}
{{ form_row(form.comment) }}
{{ form_row(form.owner) }}
{{ form_row(form.user_barcode) }}
{{ form_errors(form) }}
{% endblock %}
{% block attachment_widget %}
{% import 'components/collection_type.macro.html.twig' as collection %}
{{ form_row(form.name) }}
{{ form_row(form.attachment_type) }}
{{ form_row(form.secureFile) }}
{{ form_row(form.showInTable) }}
{{ form_row(form.url) }}
{{ form_row(form.downloadURL) }}
{{ form_label(form.file) }}
{{ form_widget(form.file) }}
{{ form_errors(form.file) }}
{% trans %}attachment.max_file_size{% endtrans %}: {{ max_upload_size | format_bytes }}
{% set attach = form.vars.value %}
{% if attach is not null %}
{% if attachment_manager.fileExisting(attach) %}
{% if not attach.external %}
{{ attach.filename }}
{{ attachment_manager.humanFileSize(attach) }}
{% else %}
{% trans %}attachment.external{% endtrans %}
{% endif %}
{% if attach.secure %}
{% trans %}attachment.secure{% endtrans %}
{% endif %}
{% if attach.secure and not is_granted('show_private', attach) %}
{# Leave blank #}
{% elseif attach.picture %}
{% else %}
{% trans %}attachment.view{% endtrans %}
{% endif %}
{% else %}
{% trans %}attachment.file_not_found{% endtrans %}
{% endif %}
{% endif %}
{% endblock %}
{% block part_association_widget %}
{% import 'components/collection_type.macro.html.twig' as collection %}
{{ form_widget(form) }}
{{ form_errors(form) }}
{% endblock %}