Add breadcrumbs

This commit is contained in:
jordi fita mas 2023-02-03 13:58:10 +01:00
parent 7d17620f48
commit a0a3a5561d
8 changed files with 9575 additions and 2641 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: numerus\n"
"Report-Msgid-Bugs-To: jordi@tandem.blog\n"
"POT-Creation-Date: 2023-02-03 13:18+0100\n"
"POT-Creation-Date: 2023-02-03 13:57+0100\n"
"PO-Revision-Date: 2023-01-18 17:08+0100\n"
"Last-Translator: jordi fita mas <jordi@tandem.blog>\n"
"Language-Team: Catalan <ca@dodds.net>\n"
@ -57,110 +57,121 @@ msgctxt "action"
msgid "Login"
msgstr "Entra"
#: web/template/profile.gohtml:2 web/template/profile.gohtml:8
#: web/template/profile.gohtml:2 web/template/profile.gohtml:10
#: web/template/profile.gohtml:14
msgctxt "title"
msgid "User Settings"
msgstr "Configuració usuari"
#: web/template/profile.gohtml:12
#: web/template/profile.gohtml:9 web/template/contacts-edit.gohtml:9
#: web/template/contacts-index.gohtml:8 web/template/tax-details.gohtml:8
#: web/template/contacts-new.gohtml:9
msgctxt "title"
msgid "Home"
msgstr "Inici"
#: web/template/profile.gohtml:18
msgctxt "title"
msgid "User Access Data"
msgstr "Dades accés usuari"
#: web/template/profile.gohtml:18
#: web/template/profile.gohtml:24
msgctxt "title"
msgid "Password Change"
msgstr "Canvi contrasenya"
#: web/template/profile.gohtml:25
#: web/template/profile.gohtml:31
msgctxt "title"
msgid "Language"
msgstr "Idioma"
#: web/template/profile.gohtml:29 web/template/tax-details.gohtml:90
#: web/template/profile.gohtml:35 web/template/tax-details.gohtml:96
msgctxt "action"
msgid "Save changes"
msgstr "Desa canvis"
#: web/template/contacts-edit.gohtml:2 web/template/contacts-edit.gohtml:8
#: web/template/contacts-edit.gohtml:2 web/template/contacts-edit.gohtml:15
msgctxt "title"
msgid "Edit Contact “%s”"
msgstr "Edició del contacte «%s»"
#: web/template/contacts-edit.gohtml:26
msgctxt "action"
msgid "Update contact"
msgstr "Actualitza contacte"
#: web/template/contacts-index.gohtml:2
#: web/template/contacts-edit.gohtml:10 web/template/contacts-index.gohtml:2
#: web/template/contacts-index.gohtml:9 web/template/contacts-new.gohtml:10
msgctxt "title"
msgid "Contacts"
msgstr "Contactes"
#: web/template/contacts-index.gohtml:6 web/template/contacts-new.gohtml:24
#: web/template/contacts-edit.gohtml:33
msgctxt "action"
msgid "Update contact"
msgstr "Actualitza contacte"
#: web/template/contacts-index.gohtml:13 web/template/contacts-new.gohtml:31
msgctxt "action"
msgid "New contact"
msgstr "Nou contacte"
#: web/template/contacts-index.gohtml:11
#: web/template/contacts-index.gohtml:20
msgctxt "contact"
msgid "All"
msgstr "Tots"
#: web/template/contacts-index.gohtml:12
#: web/template/contacts-index.gohtml:21
msgctxt "title"
msgid "Customer"
msgstr "Client"
#: web/template/contacts-index.gohtml:13
#: web/template/contacts-index.gohtml:22
msgctxt "title"
msgid "Email"
msgstr "Correu-e"
#: web/template/contacts-index.gohtml:14
#: web/template/contacts-index.gohtml:23
msgctxt "title"
msgid "Phone"
msgstr "Telèfon"
#: web/template/contacts-index.gohtml:29
#: web/template/contacts-index.gohtml:38
msgid "No contacts added yet."
msgstr "No hi ha cap contacte."
#: web/template/tax-details.gohtml:2 web/template/tax-details.gohtml:7
#: web/template/tax-details.gohtml:2 web/template/tax-details.gohtml:9
#: web/template/tax-details.gohtml:13
msgctxt "title"
msgid "Tax Details"
msgstr "Configuració fiscal"
#: web/template/tax-details.gohtml:25
#: web/template/tax-details.gohtml:31
msgctxt "title"
msgid "Currency"
msgstr "Moneda"
#: web/template/tax-details.gohtml:41
#: web/template/tax-details.gohtml:47
msgctxt "title"
msgid "Tax Name"
msgstr "Nom import"
#: web/template/tax-details.gohtml:42
#: web/template/tax-details.gohtml:48
msgctxt "title"
msgid "Rate (%)"
msgstr "Percentatge"
#: web/template/tax-details.gohtml:65
#: web/template/tax-details.gohtml:71
msgid "No taxes added yet."
msgstr "No hi ha cap impost."
#: web/template/tax-details.gohtml:71
#: web/template/tax-details.gohtml:77
msgctxt "title"
msgid "New Line"
msgstr "Nova línia"
#: web/template/tax-details.gohtml:82
#: web/template/tax-details.gohtml:88
msgctxt "action"
msgid "Add new tax"
msgstr "Afegeix nou impost"
#: web/template/contacts-new.gohtml:2 web/template/contacts-new.gohtml:8
#: web/template/contacts-new.gohtml:2 web/template/contacts-new.gohtml:11
#: web/template/contacts-new.gohtml:15
msgctxt "title"
msgid "New Contact"
msgstr "Nou contacte"

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: numerus\n"
"Report-Msgid-Bugs-To: jordi@tandem.blog\n"
"POT-Creation-Date: 2023-02-03 13:18+0100\n"
"POT-Creation-Date: 2023-02-03 13:57+0100\n"
"PO-Revision-Date: 2023-01-18 17:45+0100\n"
"Last-Translator: jordi fita mas <jordi@tandem.blog>\n"
"Language-Team: Spanish <es@tp.org.es>\n"
@ -57,110 +57,121 @@ msgctxt "action"
msgid "Login"
msgstr "Entrar"
#: web/template/profile.gohtml:2 web/template/profile.gohtml:8
#: web/template/profile.gohtml:2 web/template/profile.gohtml:10
#: web/template/profile.gohtml:14
msgctxt "title"
msgid "User Settings"
msgstr "Configuración usuario"
#: web/template/profile.gohtml:12
#: web/template/profile.gohtml:9 web/template/contacts-edit.gohtml:9
#: web/template/contacts-index.gohtml:8 web/template/tax-details.gohtml:8
#: web/template/contacts-new.gohtml:9
msgctxt "title"
msgid "Home"
msgstr "Inicio"
#: web/template/profile.gohtml:18
msgctxt "title"
msgid "User Access Data"
msgstr "Datos acceso usuario"
#: web/template/profile.gohtml:18
#: web/template/profile.gohtml:24
msgctxt "title"
msgid "Password Change"
msgstr "Cambio de contraseña"
#: web/template/profile.gohtml:25
#: web/template/profile.gohtml:31
msgctxt "title"
msgid "Language"
msgstr "Idioma"
#: web/template/profile.gohtml:29 web/template/tax-details.gohtml:90
#: web/template/profile.gohtml:35 web/template/tax-details.gohtml:96
msgctxt "action"
msgid "Save changes"
msgstr "Guardar cambios"
#: web/template/contacts-edit.gohtml:2 web/template/contacts-edit.gohtml:8
#: web/template/contacts-edit.gohtml:2 web/template/contacts-edit.gohtml:15
msgctxt "title"
msgid "Edit Contact “%s”"
msgstr "Edición del contacto «%s»"
#: web/template/contacts-edit.gohtml:26
msgctxt "action"
msgid "Update contact"
msgstr "Actualizar contacto"
#: web/template/contacts-index.gohtml:2
#: web/template/contacts-edit.gohtml:10 web/template/contacts-index.gohtml:2
#: web/template/contacts-index.gohtml:9 web/template/contacts-new.gohtml:10
msgctxt "title"
msgid "Contacts"
msgstr "Contactos"
#: web/template/contacts-index.gohtml:6 web/template/contacts-new.gohtml:24
#: web/template/contacts-edit.gohtml:33
msgctxt "action"
msgid "Update contact"
msgstr "Actualizar contacto"
#: web/template/contacts-index.gohtml:13 web/template/contacts-new.gohtml:31
msgctxt "action"
msgid "New contact"
msgstr "Nuevo contacto"
#: web/template/contacts-index.gohtml:11
#: web/template/contacts-index.gohtml:20
msgctxt "contact"
msgid "All"
msgstr "Todos"
#: web/template/contacts-index.gohtml:12
#: web/template/contacts-index.gohtml:21
msgctxt "title"
msgid "Customer"
msgstr "Cliente"
#: web/template/contacts-index.gohtml:13
#: web/template/contacts-index.gohtml:22
msgctxt "title"
msgid "Email"
msgstr "Correo-e"
#: web/template/contacts-index.gohtml:14
#: web/template/contacts-index.gohtml:23
msgctxt "title"
msgid "Phone"
msgstr "Teléfono"
#: web/template/contacts-index.gohtml:29
#: web/template/contacts-index.gohtml:38
msgid "No contacts added yet."
msgstr "No hay contactos."
#: web/template/tax-details.gohtml:2 web/template/tax-details.gohtml:7
#: web/template/tax-details.gohtml:2 web/template/tax-details.gohtml:9
#: web/template/tax-details.gohtml:13
msgctxt "title"
msgid "Tax Details"
msgstr "Configuración fiscal"
#: web/template/tax-details.gohtml:25
#: web/template/tax-details.gohtml:31
msgctxt "title"
msgid "Currency"
msgstr "Moneda"
#: web/template/tax-details.gohtml:41
#: web/template/tax-details.gohtml:47
msgctxt "title"
msgid "Tax Name"
msgstr "Nombre impuesto"
#: web/template/tax-details.gohtml:42
#: web/template/tax-details.gohtml:48
msgctxt "title"
msgid "Rate (%)"
msgstr "Porcentaje"
#: web/template/tax-details.gohtml:65
#: web/template/tax-details.gohtml:71
msgid "No taxes added yet."
msgstr "No hay impuestos."
#: web/template/tax-details.gohtml:71
#: web/template/tax-details.gohtml:77
msgctxt "title"
msgid "New Line"
msgstr "Nueva línea"
#: web/template/tax-details.gohtml:82
#: web/template/tax-details.gohtml:88
msgctxt "action"
msgid "Add new tax"
msgstr "Añadir nuevo impuesto"
#: web/template/contacts-new.gohtml:2 web/template/contacts-new.gohtml:8
#: web/template/contacts-new.gohtml:2 web/template/contacts-new.gohtml:11
#: web/template/contacts-new.gohtml:15
msgctxt "title"
msgid "New Contact"
msgstr "Nuevo contacto"

