numerus/web/template
jordi fita mas c453715ee1 Remove the number field from new invoice form
Initially, this field was meant to be left almost always blank, except
for when we deleted invoiced and had to “replace” its number with a new
invoice; using the automatic numbering in this cas would not “fill in”
the missing number in the sequence.

However, we decide to not allow removing invoicer not edit their
numbers, therefore, if everything goes as planned, there should not be
any gap in the sequence, and that field is rendered useless.

Oriol suggested making it a read-only field, both for new and edit
forms, but i do not think it makes sense to have a field if you can not
edit it at all, specially in the new invoice dialog, where it would
always be blank.  In the edit form we already show the number in the
title and breadcrumbs, thus no need for the read-only field as
reference.

I still keep a Number member to the form struct, but is now a string
(kind of “a read-only field”, in a way) and just to be written in the
title or breadcrumbs.  I did not like the idea of adding a new SQL
query just for that value.
2023-04-01 15:57:56 +02:00
..
contacts Boost contact’s tag links to update <main> with the filtered list 2023-03-27 09:40:24 +02:00
invoices Remove the number field from new invoice form 2023-04-01 15:57:56 +02:00
products Boost the products’ section links and forms 2023-03-27 09:44:04 +02: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 Use .String in hidden-field template, so that it works for TagsField too 2023-03-28 10:01:41 +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 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