numerus/web/template
jordi fita mas 4131602fa3 Add tags for contacts too
With Oriol we agreed that contacts should have tags, too, and that the
“tag pool”, as it were, should be shared with the one for invoices (and
all future tags we might add).

I added the contact_tag relation and tag_contact function, just like
with invoices, and then realized that the SQL queries that Go had to
execute were becoming “complex” enough: i had to get not only the slug,
but the contact id to call tag_contact, and all inside a transaction.

Therefore, i opted to create the add_contact and edit_contact functions,
that mirror those for invoice and products, so now each “major” section
has these functions.  They also simplified a bit the handling of the
VATIN and phone numbers, because it is now encapsuled inside the
PL/pgSQL function and Go does not know how to assemble the parts.
2023-03-26 01:32:53 +01:00
..
contacts Add tags for contacts too 2023-03-26 01:32:53 +01:00
invoices Show the profile form in a dialog using HTMx 2023-03-20 13:09:52 +01:00
products Show the profile form in a dialog using HTMx 2023-03-20 13:09:52 +01:00
app.gohtml Add a SnackBar to show HTMx errors 2023-03-25 01:56:26 +01:00
dashboard.gohtml Show the profile form in a dialog using HTMx 2023-03-20 13:09:52 +01:00
form.gohtml Add tags for contacts too 2023-03-26 01:32:53 +01:00
login.gohtml Use a “proper” struct for the login form 2023-02-01 11:02:32 +01:00
main.gohtml Boost the main navigation links with HTMx 2023-03-23 10:55:02 +01:00
modal.gohtml Show the profile form in a dialog using HTMx 2023-03-20 13:09:52 +01:00
profile.gohtml Show the profile form in a dialog using HTMx 2023-03-20 13:09:52 +01:00
tax-details.gohtml Show the tax details form in a dialog using HTMx 2023-03-21 11:58:54 +01:00
web.gohtml Add custom function to get the current locale from templates 2023-01-31 15:45:51 +01:00