{% extends 'auth/dashboard.html' %} {% load static %} {% load humanize %} {% block title %}Group Contracts - Bomabest Agriservices{% endblock %} {% block content %}

Group Contracts

Browse and manage group contracts.

{% if messages %}
{% for message in messages %}
{{ message }}
{% endfor %}
{% endif %}
{% if is_admin %}
{% endif %}
{% if page_obj %} Showing {{ page_obj.start_index }}–{{ page_obj.end_index }} of {{ page_obj.paginator.count }} {% endif %}
Reset
{% for contract in contracts %}
#{{ contract.id }}
{{ contract.group.name }}
{{ contract.group.registration_number }}
{{ contract.get_status_display }}
{% for ci in contract.contract_inputs.all %} {% if forloop.first %} {% if ci.input.display_image and ci.input.display_image.url %} {{ ci.input }} {% else %} {% endif %} {% endif %} {% empty %} {% endfor %}
{{ contract.get_type_display }} • {{ contract.created_at|date:"M d, Y" }}
{% for ci in contract.contract_inputs.all %} {% if forloop.first %} {{ ci.input|truncatewords:7 }} - × {{ ci.quantity }} {% endif %} {% empty %} No inputs {% endfor %}
Amount
KES {{ contract.total_amount|default_if_none:0|floatformat:0|intcomma }}
Signatures
{{ contract.signatures_count|default_if_none:"0" }}/3
{% empty %}
No group contracts found.
{% endfor %}
{% if page_obj and page_obj.paginator.num_pages > 1 %}
Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}
{% if page_obj.has_previous %} Prev {% else %} Prev {% endif %} {% if page_obj.has_next %} Next {% else %} Next {% endif %}
{% endif %}
{% block scripts %} {% endblock %} {% endblock %}