File diff suppressed because it is too large Load Diff

View File

@ -4,12 +4,19 @@
{{ define "content" }}
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.contactForm*/ -}}
<nav>
<p>
<a href="{{ companyURI "/" }}">{{( pgettext "Home" "title" )}}</a> /
<a href="{{ companyURI "/contacts"}}">{{( pgettext "Contacts" "title" )}}</a> /
<a>{{ .BusinessName.Val }}</a>
</p>
</nav>
<section class="dialog-content">
<h2>{{printf (pgettext "Edit Contact “%s”" "title") .BusinessName.Val }}</h2>
<form method="POST">
{{ csrfToken }}
{{ putMethod }}
{{ template "input-field" .BusinessName | addInputAttr "autofocus" }}
{{ template "input-field" .VATIN }}
{{ template "input-field" .TradeName }}
@ -23,7 +30,7 @@
{{ template "select-field" .Country | addSelectAttr `class="width-fixed"` }}
<fieldset>
<button type="submit">{{( pgettext "Update contact" "action" )}}</button>
<button class="primary" type="submit">{{( pgettext "Update contact" "action" )}}</button>
</fieldset>
</form>
</section>

View File

@ -1,34 +1,43 @@
{{ define "title" -}}
{{( pgettext "Contacts" "title" )}}
{{( pgettext "Contacts" "title" )}}
{{- end }}
{{ define "content" }}
<a class="primary button" href="{{ companyURI "/contacts/new" }}">{{( pgettext "New contact" "action" )}}</a>
<nav>
<p>
<a href="{{ companyURI "/" }}">{{( pgettext "Home" "title" )}}</a> /
<a>{{( pgettext "Contacts" "title" )}}</a>
</p>
<p>
<a class="primary button"
href="{{ companyURI "/contacts/new" }}">{{( pgettext "New contact" "action" )}}</a>
</p>
</nav>
<table>
<thead>
<tr>
<th>{{( pgettext "All" "contact" )}}</th>
<th>{{( pgettext "Customer" "title" )}}</th>
<th>{{( pgettext "Email" "title" )}}</th>
<th>{{( pgettext "Phone" "title" )}}</th>
</tr>
</thead>
<tbody>
{{ with .Contacts }}
{{- range $tax := . }}
<tr>
<td></td>
<td><a href="{{ companyURI "/contacts/"}}{{ .Slug }}">{{ .Name }}</a></td>
<td><a href="mailto:{{ .Email }}">{{ .Email }}</a></td>
<td><a href="tel:{{ .Phone }}">{{ .Phone }}</a></td>
</tr>
{{- end }}
{{ else }}
<tr>
<td colspan="4">{{( gettext "No contacts added yet." )}}</td>
</tr>
{{ end }}
</tbody>
</table>
<table>
<thead>
<tr>
<th>{{( pgettext "All" "contact" )}}</th>
<th>{{( pgettext "Customer" "title" )}}</th>
<th>{{( pgettext "Email" "title" )}}</th>
<th>{{( pgettext "Phone" "title" )}}</th>
</tr>
</thead>
<tbody>
{{ with .Contacts }}
{{- range $tax := . }}
<tr>
<td></td>
<td><a href="{{ companyURI "/contacts/"}}{{ .Slug }}">{{ .Name }}</a></td>
<td><a href="mailto:{{ .Email }}">{{ .Email }}</a></td>
<td><a href="tel:{{ .Phone }}">{{ .Phone }}</a></td>
</tr>
{{- end }}
{{ else }}
<tr>
<td colspan="4">{{( gettext "No contacts added yet." )}}</td>
</tr>
{{ end }}
</tbody>
</table>
{{- end }}

