{% extends "site_base.html" %} {% load i18n %} {% load bootstrap_tags %} {% load thumbnail %} {% block head_title %}{% trans "Resource" %}: {{ resource }}{% endblock %} {% block extra_head %} {% endblock %} {% block body_class %}work{% endblock %} {% block body_base %}
{% include "_messages.html" %} {% trans "Resource" %}: {{ resource }}   {% if agent %} {% trans "Change" %}   {% if order_form %} {% trans "Plan Work Order" %}   {% endif %} {% endif %} {% trans "Event history" %}   {% trans "Incoming Value Flow" %} {% if agent %} {% endif %}
{% comment %} {% endcomment %} {% if resource.value_per_unit_of_use and resource.resource_type.unit_of_use %} {% endif %} {% if resource.url %} {% endif %} {% if resource.current_location %} {% endif %} {% if resource.faircoin_address.address %} {% endif %} {% if resource.notes %} {% endif %} {% if resource.access_rules %} {% endif %} {% if resource.photo %} {% elif resource.photo_url %} {% endif %} {% if resource.agent_resource_roles.all %} {% endif %}
{% trans "Quantity" %} {{ resource.quantity }} {{ resource.unit_of_quantity }}
{% trans "Quality" %} {{ resource.quality }}
{% trans "Value per" %} {{ resource.resource_type.unit_of_use.abbrev }} {% trans "of use" %} {{ resource.value_per_unit_of_use }}
{% trans "URL" %} {{ resource.url|urlize }}
{% trans "Current Location" %} {{ resource.current_location }}
{% trans "FairCoin Address" %} {{ resource.faircoin_address.address }}
{% trans "Notes" %} {{ resource.notes|urlize|linebreaks }}
{% trans "Access Rules" %} {{ resource.access_rules|urlize|linebreaks }}
{% trans "Photo" %}
{% trans "Photo" %}
{% trans "Assignments" %} {% for item in resource.agent_resource_roles.all %} {{ item.role.name }} : {{ item.agent.nick }} {% if item.is_contact %} (Contact) {% endif %}
{% endfor %}
{% trans "Record created date" %} {{ resource.created_date }}
{% trans "Record created by" %} {{ resource.created_by }}
{% if resource.demands %}

{% trans "Demands" %}:

    {% for ct in resource.demands %}
  • {{ ct }}
  • {% endfor %}
{% endif %}

{% trans "Where from" %}:

{% if resource.where_from_events %}
    {% for event in resource.where_from_events %}
  • {% trans "Event" %}: {{ event.event_type }} {{ event.event_date }} {{ event.quantity }} {% trans "from" %}: {{ event.from_agent }}
  • {% if event.process %} {% endif %} {% if event.exchange %}
    • {% trans "Exchange" %}: {{ event.exchange }}
    • {% if event.exchange.payment_sources_with_contributions %}
    • {% trans "Contributions to payment for " %} {{ resource.identifier }}:
      • {% for source in event.exchange.payment_sources_with_contributions %} {% for contribution in source.cash_contribution_events %}
      • {{ contribution.event_type }}: {{ contribution.event_date }} {{ contribution.distribution_quantity_formatted }} {% trans "from" %}: {{ contribution.from_agent }}
      • {% endfor %} {% endfor %}
      {% endif %}
    {% endif %} {% endfor %}
{% else %} {% if agent %}

We don't know! Create it here!

{% trans "Add process that created resource" %}
{% else %}

We don't know.

{% endif %} {% endif %}

{% trans "Where to" %}:

{% if resource.where_to_events %}
    {% for event in resource.where_to_events %}
  • {% trans "Event" %}: {{ event.resource.label }} {{ event.event_type }} {% if event.event_type.relationship != "cite" %} {{ event.quantity }} {{ event.unit_of_quantity.abbrev }} {% endif %} {{ event.event_date }} {% trans "from" %}: {{ event.from_agent }}
  • {% if event.process %}
    • {% trans "Process" %}: {{ event.process.name }}
      • {% for req in event.process.work_requirements %}
      • {% trans "Workers" %}: {{ req.resource_type }} {% trans "from" %}: {{ req.from_agent }}
      • {% if req.description %}
        {% trans "Labnotes" %}: {{ req.description|urlize|linebreaks }}
        {% endif %} {% endfor %}
      {% for op in event.process.outputs %} {% if op.resource %}
    • {% trans "Event" %}: {{ op.event_type }} {{ op.resource_type.name }} {{ event.quantity }} {{ event.unit_of_quantity.abbrev }} {{ event.event_date }}
    • {% endif %} {% endfor %}
    {% endif %} {% endfor %}
{% else %}

Not yet!

{% endif %}
{% endblock %} {% block extra_script %} {% endblock %} {% block extra_body %} {{ block.super }} {% endblock %}