numerus/web/template
jordi fita mas 31a655ae7f Add aria-current attribute to links in the top menu
This is mainly to be able to stylize them using CSS; the current style
i set i just a placeholder to check that it works as expected.

Most of these links needs to check for the URI’s prefix, because they
are links to a whole section, but the first link must check for the
exact match, otherwise it would match every other URI, as all of them
start with /company/{uuid}.

The server does not return the markup for the top navigation when usin
HTMx, though, hence i have to change the current class using JavaScript.

I am not sure if the correct value for aria-current is “page” when the
link is not for the actual page the user is currently in, like when is
in the new quote page, but it seems to be the most appropriate value
from the enumeration given in the specifications, except, perhaps, for
the “location” value, but i was unable to find any example of that value
anywhere.

Part of #89.
2023-11-13 14:42:27 +01:00
..
contacts Add reset button to filters 2023-07-16 20:56:11 +02:00
expenses Add the sum of the base and taxes to expenses’ index 2023-10-02 16:36:42 +02:00
invoices Set enctype to multipart/form-data for invoice status form 2023-10-02 18:48:28 +02:00
products Add reset button to filters 2023-07-16 20:56:11 +02:00
quotes Add option to export the list of quotes, invoices, and expenses to ODS 2023-07-18 13:29:36 +02:00
tags Add inline tag form for expenses 2023-05-08 12:58:54 +02:00
app.gohtml Add aria-current attribute to links in the top menu 2023-11-13 14:42:27 +01:00
dashboard.gohtml Wrap filter buttons with <noscript> 2023-05-23 14:34:46 +02:00
form.gohtml Add nowrap to toggle’s labels 2023-07-14 10:44:38 +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
switch-company.gohtml Add option to switch to another company 2023-11-06 13:52:34 +01: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