{% extends "site_base.html" %} {% load staticfiles %} {% load i18n %} {% load bootstrap_tags %} {% block head_title %}{% trans "My Work" %}{% endblock %} {% block extra_head %} {% endblock %} {% block body_class %}work{% endblock %} {% block body_base %}
{% include "_messages.html" %} {% trans "My Work" %} {% if agent %}    {% trans "My contributions" %}    {% trans "Comparative stats" %} {% endif %}

{% if agent %} {% comment %} {% trans "Create a production process" %} {% endcomment %} {% trans "Log non-production work" %} {% endif %}

{% trans "My unfinished production work" %}:

{% if my_work %}
    {% for item in my_work %}
  • Task: {{ item.resource_type.name }}: {{ item.quantity }} {{ item.unit_of_quantity }} {% trans "due" %} {{ item.due_date }}
  • {% if item.description %}
    • {{ item.description|urlize|linebreaks }}
    {% endif %}
    {% trans "Project" %}: {{ item.context_agent }}
    {% trans "Order" %}: {{ item.independent_demand }}
    {% trans "Process" %}: {{ item.process }} {% if item.process.started %} {% trans "Started" %} {{ item.process.started }} {% endif %}
    {% if work_now %} {% trans "Work Now" %} {% endif %} {% trans "Log work on process" %}
    {% csrf_token %}
    {% csrf_token %}
    {% endfor %}
{% else %} None {% endif %}

{% trans "Unassigned tasks using my skills" %}:

{% if my_skillz %}
    {% for item in my_skillz %}
  • {{ item.resource_type.name }}: {{ item.quantity }} {{ item.unit_of_quantity }} {% trans "due" %} {{ item.due_date }} {% if agent %} {% endif %} {% if item.description %}
    • {{ item.description|urlize|linebreaks|truncatewords_html:15 }}
    {% endif %}
  • {% trans "for process" %}: {{ item.process }}

    {% trans "for order" %}: {{ item.independent_demand }}

    {% endfor %}
{% else %} None {% endif %}

{% trans "Other unassigned tasks" %}:

{% if other_unassigned %}
    {% for item in other_unassigned %}
  • {{ item.resource_type.name }}: {{ item.quantity }} {{ item.unit_of_quantity }} {% trans "due" %} {{ item.due_date }} {% if agent %} {% endif %} {% if item.description %}
    • {{ item.description|urlize|linebreaks|truncatewords_html:15 }}
    {% endif %}
  • {% trans "for process" %}: {{ item.process }}

    {% trans "for order" %}: {{ item.independent_demand }}

      {% for source in item.resource_type.producing_agent_relationships %}
    • {% trans "Possible source" %}: {{ source.agent.name }}
    • {% endfor %}
    {% endfor %}
{% else %} None {% endif %}

{% trans "My todo list:" %} {% if agent %}      {% endif %}

{% comment %} {% endcomment %} {% comment %} {% endcomment %} {% for todo in todos %} {% if agent == todo.from_agent %} {% else %} {% endif %} {% comment %} {% endcomment %} {% comment %} {% endcomment %} {% if agent == todo.from_agent %} {% with todo.todo_event as event %} {% endwith %} {% endif %} {% endfor %}
{% trans "Due" %} {% trans "Who" %}   {% trans "What" %}  {% trans "Project" %}{% trans "Url" %}{% trans "Poster" %} 
{{ todo.due_date|date:"Y-m-d" }} Poster: {{ todo.to_agent }} {{ todo.description|urlize|linebreaks }} {{ todo.context_agent }} {% if todo.url %} {% trans "Open" %} {% endif %} {{ todo.to_agent }} {% if agent == todo.to_agent %}
{% if todo.is_deletable %}
{% csrf_token %}
{% endif %}
{% else %} {% if todo.is_deletable %}
{% csrf_token %}
{% endif %} {% endif %}
{% csrf_token %}
{% csrf_token %}

{% trans "Other unassigned todos:" %}

(not working yet)
{% endblock %} {% block extra_script %} {% endblock %} {% block extra_body %} {{ block.super }} {% endblock %}