{% extends 'pagination/pagination_base.html' %} {% block extrahead %} {% endblock %} {% load custom_tags_and_filters %} {% block title %}Rates{% endblock %} {% block before_pagination %}

Rates

{% button type="add" url="create_rate" value="New rate" %}

{% endblock %} {% block pagination_content %} {% with 'tool area consumable' as rate_type_list %} {% if rate_type|lower in rate_type_list.split %} {% endif %} {% if show_type %} {% endif %} {% if show_category %} {% endif %} {% if show_time %} {% endif %} {% for rate in page %} {% if rate_type|lower in rate_type_list.split %}{% endif %} {% if show_type %}{% endif %} {% if show_category %}{% endif %} {% if show_time %}{% endif %} {% endfor %}
{% include 'pagination/pagination_column.html' with order_by=rate_type|lower name=rate_type|lower|capfirst %}{% include 'pagination/pagination_column.html' with order_by='effective_date' name='Effective_date' %}{% include 'pagination/pagination_column.html' with order_by='type' name='Type' %}{% include 'pagination/pagination_column.html' with order_by='category' name='Category' %}{% include 'pagination/pagination_column.html' with order_by='time' name='Time' %}{% include 'pagination/pagination_column.html' with order_by='amount' name='Rate' %} {% include 'pagination/pagination_column.html' with order_by='flat' name='Flat Rate' %} {% include 'pagination/pagination_column.html' with order_by='minimum_charge' name='Minimum Charge' %}
{{ rate.get_item|default_if_none:"" }}{{ rate.effective_date|default_if_none:'' }}{{ rate.type }}{{ rate.category|default_if_none:"" }}{{ rate.time|default_if_none:"" }}{{ rate.amount }} {{ rate.minimum_charge|default_if_none:'' }} {% if rate.get_item.id %} {% url 'create_rate' rate.type.get_rate_group_type rate.get_item.id as edit_rate_url %} {% button type="edit" size="small" url=edit_rate_url title="Edit rate" value="Edit" %} {% else %} {% url 'create_rate' rate.type.get_rate_group_type as edit_rate_url %} {% button type="edit" size="small" url=edit_rate_url title="Edit rate" value="Edit" %} {% endif %}
{% endwith %} {% endblock %} {% block table_empty_content %}
No rates of this type have been created yet.
{% endblock %}