{% extends "site_base.html" %} {% load staticfiles %} {% load i18n %} {% load bootstrap_tags %} {% block head_title %}{% trans "Work" %}{% endblock %} {% block extra_head %} {% endblock %} {% block body_class %}work{% endblock %} {% block body_base %}
{% include "_messages.html" %}
{% trans "Work in Process" %}     {% trans "This week" %}     {% trans "Timeline" %}     {% trans "Process Diagram" %}     {% trans "Work Notes History" %}     {% if agent %} {% trans "Plan Work" %} {% trans "Plan Work Using Recipe" %} {% trans "Log non-production work" %} {% endif %}
{% csrf_token %}
{{ date_form.start_date }}
{{ date_form.end_date }}
{{ ca_form.context_agent }}
  To Do's
{% comment %}

{% trans "Work in process" %}

{% endcomment %} {% if context_agents %} {% for context_agent, processes in context_agents.items %}
{% trans "Project" %}: {% if context_agent %} {{ context_agent.name }} {% else %} {% trans "No project" %} {% endif %}
{% for process in processes %}
{% trans "Process" %}: {{ process.name_with_order }} {% trans "starting" %} {{ process.start_date|date:"Y-m-d" }} {% trans "ending" %} {{ process.end_date|date:"Y-m-d" }} {% if agent %} {% trans "Notes and Dates" %} {% endif %}
{% include "valueaccounting/_process_for_sked.html" %}
{% if process.notes %} {{ process.notes|urlize|linebreaks }} {% endif %}

{% trans "Previous processes" %}

{% for proc in process.previous_processes %}

{{ proc }} {% if proc in all_processes %} {% endif %}

{% endfor %}

{% trans "Next processes" %}

{% for proc in process.next_processes %}

{{ proc }} {% if proc in all_processes %} {% endif %}

{% endfor %} {% if process.independent_demand %}

{% trans "Order" %}

{{ process.independent_demand }} {% endif %}
{% endfor %} {% endfor %} {% else %} No processes scheduled for this date range and project selection {% endif %}

{% trans "Todo list" %} {% if agent %}      {% endif %} {% trans "Unfinished Todos" %}     {% trans "Finished Todos" %}

{% for todo in todos %} {% if agent and agent == todo.from_agent %} {% else %} {% endif %} {% if agent and agent == todo.from_agent %} {% with todo.todo_event as event %} {% endwith %} {% else %} {% endif %} {% endfor %}
{% trans "Due" %} {% trans "Project" %} {% trans "Poster" %} {% trans "Doer" %} {% trans "What to do" %} {% trans "Url" %} {% trans "Did what" %} {% trans "Hours" %}  
{{ todo.due_date|date:"Y-m-d" }} {{ todo.context_agent }} {{ todo.to_agent }} {% if todo.from_agent %} {{ todo.from_agent }} {% else %} ? {% endif %} {{ todo.description|urlize|linebreaks }} {% if todo.url %} {% trans "Open" %} {% endif %}
{% csrf_token %}
{% csrf_token %}
      {% if agent and agent == todo.from_agent %} {% if todo.is_deletable %} {% if agent != todo.to_agent %}
{% csrf_token %}
{% endif %} {% endif %} {% endif %} {% if agent == todo.to_agent %} {% trans "Change" %} {% if todo.is_deletable %}
{% csrf_token %}
{% endif %} {% endif %} {% if agent %} {% if not todo.from_agent %}
{% csrf_token %}
{% endif %} {% endif %} {% if agent == todo.to_agent %} {% endif %}
{% endblock %} {% block extra_script %} {% endblock %} {% block extra_body %} {{ block.super }} {% endblock %}