{% extends 'auth/dashboard.html' %} {% load static contract_tags %} {% block title %}Sign Group Contract #{{ contract.id }} - Bomabest Agriservices{% endblock %} {% block content %}

Sign Group Contract - ID: {{ contract.id }}

{% if messages %}
{% for message in messages %}
{% if message.tags == 'error' %} {% else %} {% endif %}
{{ message }}
{% endfor %}
{% endif %}

Group Contract Summary

Group: {{ contract.group.name }}
Input Package: {{ contract_inputs.first.input.variety }} × {{ contract_inputs.first.quantity }}
Payment Term: {{ contract.get_payment_term_display }}
Installments: {{ contract.months_for_payment }} month{{ contract.months_for_payment|pluralize }}
{% if contract.grace_period > 0 %}
Grace Period: {{ contract.grace_period }} day{{ contract.grace_period|pluralize }}
{% endif %}
KES {{ contract.total_amount|floatformat:2 }}
Deposit Required: KES {{ contract.deposit_amount|floatformat:2 }}

Signature Status ({{ contract.signatures_count }}/3)

Chairperson {% if contract.chair_signed %} {% else %} {% endif %}
{{ contract.chairperson.get_full_name }}
{% if contract.chair_signed %}
Signed {{ contract.chair_signed_at|date:"M d, Y" }}
{% else %}
Pending signature
{% endif %}
Secretary {% if contract.secretary_signed %} {% else %} {% endif %}
{{ contract.secretary.get_full_name }}
{% if contract.secretary_signed %}
Signed {{ contract.secretary_signed_at|date:"M d, Y" }}
{% else %}
Pending signature
{% endif %}
Treasurer {% if contract.treasurer_signed %} {% else %} {% endif %}
{{ contract.treasurer.get_full_name }}
{% if contract.treasurer_signed %}
Signed {{ contract.treasurer_signed_at|date:"M d, Y" }}
{% else %}
Pending signature
{% endif %}

Contract Items

{% for ci in contract_inputs %} {% empty %} {% endfor %}
Item Quantity Unit Price Total
{{ ci.input.variety }} {{ ci.quantity }} KES {{ ci.unit_price|floatformat:2 }} KES {{ ci.total_price|floatformat:2 }}
No items in this contract

Terms & Conditions

{% if contract.terms_snapshot %} {{ contract.terms_snapshot|safe|linebreaksbr }} {% else %}

No terms available.

{% endif %}

👆 Please scroll and read the terms carefully before signing.

{% csrf_token %}

Your Signature

Draw your signature below using your mouse or touch

Cancel
{% endblock %}