{% from 'macros/tooltips.html' import info_tooltip %} {% from 'macros/form_field_error.html' import display_form_field_errors %} {% macro draft_form(form) %}
{% if form.general_errors %} {% endif %}
{{ info_tooltip(id="id_product_name_description", text=gettext("Specify product name and description."))}}
{{ display_form_field_errors(form.product_name_errors) }}
{{ display_form_field_errors(form.description_errors) }}
{{ info_tooltip(id="id_timeframe", text=gettext("Choose a planning timeframe in which you are planning to produce and deliver your product."))}}
{{ display_form_field_errors(form.timeframe_errors) }}
{{ info_tooltip(id="id_unit", text=gettext("This value is used for informational purposes only, i.e. you do not have to adhere to any rules here. For example, if you plan to produce beverages, you are free to choose if your smallest delivery unit is one can or one six-pack of cans."))}}

{{ gettext("E.g. 1 package, 1 kilogram, 20 bottles, 1 language lesson, etc.")}}

{{ display_form_field_errors(form.unit_of_distribution_errors) }}
{{ info_tooltip(id="id_amount", text=gettext("How many of your \"smallest delivery unit\" will you produce in total? By dividing the sum of your production costs by this amount, the app calculates how much labour time is required to produce one piece of your product."))}}
{{ display_form_field_errors(form.amount_errors) }}
{{ info_tooltip(id="id_fixed_means", text=gettext("This field is mainly to account for wear and tear of machines. E.g. if you plan to use a machine that cost 10000 hours to produce, for 10 years, and you have ten one-year-plans, then for this fixed mean of production, the value would be 1000."))}}
{{ display_form_field_errors(form.means_cost_errors) }}
{{ info_tooltip(id="id_liquid_means", text=gettext("Here, recurring costs from raw materials and consumables are summarized, e.g. electricity, rent for production halls, maintenance of machines etc."))}}
{{ display_form_field_errors(form.resource_cost_errors) }}
{{ info_tooltip(id="id_labour", text=gettext("Planned hours of human work."))}}
{{ display_form_field_errors(form.labour_cost_errors) }}
{{ info_tooltip(id="id_type", text=gettext("Products and services within a supply chain should not be marked public. Only checkmark this box if your product will be generally and freely available."))}}
{{ display_form_field_errors(form.is_public_plan_errors) }}
{% endmacro %}