{% extends "site_base.html" %} {% load staticfiles %} {% load i18n %} {% load bootstrap_tags %} {% block head_title %}{% trans "Labnotes for " %} {{ commitment.from_agent.name }} doing {{ commitment.resource_type.name }} on {{ process.name }}{% endblock %} {% block extra_head %} {% endblock %} {% block body_class %}work{% endblock %} {% block body_base %}
{% include "_messages.html" %}
{% trans "Labnotes for " %} {{ commitment.from_agent.name }} {% trans "doing" %}: {{ commitment.resource_type.name }} {% trans "on Process" %}: {{ process.name }} {% trans "due" %}: {{ process.end_date }} {% trans "Estimated duration" %}: {{ commitment.quantity }} {{ commitment.unit_of_quantity.abbrev }} {% trans "Project" %}: {{ process.project }}     
{% csrf_token %} {{ wb_form.id }} {% if others_working %}

{% trans "Others working on this process" %}:

    {% for item in others_working %}
  • {{ item.from_agent }} {% trans "doing" %} {{ item.resource_type }} {% if item.has_labnotes %} Labnotes {% endif %}
  • {% endfor %}
{% endif %}
{{ wb_form.description }}

{% if process.work_requirements.count > 1 %} {% trans "My work is done" %} {{ wb_form.work_done }} {% endif %} {% trans "This process is done" %} {{ wb_form.process_done }}

{% trans "Work date" %}: {{ wb_form.event_date }} Required
{{ wb_form.quantity }}     {% if prev %}Previously: {{ prev }}{% endif %} {{ wb_form.quantity.help_text }}
{% trans "+ output" %} {% trans "+ cite" %} {% trans "+ consume" %} {% trans "+ use" %} {% trans "+ work" %}

{% trans "Output" %}:

    {% for item in process.outgoing_commitments %} {% with item.output_resource as resource %}
  • {{ item.resource_type.name }}: {% trans "Planned" %}: {{ item.quantity }} {{ item.unit_of_quantity }} {% if item.is_deletable %}
    {% csrf_token %}
    {% endif %}
    {% trans "Actual" %}: {% if item.creates_resources %}
    {{ resource.label }}    {% trans "Details" %}
    {% endif %} {% if item.failed_outputs %}
    {% else %}
  • {% endwith %} {% endfor %}
{% if process.citation_requirements %}

{% trans "Citations" %}:

{% for item in process.citation_requirements %}
  • {{ item.resource_type }} {% if item.is_deletable %}
    {% csrf_token %}
    {% endif %}
    • {% if item.onhand %} {% for resource in item.onhand %}
    • {% trans "Onhand" %}: {{ resource.label }} {% trans "Cite" %}:
    • {% endfor %} {% elif item.resource_type.producing_commitments %} {% for ct in item.resource_type.producing_commitments %}
    • {% trans "Scheduled" %}: {{ item.resource_type.name }} {{ ct.due_date }}
    • {% endfor %} {% endif %}
{% endfor %}
{% endif %} {% if process.consumed_input_requirements %}

{% trans "Consumed inputs" %}:

{% for item in process.consumed_input_requirements %}
  • {{ item.resource_type.name }} {{ item.quantity }} {{ item.unit_of_quantity }} {% if item.is_deletable %}
    {% csrf_token %}
    {% endif %}
    • {% if item.onhand %} {% for resource in item.onhand_with_fulfilled_quantity %}
    • {% trans "Onhand" %}: {{ resource.label }} {{ resource.quantity }} {{ resource.unit_of_quantity }}
      {% trans "Used" %}:
    • {% endfor %} {% elif item.resource_type.producing_commitments %} {% for ct in item.resource_type.producing_commitments %}
    • {% trans "Scheduled" %}: {{ item.resource_type.name }} {{ ct.quantity }} {{ ct.unit_of_quantity }} {{ ct.due_date }}
    • {% endfor %} {% else %}
    • {% trans "Not purchased yet" %}: {{ item.resource_type.name }}: {{ item.quantity }} {{ item.unit_of_quantity }}
      • {% for source in item.resource_type.producing_agent_relationships %}
      • {{ source.agent.name }} {% trans "Lead time" %}: {{ source.lead_time }} {% trans "days" %}
      • {% endfor %}
      {% endif %}
{% endfor %}
{% endif %} {% if process.used_input_requirements %}

{% trans "Used inputs" %}:

{% for item in process.used_input_requirements %}
  • {{ item.resource_type.name }} {{ item.quantity }} {{ item.unit_of_quantity }} {% if item.is_deletable %}
    {% csrf_token %}
    {% endif %}
    • {% if item.onhand %} {% for resource in item.onhand_with_fulfilled_quantity %}
    • {% trans "Available" %}: {{ resource.label }}
      {% trans "Used" %}:
    • {% endfor %} {% elif item.resource_type.producing_commitments %} {% for ct in item.resource_type.producing_commitments %}
    • {% trans "Scheduled" %}: {{ item.resource_type.name }} {{ ct.quantity }} {{ ct.unit_of_quantity }} {{ ct.due_date }}
    • {% endfor %} {% else %}
    • {% trans "Not purchased yet" %}: {{ item.resource_type.name }}: {{ item.quantity }} {{ item.unit_of_quantity }}
      • {% for source in item.resource_type.producing_agent_relationships %}
      • {{ source.agent.name }} {% trans "Lead time" %}: {{ source.lead_time }} {% trans "days" %}
      • {% endfor %}
      {% endif %}
{% endfor %}
{% endif %} {% if other_work_reqs %}

{% trans "Other work requirements" %}:

    {% for item in other_work_reqs %}
  • {{ item.resource_type }} {{ item.quantity }} {{ item.unit_of_quantity.abbrev }} {% if item.is_deletable %}
    {% csrf_token %}
    {% endif %}
  • {% endfor %}
{% endif %}
{% endblock %} {% block extra_script %} {% endblock %} {% block extra_body %} {{ block.super }} {% endblock %}