\n"
@@ -32,17 +32,17 @@ msgctxt "menu"
msgid "Tax Details"
msgstr "Configuración fiscal"
-#: web/template/app.gohtml:33
+#: web/template/app.gohtml:34
msgctxt "action"
msgid "Logout"
msgstr "Salir"
-#: web/template/app.gohtml:42
+#: web/template/app.gohtml:43
msgctxt "nav"
msgid "Dashboard"
msgstr "Panel"
-#: web/template/app.gohtml:43
+#: web/template/app.gohtml:44
msgctxt "nav"
msgid "Contacts"
msgstr "Contactos"
@@ -57,37 +57,47 @@ msgctxt "action"
msgid "Login"
msgstr "Entrar"
-#: web/template/profile.gohtml:2 web/template/profile.gohtml:7
+#: web/template/profile.gohtml:2 web/template/profile.gohtml:8
msgctxt "title"
msgid "User Settings"
msgstr "Configuración usuario"
-#: web/template/profile.gohtml:10
+#: web/template/profile.gohtml:12
msgctxt "title"
msgid "User Access Data"
msgstr "Datos acceso usuario"
-#: web/template/profile.gohtml:16
+#: web/template/profile.gohtml:18
msgctxt "title"
msgid "Password Change"
msgstr "Cambio de contraseña"
-#: web/template/profile.gohtml:23
+#: web/template/profile.gohtml:25
msgctxt "title"
msgid "Language"
msgstr "Idioma"
-#: web/template/profile.gohtml:27 web/template/tax-details.gohtml:133
+#: web/template/profile.gohtml:29 web/template/tax-details.gohtml:90
msgctxt "action"
msgid "Save changes"
msgstr "Guardar cambios"
+#: web/template/contacts-edit.gohtml:2 web/template/contacts-edit.gohtml:8
+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
msgctxt "title"
msgid "Contacts"
msgstr "Contactos"
-#: web/template/contacts-index.gohtml:6 web/template/contacts-new.gohtml:60
+#: web/template/contacts-index.gohtml:6 web/template/contacts-new.gohtml:24
msgctxt "action"
msgid "New contact"
msgstr "Nuevo contacto"
@@ -121,159 +131,227 @@ msgctxt "title"
msgid "Tax Details"
msgstr "Configuración fiscal"
-#: web/template/tax-details.gohtml:11 web/template/contacts-new.gohtml:11
-msgctxt "input"
-msgid "Business name"
-msgstr "Nombre y apellidos"
-
-#: web/template/tax-details.gohtml:15 web/template/contacts-new.gohtml:15
-msgctxt "input"
-msgid "VAT number"
-msgstr "DNI / NIF"
-
-#: web/template/tax-details.gohtml:19 web/template/contacts-new.gohtml:19
-msgctxt "input"
-msgid "Trade name"
-msgstr "Nombre comercial"
-
-#: web/template/tax-details.gohtml:23 web/template/contacts-new.gohtml:23
-msgctxt "input"
-msgid "Phone"
-msgstr "Teléfono"
-
-#: web/template/tax-details.gohtml:27 web/template/contacts-new.gohtml:27
-#: pkg/login.go:33 pkg/profile.go:35
-msgctxt "input"
-msgid "Email"
-msgstr "Correo-e"
-
-#: web/template/tax-details.gohtml:31 web/template/contacts-new.gohtml:31
-msgctxt "input"
-msgid "Web"
-msgstr "Web"
-
-#: web/template/tax-details.gohtml:35 web/template/contacts-new.gohtml:35
-msgctxt "input"
-msgid "Address"
-msgstr "Dirección"
-
-#: web/template/tax-details.gohtml:39 web/template/contacts-new.gohtml:39
-msgctxt "input"
-msgid "City"
-msgstr "Población"
-
-#: web/template/tax-details.gohtml:43 web/template/contacts-new.gohtml:43
-msgctxt "input"
-msgid "Province"
-msgstr "Provincia"
-
-#: web/template/tax-details.gohtml:47 web/template/contacts-new.gohtml:47
-msgctxt "input"
-msgid "Postal code"
-msgstr "Código postal"
-
-#: web/template/tax-details.gohtml:56 web/template/contacts-new.gohtml:56
-msgctxt "input"
-msgid "Country"
-msgstr "País"
-
-#: web/template/tax-details.gohtml:60
-msgctxt "input"
+#: web/template/tax-details.gohtml:25
+msgctxt "title"
msgid "Currency"
msgstr "Moneda"
-#: web/template/tax-details.gohtml:78
+#: web/template/tax-details.gohtml:41
msgctxt "title"
msgid "Tax Name"
msgstr "Nombre impuesto"
-#: web/template/tax-details.gohtml:79
+#: web/template/tax-details.gohtml:42
msgctxt "title"
msgid "Rate (%)"
-msgstr "Porcentage"
+msgstr "Porcentaje"
-#: web/template/tax-details.gohtml:100
+#: web/template/tax-details.gohtml:65
msgid "No taxes added yet."
msgstr "No hay impuestos."
-#: web/template/tax-details.gohtml:106
+#: web/template/tax-details.gohtml:71
msgctxt "title"
msgid "New Line"
msgstr "Nueva línea"
-#: web/template/tax-details.gohtml:111
-msgctxt "input"
-msgid "Tax name"
-msgstr "Nombre impuesto"
-
-#: web/template/tax-details.gohtml:118
-msgctxt "input"
-msgid "Rate (%)"
-msgstr "Porcentage"
-
-#: web/template/tax-details.gohtml:125
+#: web/template/tax-details.gohtml:82
msgctxt "action"
msgid "Add new tax"
msgstr "Añadir nuevo impuesto"
-#: web/template/contacts-new.gohtml:2 web/template/contacts-new.gohtml:7
+#: web/template/contacts-new.gohtml:2 web/template/contacts-new.gohtml:8
msgctxt "title"
msgid "New Contact"
msgstr "Nuevo contacto"
-#: pkg/login.go:44 pkg/profile.go:41
+#: pkg/login.go:36 pkg/profile.go:40 pkg/contacts.go:179
+msgctxt "input"
+msgid "Email"
+msgstr "Correo-e"
+
+#: pkg/login.go:47 pkg/profile.go:49
msgctxt "input"
msgid "Password"
msgstr "Contraseña"
-#: pkg/login.go:66 pkg/profile.go:71
+#: pkg/login.go:69 pkg/profile.go:88 pkg/contacts.go:263
msgid "Email can not be empty."
msgstr "No podéis dejar el correo-e en blanco."
-#: pkg/login.go:67 pkg/profile.go:72
+#: pkg/login.go:70 pkg/profile.go:89 pkg/contacts.go:264
msgid "This value is not a valid email. It should be like name@domain.com."
msgstr "Este valor no es un correo-e válido. Tiene que ser parecido a nombre@dominio.es."
-#: pkg/login.go:69
+#: pkg/login.go:72
msgid "Password can not be empty."
-msgstr "No podéis dejar la contaseña en blanco."
+msgstr "No podéis dejar la contraseña en blanco."
-#: pkg/login.go:95
+#: pkg/login.go:108
msgid "Invalid user or password."
msgstr "Nombre de usuario o contraseña inválido."
-#: pkg/profile.go:23
+#: pkg/company.go:78
+msgctxt "input"
+msgid "Currency"
+msgstr "Moneda"
+
+#: pkg/company.go:95
+msgid "Selected currency is not valid."
+msgstr "Habéis escogido una moneda que no es válida."
+
+#: pkg/company.go:217
+msgctxt "input"
+msgid "Tax name"
+msgstr "Nombre impuesto"
+
+#: pkg/company.go:223
+msgctxt "input"
+msgid "Rate (%)"
+msgstr "Porcentaje"
+
+#: pkg/company.go:245
+msgid "Tax name can not be empty."
+msgstr "No podéis dejar el nombre del impuesto en blanco."
+
+#: pkg/company.go:246
+msgid "Tax rate can not be empty."
+msgstr "No podéis dejar el porcentaje en blanco."
+
+#: pkg/company.go:247
+msgid "Tax rate must be an integer between -99 and 99."
+msgstr "El porcentaje tiene que estar entre -99 y 99."
+
+#: pkg/profile.go:25
msgctxt "language option"
msgid "Automatic"
msgstr "Automático"
-#: pkg/profile.go:29
+#: pkg/profile.go:31
msgctxt "input"
msgid "User name"
msgstr "Nombre de usuario"
-#: pkg/profile.go:46
+#: pkg/profile.go:57
msgctxt "input"
msgid "Password Confirmation"
-msgstr "Confirmación contrasenya"
+msgstr "Confirmación contraseña"
-#: pkg/profile.go:51
+#: pkg/profile.go:65
msgctxt "input"
msgid "Language"
msgstr "Idioma"
-#: pkg/profile.go:74
+#: pkg/profile.go:91
msgid "Name can not be empty."
msgstr "No podéis dejar el nombre en blanco."
-#: pkg/profile.go:75
+#: pkg/profile.go:92
msgid "Confirmation does not match password."
msgstr "La confirmación no corresponde con la contraseña."
-#: pkg/profile.go:76
+#: pkg/profile.go:93
msgid "Selected language is not valid."
msgstr "Habéis escogido un idioma que no es válido."
+#: pkg/contacts.go:150
+msgctxt "input"
+msgid "Business name"
+msgstr "Nombre y apellidos"
+
+#: pkg/contacts.go:159
+msgctxt "input"
+msgid "VAT number"
+msgstr "DNI / NIF"
+
+#: pkg/contacts.go:165
+msgctxt "input"
+msgid "Trade name"
+msgstr "Nombre comercial"
+
+#: pkg/contacts.go:170
+msgctxt "input"
+msgid "Phone"
+msgstr "Teléfono"
+
+#: pkg/contacts.go:188
+msgctxt "input"
+msgid "Web"
+msgstr "Web"
+
+#: pkg/contacts.go:196
+msgctxt "input"
+msgid "Address"
+msgstr "Dirección"
+
+#: pkg/contacts.go:205
+msgctxt "input"
+msgid "City"
+msgstr "Población"
+
+#: pkg/contacts.go:211
+msgctxt "input"
+msgid "Province"
+msgstr "Provincia"
+
+#: pkg/contacts.go:217
+msgctxt "input"
+msgid "Postal code"
+msgstr "Código postal"
+
+#: pkg/contacts.go:226
+msgctxt "input"
+msgid "Country"
+msgstr "País"
+
+#: pkg/contacts.go:256
+msgid "Business name can not be empty."
+msgstr "No podéis dejar el nombre y los apellidos en blanco."
+
+#: pkg/contacts.go:257
+msgid "VAT number can not be empty."
+msgstr "No podéis dejar el DNI o NIF en blanco."
+
+#: pkg/contacts.go:258
+msgid "This value is not a valid VAT number."
+msgstr "Este valor no es un DNI o NIF válido."
+
+#: pkg/contacts.go:260
+msgid "Phone can not be empty."
+msgstr "No podéis dejar el teléfono en blanco."
+
+#: pkg/contacts.go:261
+msgid "This value is not a valid phone number."
+msgstr "Este valor no es un teléfono válido."
+
+#: pkg/contacts.go:267
+msgid "This value is not a valid web address. It should be like https://domain.com/."
+msgstr "Este valor no es una dirección web válida. Tiene que ser parecida a https://dominio.es/."
+
+#: pkg/contacts.go:269
+msgid "Address can not be empty."
+msgstr "No podéis dejar la dirección en blanco."
+
+#: pkg/contacts.go:270
+msgid "City can not be empty."
+msgstr "No podéis dejar la población en blanco."
+
+#: pkg/contacts.go:271
+msgid "Province can not be empty."
+msgstr "No podéis dejar la provincia en blanco."
+
+#: pkg/contacts.go:272
+msgid "Postal code can not be empty."
+msgstr "No podéis dejar el código postal en blanco."
+
+#: pkg/contacts.go:273
+msgid "This value is not a valid postal code."
+msgstr "Este valor no es un código postal válido válido."
+
+#: pkg/contacts.go:275
+msgid "Selected country is not valid."
+msgstr "Habéis escogido un país que no es válido."
+
#~ msgctxt "nav"
#~ msgid "Customers"
#~ msgstr "Clientes"
diff --git a/web/template/contacts-edit.gohtml b/web/template/contacts-edit.gohtml
new file mode 100644
index 0000000..d10a9b5
--- /dev/null
+++ b/web/template/contacts-edit.gohtml
@@ -0,0 +1,30 @@
+{{ define "title" -}}
+ {{printf (pgettext "Edit Contact “%s”" "title") .BusinessName.Val }}
+{{- end }}
+
+{{ define "content" }}
+ {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.contactForm*/ -}}
+
+ {{printf (pgettext "Edit Contact “%s”" "title") .BusinessName.Val }}
+
+
+{{- end }}
diff --git a/web/template/contacts-index.gohtml b/web/template/contacts-index.gohtml
index 75b095f..7cc0ec0 100644
--- a/web/template/contacts-index.gohtml
+++ b/web/template/contacts-index.gohtml
@@ -19,9 +19,9 @@
{{- range $tax := . }}
|
- {{ .Name }} |
- {{ .Email }} |
- {{ .Phone }} |
+ {{ .Name }} |
+ {{ .Email }} |
+ {{ .Phone }} |
{{- end }}
{{ else }}
diff --git a/web/template/tax-details.gohtml b/web/template/tax-details.gohtml
index 28df9b0..0d0714b 100644
--- a/web/template/tax-details.gohtml
+++ b/web/template/tax-details.gohtml
@@ -53,7 +53,7 @@
|