{% extends 'mobile/mobile_base.html' %} {% load static %} {% load i18n %} {% block title %} {% if action == 'edit' %}{% translate "Modifier bon de confection" %} {% else %}{% translate "Nouveau bon de confection" %} {% endif %} {% endblock title %} {% block upleft %} {% endblock upleft %} {% block extra_head %} {% endblock extra_head %} {% block content %} {% if other_item_context %}
{% translate "Issu du bon de préparation" %} #{{ other_item_context.preparation_order.order_number }}
{{ other_item_context.description }} ({{ other_item_context.quantity }} {% translate "unité(s)" %})
{% endif %} {% if prep_item_context %}
{% translate "Issu du bon de préparation" %} #{{ prep_item_context.preparation_order.order_number }}
{{ prep_item_context.product.name }} ({{ prep_item_context.quantity }} {% translate "unité(s)" %})
{% endif %}
{% csrf_token %} {% if form.non_field_errors %}
{% for error in form.non_field_errors %}{{ error }}{% endfor %}
{% endif %}
{% translate "Informations générales" %}
{{ form.warehouse }} {% if form.warehouse.errors %}
{{ form.warehouse.errors }}
{% endif %}
{{ form.quantity }} {% if form.quantity.errors %}
{{ form.quantity.errors }}
{% endif %}
{{ form.status }} {% if form.status.errors %}
{{ form.status.errors }}
{% endif %}
{{ form.destination }} {% if form.destination.errors %}
{{ form.destination.errors }}
{% endif %}
{% translate "Composants requis" %}

{% translate "Aucun composant ajouté" %}

{{ formset.management_form }}
{% translate "Bon de préparation" %}
{{ form.preparation_order }} {% if form.preparation_order.errors %}
{{ form.preparation_order.errors }}
{% endif %}
{% translate "Optionnel" %}
{% translate "Produit fini à ajouter au stock" %}

{% translate "Quand ce bon est terminé, le produit fini sera automatiquement ajouté au stock." %}

{% if form.output_product.errors %}
{{ form.output_product.errors }}
{% endif %}
{% translate "Si le produit existe déjà dans le stock." %}
{{ form.output_product_name }} {% if form.output_product_name.errors %}
{{ form.output_product_name.errors }}
{% endif %}
{{ form.output_location }} {% if form.output_location.errors %}
{{ form.output_location.errors }}
{% endif %}
{% translate "Laisser vide pour l'emplacement par défaut." %}
{{ form.notes }}
{% translate "Documents" %}
{% translate "Les fichiers seront joints au bon après la sauvegarde." %}
{% translate "Annuler" %}
{% endblock content %} {% block extra_scripts %} {% endblock extra_scripts %}