numerus/web/template
jordi fita mas 20827b2cfb Add IBAN and BIC fields to contacts
These two fields are just for information purposes, as Numerus does not
have any way to wire transfer using these, but people might want to keep
these in the contact’s info as a convenience.

Since not every contact should have an IBAN, e.g., customers, and inside
SEPA (European Union and some more countries) the BIC is not required,
they are in two different relations in order to be optional without
using NULL.

For the IBAN i found an already made PostgreSQL module, but for BIC i
had to write a regular expression based on the information i gathered
from Wikipedia, because the ISO standard is not free.

These two parameters for the add_contact and edit_contact functions are
TEXT because i realized that these functions are intended to be used
from the web application, that only deals with texts, so the
ValueOrNil() function was unnecessarily complex and PostreSQL’s
functions were better suited to “convert” from TEXT to IBAN or BIC.
The same is true for EMAIL and URI domains, so i changed their parameter
types to TEXT too.

Closes #54.
2023-07-02 02:08:45 +02:00
..
contacts Add IBAN and BIC fields to contacts 2023-07-02 02:08:45 +02:00
expenses Add total amount for quotes, invoices, and expenses tables 2023-06-20 11:33:28 +02:00
invoices Add total amount for quotes, invoices, and expenses tables 2023-06-20 11:33:28 +02:00
products Use “Save” for all submit buttons of new/edit forms 2023-05-26 13:38:04 +02:00
quotes Split contact relation into tax_details, phone, web, and email 2023-06-30 21:32:48 +02:00
tags Add inline tag form for expenses 2023-05-08 12:58:54 +02:00
app.gohtml Add HTTP controller and view to add quotes 2023-06-07 16:35:31 +02:00
dashboard.gohtml Wrap filter buttons with <noscript> 2023-05-23 14:34:46 +02:00
form.gohtml Split contact relation into tax_details, phone, web, and email 2023-06-30 21:32:48 +02:00
home.gohtml Internationalize and localize the home template 2023-06-16 10:58:40 +02:00
login.gohtml Use a “proper” struct for the login form 2023-02-01 11:02:32 +01:00
main.gohtml Add the <title> element for the “main” boosted pages 2023-03-26 13:57:24 +02:00
modal.gohtml Show the profile form in a dialog using HTMx 2023-03-20 13:09:52 +01:00
profile.gohtml Boost all breadcbrumb links 2023-04-02 16:10:13 +02:00
standalone.gohtml Allow editing invoice tags inline from the index table 2023-04-11 10:46:27 +02:00
tax-details.gohtml Add quote number formatting and next number field to tax details 2023-06-09 12:43:50 +02:00
web.gohtml Add custom function to get the current locale from templates 2023-01-31 15:45:51 +01:00