{% from 'macros/tooltips.html' import info_tooltip %} {% from 'macros/copy_toggle.html' import copy_toggle %} {% macro plan_details(view_model) %}

{{ gettext("Plan information") }}

{{ info_tooltip(id="id_plan_id", text=gettext("This plan ID identifies your plan. It is used to account for labour time by workers and companies that work on, or respectively consume, the planned product or service.")) }}

{{ view_model.details.plan_id[0] }}

{{ view_model.details.plan_id[1] }}  {{ copy_toggle(view_model.details.plan_id[1]) }}

{{ view_model.details.description[0] }}

{% for paragraph in view_model.details.description[1] %}{{ paragraph }}
{% endfor %}

{{ view_model.details.product_name[0] }}

{{ view_model.details.product_name[1] }}

{{ view_model.details.planner[0] }}

{{ view_model.details.planner[3] }}

{{ info_tooltip(id="id_plan_status", text=gettext("Status can be \"Active\", i.e. plan was approved and current date is within planning timeframe, or \"Inactive\", i.e. plan is not yet approved or it is expired.")) }}

{{ view_model.details.activity_string[0] }}

{{ view_model.details.activity_string[1] }}

{{ view_model.details.timeframe[0] }}

({{ view_model.details.active_days}} / {{ view_model.details.timeframe[1] }})

{{ gettext("Plan creation") }} {{ view_model.details.creation_date }}
{{ gettext("Plan approval") }} {{ view_model.details.approval_date }}
{{ gettext("Plan expiration") }} {{ view_model.details.expiration_date }}
{{ info_tooltip(id="id_amount", text=gettext("This is the amount you plan to deliver.")) }}

{{ view_model.details.amount[0] }}

{{ view_model.details.amount[1] }}

{{ view_model.details.production_unit[0] }}

{{ view_model.details.production_unit[1] }}

{{ 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.")) }}

{{ view_model.details.means_cost[0] }}

{{ view_model.details.means_cost[1] }}

{{ 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.")) }}

{{ view_model.details.resources_cost[0] }}

{{ view_model.details.resources_cost[1] }}

{{ info_tooltip(id="id_labour", text=gettext("Planned hours of human work.")) }}

{{ view_model.details.labour_cost[0] }}

{{ view_model.details.labour_cost[1] }}

{{ info_tooltip(id="id_type", text=gettext("\"Type\" can be either \"Productive\" or \"Public\". Products from the latter can be consumed for free, and are funded via the Factor of Individual Consumption (FIC).")) }}

{{ view_model.details.type_of_plan[0] }}

{{ view_model.details.type_of_plan[1] }}

{{ info_tooltip(id="id_price_per_unit", text=gettext("This is the amount of time that is debited when the product is consumed. 0 for public plans.")) }}

{{ view_model.details.price_per_unit[0] }}

{{ view_model.details.price_per_unit[1] }} {% if view_model.details.price_per_unit[2] %} {{ "hands-helping"|icon }} {% endif %}

{{ info_tooltip(id="id_labour_per_unit", text=gettext("This field shows working hours spent per produced unit.")) }}

{{ view_model.details.labour_cost_per_unit[0] }}

{{ view_model.details.labour_cost_per_unit[1] }}

{% endmacro %}