numerus/pkg
jordi fita mas 0a58e2699e Use a select for company’s country field
At first we thought that a regular text field would do, because we were
afraid that a dropdown would be worse from the point of view of user
experience, but then we realized that we need the country code for VAT
and phone validation, and we can not expect users to input that, of
course.

I had to add the first “i18n table” to the database with the name of all
countries in both Catalan and Spanish and Catalan; English is the
default.  For now i think i do not need a view that would select the
name based on the locale of the current request, because currently i do
not plan on adding any other such table —the currency uses the code and
the symbol, thus no need for localization.

However, now i need the language tag from the locale in order to get the
correct translation, and gotext does not give me any way to access the
inner language.  Thus the need for our Locale type.
2023-01-27 21:30:14 +01:00
..
company.go Use a select for company’s country field 2023-01-27 21:30:14 +01:00
db.go Prefix with “Must” all functions that panic 2023-01-22 20:37:43 +01:00
locale.go Use a select for company’s country field 2023-01-27 21:30:14 +01:00
logger.go Move source file to the root of pkg 2023-01-17 10:40:22 +01:00
login.go Refactor authenticated redirection to a common handler 2023-01-24 21:44:23 +01:00
profile.go Refactor authenticated redirection to a common handler 2023-01-24 21:44:23 +01:00
recover.go Gofmt recover.go 2023-01-22 20:37:34 +01:00
router.go Use a select for company’s country field 2023-01-27 21:30:14 +01:00
template.go Add the company relation and read-only form to edit 2023-01-24 21:46:07 +01:00