{% extends "site_base.html" %} {% load staticfiles %} {% load i18n %} {% load bootstrap_tags %} {% block head_title %}{% trans "Distribution" %}{% endblock %} {% block extra_head %} {% endblock %} {% block body_base %}
{% include "_messages.html" %}
{% if context_agent %} {% trans "Create Distribution for " %} {{ context_agent }} {% trans "Value Equation Sandbox" %} {% trans "Edit Value Equation" %} {% trans "Value Equations List" %}

{% trans "Distribution" %}:

{% csrf_token %}

{% trans "Value Equation" %}

{{ header_form.value_equation }}

{% trans "Select one or more sources to be distributed" %}{% trans "OR" %}{% trans "Enter amount to distribute" %}
{{ header_form.events_to_distribute }}
  {{ header_form.money_to_distribute }}
{% trans "and source Cash Resource Account" %}
{{ header_form.resource }}
{% trans "if you selected one cash receipt, you may distribute any part of it" %}
{{ header_form.partial_distribution }}

{% trans "Distribution date" %}

{{ header_form.start_date }}

{% trans "Comments" %}

{{ header_form.notes }}

{% trans "Bucket filters" %}: {% for bucket in buckets %}
{{ bucket.name }} {{ bucket.percentage }}%
{% if bucket.distribution_agent %}
Distribute to {{ bucket.distribution_agent.name }}
{% endif %} {% if bucket.filter_method %}
{% if bucket.filter_method == 'dates' %}

Enter start and end dates (both optional)

{{ bucket.form.start_date }}
through
{{ bucket.form.end_date }}

Network/Project (optional)

{{ bucket.form.context_agent }}
{% else %} {{ bucket.form|as_bootstrap }} {% endif %}
{% endif %} {% endfor %}
{% trans "WARNING" %}: {% trans "This operation cannot be undone. Please test your data entry below first!" %}
{% if agent_totals %}
{% trans "TEST ONLY - Agent Totals" %}:
{% for at in agent_totals %} {% endfor %}
{% trans "Agent" %} {% trans "Distribution Amount" %}
{{ at.to_agent.name }} {{ at.quantity }}
{% elif no_totals %}
{{ no_totals }}
{% endif %}
{% else %}

You need a {{ context_types }}.

Read the Network Setup tutorial and create one.

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