summaryrefslogtreecommitdiff
path: root/app/templates/modules
diff options
context:
space:
mode:
Diffstat (limited to 'app/templates/modules')
-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
5 files changed, 7 insertions, 7 deletions
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