View File

@ -4,6 +4,13 @@
{{ define "content" }}
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.contactForm*/ -}}
<nav>
<p>
<a href="{{ companyURI "/" }}">{{( pgettext "Home" "title" )}}</a> /
<a href="{{ companyURI "/contacts"}}">{{( pgettext "Contacts" "title" )}}</a> /
<a>{{( pgettext "New Contact" "title" )}}</a>
</p>
</nav>
<section class="dialog-content">
<h2>{{(pgettext "New Contact" "title")}}</h2>
<form method="POST" action="{{ companyURI "/contacts" }}">
@ -21,7 +28,7 @@
{{ template "select-field" .Country | addSelectAttr `class="width-fixed"` }}
<fieldset>
<button type="submit">{{( pgettext "New contact" "action" )}}</button>
<button class="primary" type="submit">{{( pgettext "New contact" "action" )}}</button>
</fieldset>
</form>

View File

@ -4,6 +4,12 @@
{{ define "content" }}
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.profileForm*/ -}}
<nav>
<p>
<a href="{{ companyURI "/" }}">{{( pgettext "Home" "title" )}}</a> /
<a>{{( pgettext "User Settings" "title" )}}</a>
</p>
</nav>
<section class="dialog-content">
<h2>{{(pgettext "User Settings" "title")}}</h2>
<form method="POST">

View File

@ -3,6 +3,12 @@
{{- end }}
{{ define "content" }}
<nav>
<p>
<a href="{{ companyURI "/" }}">{{( pgettext "Home" "title" )}}</a> /
<a>{{( pgettext "Tax Details" "title" )}}</a>
</p>
</nav>
<section class="dialog-content">
<h2>{{(pgettext "Tax Details" "title")}}</h2>
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.TaxDetailsPage*/ -}}