{% include 'admin/includes/part.header.html' %}
Add Customer
{{form.csrf_token}}
Customer Details
{{form.ID(class_="form-control", id="ID", pattern="\d*", maxlength="10", placeholder="ID Number", aria_label="ID", aria_describedby="ID-addon")}} {% for error in form.ID.errors %} {{ error }} {% endfor %}
{{form.name(class_="form-control", id="name", placeholder="Customer Name", aria_label="name", aria_describedby="name-addon")}} {% for error in form.name.errors %} {{ error }} {% endfor %}
{{form.phone(class_="form-control", id="phone", placeholder="Customer Phone Number", aria_label="phone", aria_describedby="phone-addon")}} {% for error in form.phone.errors %} {{ error }} {% endfor %}
{{form.gender(class_="form-control", id="gender", placeholder="Customer Gender", aria_label="gender", aria_describedby="gender-addon")}} {% for error in form.gender.errors %} {{ error }} {% endfor %}
{{form.date_of_birth(class_="form-control", id="date_of_birth", placeholder="Customer's date of birth", aria_label="date_of_birth", aria_describedby="date_of_birth-addon")}} {% for error in form.date_of_birth.errors %} {{ error }} {% endfor %}
{{form.marital_status(class_="form-control", id="marital_status", placeholder="Customer's marital status", aria_label="marital_status", aria_describedby="marital_status-addon")}} {% for error in form.marital_status.errors %} {{ error }} {% endfor %}
{{form.residential(class_="form-control", id="residential", placeholder="Customer residential", aria_label="residential", aria_describedby="residential-addon")}} {% for error in form.residential.errors %} {{ error }} {% endfor %}
{{form.home_residence(class_="form-control", id="home_residence", placeholder="Customer home residence", aria_label="home_residence", aria_describedby="home_residence-addon")}} {% for error in form.home_residence.errors %} {{ error }} {% endfor %}
{{form.landmark(class_="form-control", id="landmark", placeholder="Customer landmark", aria_label="landmark", aria_describedby="landmark-addon")}} {% for error in form.landmark.errors %} {{ error }} {% endfor %}
{{form.social_name(class_="form-control", id="social_name", placeholder="Customer social name", aria_label="social_name", aria_describedby="social_name-addon")}} {% for error in form.social_name.errors %} {{ error }} {% endfor %}
{{form.next_of_kin(class_="form-control", id="next_of_kin", placeholder="Next of kin", aria_label="next_of_kin", aria_describedby="next_of_kin-addon")}} {% for error in form.next_of_kin.errors %} {{ error }} {% endfor %}
{{form.n_relationship(class_="form-control", id="n_relationship", placeholder="Customer relationship", aria_label="n_relationship", aria_describedby="n_relationship-addon")}} {% for error in form.n_relationship.errors %} {{ error }} {% endfor %}
Loan Details
{{form.amount(class_="form-control", id="amount", placeholder="Loan Amount", aria_label="amount", aria_describedby="amount-addon")}} {% for error in form.amount.errors %} {{ error }} {% endfor %}
{{form.loan_type(class_="form-control", id="loan_type", placeholder="Loan Type", aria_label="loan_type", aria_describedby="loan_type-addon")}} {% for error in form.loan_type.errors %} {{ error }} {% endfor %}
Customer Business Details(Optional)
{{form.business_name(class_="form-control", id="business_name", placeholder="Business name", aria_label="business_name", aria_describedby="business_name-addon")}} {% for error in form.business_name.errors %} {{ error }} {% endfor %}
{{form.business_type(class_="form-control", id="business_type", placeholder="Business type", aria_label="business_type", aria_describedby="business_type-addon")}} {% for error in form.business_type.errors %} {{ error }} {% endfor %}
{{form.business_year_est(class_="form-control", id="business_year_est", placeholder="Year established", aria_label="business_year_est", aria_describedby="business_year_est-addon")}} {% for error in form.business_year_est.errors %} {{ error }} {% endfor %}
{{form.business_location(class_="form-control", id="business_location", placeholder="Business location", aria_label="business_location", aria_describedby="business_location-addon")}} {% for error in form.business_location.errors %} {{ error }} {% endfor %}
{{form.business_landmark(class_="form-control", id="business_landmark", placeholder="Business landmark", aria_label="business_landmark", aria_describedby="business_landmark-addon")}} {% for error in form.business_landmark.errors %} {{ error }} {% endfor %}
{{form.business_average_daily_sales(class_="form-control", id="business_average_daily_sales", placeholder="Average daily sales", aria_label="business_average_daily_sales", aria_describedby="business_average_daily_sales-addon")}} {% for error in form.business_average_daily_sales.errors %} {{ error }} {% endfor %}
{{form.business_has_local_license(class_="form-check-input", id="business_has_local_license")}}
Referee Details
{{form.referee_name(class_="form-control", id="referee_name", placeholder="Referee name", aria_label="referee_name", aria_describedby="referee_name-addon")}} {% for error in form.referee_name.errors %} {{ error }} {% endfor %}
{{form.referee_relationship(class_="form-control", id="referee_relationship", placeholder="Referee relationship", aria_label="referee_relationship", aria_describedby="referee_relationship-addon")}} {% for error in form.referee_relationship.errors %} {{ error }} {% endfor %}
{{form.referee_phone(class_="form-control", id="referee_phone", placeholder="Referee phone", aria_label="referee_phone", aria_describedby="referee_phone-addon")}} {% for error in form.referee_phone.errors %} {{ error }} {% endfor %}
Guarantor's Details
{{form.guarantor_name(class_="form-control", id="guarantor_name", placeholder="Guarantor's name", aria_label="guarantor_name", aria_describedby="guarantor_name-addon")}} {% for error in form.guarantor_name.errors %} {{ error }} {% endfor %}
{{form.guarantor_phone(class_="form-control", id="guarantor_phone", placeholder="Guarantor's phone", aria_label="guarantor_phone", aria_describedby="guarantor_phone-addon")}} {% for error in form.guarantor_phone.errors %} {{ error }} {% endfor %}
{{form.guarantor_occupation(class_="form-control", id="guarantor_occupation", placeholder="Guarantor's occupation", aria_label="guarantor_occupation", aria_describedby="guarantor_occupation-addon")}} {% for error in form.guarantor_occupation.errors %} {{ error }} {% endfor %}
{{form.guarantor_address(class_="form-control", id="guarantor_address", placeholder="Guarantor's address", aria_label="guarantor_address", aria_describedby="guarantor_address-addon")}} {% for error in form.guarantor_address.errors %} {{ error }} {% endfor %}
{{form.guarantor_date(class_="form-control", id="guarantor_date", placeholder="Guarantor's Date", aria_label="guarantor_date", aria_describedby="guarantor_date-addon")}} {% for error in form.guarantor_date.errors %} {{ error }} {% endfor %}
{% include 'admin/includes/part.footer.html' %}