summaryrefslogtreecommitdiff
path: root/app/templates
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2022-07-24 15:59:52 +0200
committerMarius Peter <marius.peter@tutanota.com>2022-07-24 15:59:52 +0200
commitffaee081c018b0e254844910fd3878f916196054 (patch)
tree21b66d88d505320da937c686de31bdea5d714ff0 /app/templates
parentb4dc6ca4cfb4b72d9a765ad2724509a2fd05f857 (diff)
Template paths.
Diffstat (limited to 'app/templates')
-rw-r--r--app/templates/base.html2
-rw-r--r--app/templates/modules/add-item.html2
-rw-r--r--app/templates/modules/customers.html2
-rw-r--r--app/templates/modules/edit-item.html2
-rw-r--r--app/templates/modules/invoice-preview.html2
-rw-r--r--app/templates/modules/invoices.html6
6 files changed, 8 insertions, 8 deletions
diff --git a/app/templates/base.html b/app/templates/base.html
index e847149..d01444e 100644
--- a/app/templates/base.html
+++ b/app/templates/base.html
@@ -34,7 +34,7 @@
<nav id="modules">
<ul>
{% for module in modules %}
- <li><a href="/modules/{{ module.name }}" class="button">{{ module.name }}</a></li>
+ <li><a href="{{ url_for(module.name + '.view') }}" class="button">{{ module.name }}</a></li>
{% endfor %}
</ul>
diff --git a/app/templates/modules/add-item.html b/app/templates/modules/add-item.html
index 4eaee3d..88780bc 100644
--- a/app/templates/modules/add-item.html
+++ b/app/templates/modules/add-item.html
@@ -6,7 +6,7 @@
{% block title %}Add {{ table }} item{% endblock %}
{% block content %}
-<form action="{{ request.path }}" method="POST">
+<form action="{{ '/fapg' + request.path }}" method="POST">
<fieldset>
<legend>Add a new item to our {{ table }} table.</legend>
{% for field in form %}
diff --git a/app/templates/modules/customers.html b/app/templates/modules/customers.html
index 64ed4c2..776ab8d 100644
--- a/app/templates/modules/customers.html
+++ b/app/templates/modules/customers.html
@@ -35,7 +35,7 @@ Customers
</td>
<td>{{ customer.primary_key }}</td>
{% if customer.website %}
- <td><a href="{{ customer.website }}">{{ customer.name }}</a></td>
+ <td><a href="{{ 'http://' + customer.website }}">{{ customer.name }}</a></td>
{% else %}
<td>{{ customer.name }}</td>
{% endif %}
diff --git a/app/templates/modules/edit-item.html b/app/templates/modules/edit-item.html
index 194aa77..16cb686 100644
--- a/app/templates/modules/edit-item.html
+++ b/app/templates/modules/edit-item.html
@@ -6,7 +6,7 @@
{% block title %}Edit {{ table }} item{% endblock %}
{% block content %}
-<form action="{{ request.path }}" method="POST">
+<form action="{{ '/fapg' + request.path }}" method="POST">
<fieldset>
<legend>Edit item #{{ pk }} in our {{ table }} table.</legend>
{% for field in form %}
diff --git a/app/templates/modules/invoice-preview.html b/app/templates/modules/invoice-preview.html
index f86f9a2..7dc2774 100644
--- a/app/templates/modules/invoice-preview.html
+++ b/app/templates/modules/invoice-preview.html
@@ -6,7 +6,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to">
- <title>Invoice preview for {{ invoice.customer.name }}</title>
+ <title>invoice {{ invoice.date_billed }} for {{ invoice.customer.name }} {{ invoice.primary_key }}</title>
<meta name="author" content="Marius Peter">
<meta name="description" content="A new invoice for your project.">
<!-- <link rel="icon" href="{{ url_for('static', filename='img/favicon.png') }}"> -->
diff --git a/app/templates/modules/invoices.html b/app/templates/modules/invoices.html
index 9e8f765..9ff08e6 100644
--- a/app/templates/modules/invoices.html
+++ b/app/templates/modules/invoices.html
@@ -56,9 +56,9 @@ Invoices
{% for invoice in invoices.items %}
<tr {% if invoice.archive == True %} style="color: dimgray" {% endif %}>
<td>
- <form method="post" action="{{ url_for('common.edit_item', module='invoices', pk=invoice.primary_key, table='Invoice') }}">
- <button>archive</button>
- </form>
+ <!-- <form method="post" action="{{ url_for('common.edit_item', module='invoices', pk=invoice.primary_key, table='Invoice') }}">
+ <button>archive</button>
+ </form> -->
<form method="get" action="{{ url_for('invoices.preview', pk=invoice.primary_key) }}">
<button>preview</button>
</form>
Copyright 2019--2024 Marius PETER