72 lines
4.1 KiB
HTML
72 lines
4.1 KiB
HTML
{% extends "base.html" %}
|
|
{% load i18n static %}
|
|
|
|
{% block title %}{{ _("Quotations") }}{% endblock title %}
|
|
|
|
{% block content %}
|
|
<div class="row mt-4">
|
|
<h3 class="mb-3">{% trans "Quotations" %}</h3>
|
|
|
|
<div class="table-responsive px-1 scrollbar">
|
|
<table class="table fs-9 mb-0 border-top border-translucent">
|
|
<thead>
|
|
<tr>
|
|
<th class="sort white-space-nowrap align-middle" scope="col">{% trans "Quotation Number" %}</th>
|
|
<th class="sort white-space-nowrap align-middle" scope="col">{% trans "Customer" %}</th>
|
|
<th class="sort white-space-nowrap align-middle" scope="col">{% trans "Status" %}</th>
|
|
<th class="sort white-space-nowrap align-middle" scope="col">{% trans "Status Date" %}</th>
|
|
<th class="sort white-space-nowrap align-middle" scope="col">{% trans "Created" %}</th>
|
|
<th class="sort white-space-nowrap align-middle" scope="col">{% trans "Actions" %}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="list">
|
|
{% for estimate in estimates %}
|
|
<tr class="hover-actions-trigger btn-reveal-trigger position-static">
|
|
<td class="align-middle product white-space-nowrap py-0">{{ estimate.estimate_number }}</td>
|
|
<td class="align-middle product white-space-nowrap">{{ estimate.customer.customer_name }}</td>
|
|
<td class="align-middle product white-space-nowrap">
|
|
{% if estimate.status == 'draft' %}
|
|
<span class="badge badge-phoenix badge-phoenix-warning">{% trans "Draft" %}</span>
|
|
{% elif estimate.status == 'in_review' %}
|
|
<span class="badge badge-phoenix badge-phoenix-info">{% trans "In Review" %}</span>
|
|
{% elif estimate.status == 'approved' %}
|
|
<span class="badge badge-phoenix badge-phoenix-success">{% trans "Approved" %}</span>
|
|
{% elif estimate.status == 'declined' %}
|
|
<span class="badge badge-phoenix badge-phoenix-danger">{% trans "Declined" %}</span>
|
|
{% elif estimate.status == 'canceled' %}
|
|
<span class="badge badge-phoenix badge-phoenix-danger">{% trans "Canceled" %}</span>
|
|
{% elif estimate.status == 'completed' %}
|
|
<span class="badge badge-phoenix badge-phoenix-success">{% trans "Completed" %}</span>
|
|
{% elif estimate.status == 'void' %}
|
|
<span class="badge badge-phoenix badge-phoenix-secondary">{% trans "Void" %}</span>
|
|
{% endif %}
|
|
</td>
|
|
<td class="align-middle product white-space-nowrap">{{ estimate.get_status_action_date }}</td>
|
|
<td class="align-middle product white-space-nowrap">{{ estimate.created }}</td>
|
|
<td class="text-center">
|
|
<a href="{% url 'estimate_detail' estimate.pk %}"
|
|
class="btn btn-sm btn-phoenix-success">
|
|
{% trans "view"|capfirst %}
|
|
</a>
|
|
<a href="{% url 'estimate_detail' estimate.pk %}"
|
|
class="btn btn-sm btn-phoenix-success">
|
|
{% trans "pdf"|capfirst %}
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
{% empty %}
|
|
<tr>
|
|
<td colspan="6" class="text-center">{% trans "No Quotations Found" %}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="d-flex justify-content-center">
|
|
{% if is_paginated %}
|
|
{% include 'partials/pagination.html' %}
|
|
{% endif %}
|
|
</div>
|
|
|
|
</div>
|
|
{% endblock %} |