From 1dad22d3e45d6506c8624e3a7111240fcc4ab786 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Sun, 15 May 2022 13:16:37 +0200 Subject: Templates. --- app/templates/modules/invoices.html | 96 +++++++++++++++++++++++++------------ 1 file changed, 66 insertions(+), 30 deletions(-) (limited to 'app/templates/modules/invoices.html') diff --git a/app/templates/modules/invoices.html b/app/templates/modules/invoices.html index 76fe267..55a4b87 100644 --- a/app/templates/modules/invoices.html +++ b/app/templates/modules/invoices.html @@ -1,44 +1,80 @@ -{# -*- mode: jinja2; -*- #} +{# -*- mode: web; -*- #} {% extends "base.html" %} {% block title %} - Products +Invoices {% endblock %} -{% block content %} +{% block actions %} +
  • Add invoice
  • +
  • +{% endblock %} -
    - New invoice -
    +{% block content %} +Track your invoices and create new ones here.
    - Track your invoices and create new ones here. - - +
    +{% for page_num in invoices.iter_pages(left_edge=1, right_edge=1, left_current=1, right_current=2) %} +{% if page_num %} + +{% if invoices.page == page_num %} + + {{ page_num }} + +{% else %} + + {{ page_num }} + +{% endif %} +{% else %} +... +{% endif %} +{% endfor %} +
    +
    - - - - - - - + + + + + + + + + + + + + - {% for invoice in invoices %} + {% for invoice in invoices.items %} - - - - - - {% if product.date_time_updated %} - - {% else %} - - {% endif %} - + + + + + + + + + + + - {% endfor %} + {% endfor %} -
    ActionsNamePrice (net)Price (gross)Updated
    ActionsIDCreatedAlternative Invoice IDCustomer NameCustomer ReferenceDate BilledDate DueAmount (Net €)Amount (Gross €)Tax Amount (€)
    {{ product.name }}{{ product.price_net }}{{ product.price_gross }}{{ product.date_time_updated }}{{ product.date_time_created }} +
    + +
    +
    + +
    +
    + +
    +
    {{ invoice.primary_key }}{{ invoice.date_time_created }}{{ invoice.invoice_id_alt }}{{ invoice.customer.name }}{{ invoice.customer_reference }}{{ invoice.date_billed }}{{ invoice.date_due }}{{ invoice.amount_net }}{{ invoice.amount_gross }}{{ invoice.amount_tax }}
    + {% endblock %} -- cgit v1.2.3