{% extends "client_portal/base.html" %} {% from "components/ui.html" import page_header %} {% block title %}{{ quote.quote_number }} - {{ _('Client Portal') }}{% endblock %} {% block content %} {% set breadcrumbs = [ {'text': _('Client Portal'), 'url': url_for('client_portal.dashboard')}, {'text': _('Quotes'), 'url': url_for('client_portal.quotes')}, {'text': quote.quote_number} ] %} {{ page_header( icon_class='fas fa-file-contract', title_text=quote.quote_number, subtitle_text=_('Quote Details'), breadcrumbs=breadcrumbs ) }}
{{ quote.client.name if quote.client else 'N/A' }}
{% if quote.client and quote.client.email %}{{ quote.client.email }}
{% endif %} {% if quote.client and quote.client.address %}{{ quote.client.address }}
{% endif %}{{ _('Title') }}: {{ quote.title }}
{{ _('Date') }}: {{ quote.created_at.strftime('%Y-%m-%d') if quote.created_at else 'N/A' }}
{% if quote.valid_until %}{{ _('Valid Until') }}: {{ quote.valid_until.strftime('%Y-%m-%d') }}
{% endif %}{{ _('Status') }}: {{ quote.status|title }}
{% if quote.is_expired %}{{ _('This quote has expired.') }}
{% endif %}{{ quote.description }}
| {{ _('Description') }} | {{ _('Quantity') }} | {{ _('Unit Price') }} | {{ _('Total') }} |
|---|---|---|---|
| {{ item.description }} | {{ "%.2f"|format(item.quantity) }} {% if item.unit %}{{ item.unit }}{% endif %} | {{ "%.2f"|format(item.unit_price) }} {{ quote.currency_code }} | {{ "%.2f"|format(item.total_amount) }} {{ quote.currency_code }} |
{{ quote.terms }}