Compare commits
2 Commits
a16f696be5
...
dde4395888
Author | SHA1 | Date |
---|---|---|
jordi fita mas | dde4395888 | |
jordi fita mas | 2d5a644c9d |
|
@ -12,6 +12,7 @@ values ('created', 'Created')
|
|||
, ('sent', 'Sent')
|
||||
, ('accepted', 'Accepted')
|
||||
, ('rejected', 'Rejected')
|
||||
, ('invoiced', 'Invoiced')
|
||||
;
|
||||
|
||||
insert into quote_status_i18n (quote_status, lang_tag, name)
|
||||
|
@ -19,10 +20,12 @@ values ('created', 'ca', 'Creat')
|
|||
, ('sent', 'ca', 'Enviat')
|
||||
, ('accepted', 'ca', 'Acceptat')
|
||||
, ('rejected', 'ca', 'Rebutjat')
|
||||
, ('invoiced', 'ca', 'Facturat')
|
||||
, ('created', 'es', 'Creado')
|
||||
, ('sent', 'es', 'Enviado')
|
||||
, ('accepted', 'es', 'Aceptado')
|
||||
, ('rejected', 'es', 'Rechazado')
|
||||
, ('invoiced', 'es', 'Facturado')
|
||||
;
|
||||
|
||||
commit;
|
||||
|
|
|
@ -77,7 +77,7 @@ func NewRouter(db *Db) http.Handler {
|
|||
}
|
||||
http.Redirect(w, r, companyURI(company, "/"), http.StatusFound)
|
||||
} else {
|
||||
http.Redirect(w, r, "/login", http.StatusSeeOther)
|
||||
mustRenderWebTemplate(w, r, "home.gohtml", nil)
|
||||
}
|
||||
})
|
||||
|
||||
|
|
31
po/ca.po
31
po/ca.po
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: numerus\n"
|
||||
"Report-Msgid-Bugs-To: jordi@tandem.blog\n"
|
||||
"POT-Creation-Date: 2023-06-10 20:40+0200\n"
|
||||
"POT-Creation-Date: 2023-06-11 22:23+0200\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"
|
||||
|
@ -25,15 +25,15 @@ msgstr "Afegeix productes a la factura"
|
|||
|
||||
#: web/template/invoices/products.gohtml:9 web/template/invoices/new.gohtml:9
|
||||
#: web/template/invoices/index.gohtml:9 web/template/invoices/view.gohtml:9
|
||||
#: web/template/invoices/edit.gohtml:9 web/template/quotes/products.gohtml:9
|
||||
#: web/template/quotes/new.gohtml:9 web/template/quotes/index.gohtml:9
|
||||
#: web/template/quotes/view.gohtml:9 web/template/quotes/edit.gohtml:9
|
||||
#: web/template/contacts/new.gohtml:9 web/template/contacts/index.gohtml:9
|
||||
#: web/template/contacts/edit.gohtml:10 web/template/profile.gohtml:9
|
||||
#: web/template/expenses/new.gohtml:10 web/template/expenses/index.gohtml:10
|
||||
#: web/template/expenses/edit.gohtml:10 web/template/tax-details.gohtml:9
|
||||
#: web/template/products/new.gohtml:9 web/template/products/index.gohtml:9
|
||||
#: web/template/products/edit.gohtml:10
|
||||
#: web/template/invoices/edit.gohtml:9 web/template/home.gohtml:2
|
||||
#: web/template/quotes/products.gohtml:9 web/template/quotes/new.gohtml:9
|
||||
#: web/template/quotes/index.gohtml:9 web/template/quotes/view.gohtml:9
|
||||
#: web/template/quotes/edit.gohtml:9 web/template/contacts/new.gohtml:9
|
||||
#: web/template/contacts/index.gohtml:9 web/template/contacts/edit.gohtml:10
|
||||
#: web/template/profile.gohtml:9 web/template/expenses/new.gohtml:10
|
||||
#: web/template/expenses/index.gohtml:10 web/template/expenses/edit.gohtml:10
|
||||
#: web/template/tax-details.gohtml:9 web/template/products/new.gohtml:9
|
||||
#: web/template/products/index.gohtml:9 web/template/products/edit.gohtml:10
|
||||
msgctxt "title"
|
||||
msgid "Home"
|
||||
msgstr "Inici"
|
||||
|
@ -251,6 +251,12 @@ msgctxt "title"
|
|||
msgid "Edit Invoice “%s”"
|
||||
msgstr "Edició de la factura «%s»"
|
||||
|
||||
#: web/template/home.gohtml:7 web/template/login.gohtml:2
|
||||
#: web/template/login.gohtml:15
|
||||
msgctxt "title"
|
||||
msgid "Login"
|
||||
msgstr "Entrada"
|
||||
|
||||
#: web/template/form.gohtml:36
|
||||
msgctxt "input"
|
||||
msgid "(Max. %s)"
|
||||
|
@ -448,11 +454,6 @@ msgctxt "title"
|
|||
msgid "Edit Contact “%s”"
|
||||
msgstr "Edició del contacte «%s»"
|
||||
|
||||
#: web/template/login.gohtml:2 web/template/login.gohtml:15
|
||||
msgctxt "title"
|
||||
msgid "Login"
|
||||
msgstr "Entrada"
|
||||
|
||||
#: web/template/login.gohtml:19
|
||||
msgctxt "action"
|
||||
msgid "Login"
|
||||
|
|
31
po/es.po
31
po/es.po
|
@ -7,7 +7,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: numerus\n"
|
||||
"Report-Msgid-Bugs-To: jordi@tandem.blog\n"
|
||||
"POT-Creation-Date: 2023-06-10 20:40+0200\n"
|
||||
"POT-Creation-Date: 2023-06-11 22:23+0200\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"
|
||||
|
@ -25,15 +25,15 @@ msgstr "Añadir productos a la factura"
|
|||
|
||||
#: web/template/invoices/products.gohtml:9 web/template/invoices/new.gohtml:9
|
||||
#: web/template/invoices/index.gohtml:9 web/template/invoices/view.gohtml:9
|
||||
#: web/template/invoices/edit.gohtml:9 web/template/quotes/products.gohtml:9
|
||||
#: web/template/quotes/new.gohtml:9 web/template/quotes/index.gohtml:9
|
||||
#: web/template/quotes/view.gohtml:9 web/template/quotes/edit.gohtml:9
|
||||
#: web/template/contacts/new.gohtml:9 web/template/contacts/index.gohtml:9
|
||||
#: web/template/contacts/edit.gohtml:10 web/template/profile.gohtml:9
|
||||
#: web/template/expenses/new.gohtml:10 web/template/expenses/index.gohtml:10
|
||||
#: web/template/expenses/edit.gohtml:10 web/template/tax-details.gohtml:9
|
||||
#: web/template/products/new.gohtml:9 web/template/products/index.gohtml:9
|
||||
#: web/template/products/edit.gohtml:10
|
||||
#: web/template/invoices/edit.gohtml:9 web/template/home.gohtml:2
|
||||
#: web/template/quotes/products.gohtml:9 web/template/quotes/new.gohtml:9
|
||||
#: web/template/quotes/index.gohtml:9 web/template/quotes/view.gohtml:9
|
||||
#: web/template/quotes/edit.gohtml:9 web/template/contacts/new.gohtml:9
|
||||
#: web/template/contacts/index.gohtml:9 web/template/contacts/edit.gohtml:10
|
||||
#: web/template/profile.gohtml:9 web/template/expenses/new.gohtml:10
|
||||
#: web/template/expenses/index.gohtml:10 web/template/expenses/edit.gohtml:10
|
||||
#: web/template/tax-details.gohtml:9 web/template/products/new.gohtml:9
|
||||
#: web/template/products/index.gohtml:9 web/template/products/edit.gohtml:10
|
||||
msgctxt "title"
|
||||
msgid "Home"
|
||||
msgstr "Inicio"
|
||||
|
@ -251,6 +251,12 @@ msgctxt "title"
|
|||
msgid "Edit Invoice “%s”"
|
||||
msgstr "Edición de la factura «%s»"
|
||||
|
||||
#: web/template/home.gohtml:7 web/template/login.gohtml:2
|
||||
#: web/template/login.gohtml:15
|
||||
msgctxt "title"
|
||||
msgid "Login"
|
||||
msgstr "Entrada"
|
||||
|
||||
#: web/template/form.gohtml:36
|
||||
msgctxt "input"
|
||||
msgid "(Max. %s)"
|
||||
|
@ -448,11 +454,6 @@ msgctxt "title"
|
|||
msgid "Edit Contact “%s”"
|
||||
msgstr "Edición del contacto «%s»"
|
||||
|
||||
#: web/template/login.gohtml:2 web/template/login.gohtml:15
|
||||
msgctxt "title"
|
||||
msgid "Login"
|
||||
msgstr "Entrada"
|
||||
|
||||
#: web/template/login.gohtml:19
|
||||
msgctxt "action"
|
||||
msgid "Login"
|
||||
|
|
|
@ -8,6 +8,7 @@ select 1 / count(*) from quote_status where quote_status = 'created' and name ='
|
|||
select 1 / count(*) from quote_status where quote_status = 'sent' and name ='Sent';
|
||||
select 1 / count(*) from quote_status where quote_status = 'accepted' and name ='Accepted';
|
||||
select 1 / count(*) from quote_status where quote_status = 'rejected' and name ='Rejected';
|
||||
select 1 / count(*) from quote_status where quote_status = 'invoiced' and name ='Invoiced';
|
||||
|
||||
select 1 / count(*) from quote_status_i18n where quote_status = 'created' and name ='Creat' and lang_tag = 'ca';
|
||||
select 1 / count(*) from quote_status_i18n where quote_status = 'created' and name ='Creado' and lang_tag = 'es';
|
||||
|
@ -17,5 +18,7 @@ select 1 / count(*) from quote_status_i18n where quote_status = 'accepted' and n
|
|||
select 1 / count(*) from quote_status_i18n where quote_status = 'accepted' and name ='Aceptado' and lang_tag= 'es';
|
||||
select 1 / count(*) from quote_status_i18n where quote_status = 'rejected' and name ='Rebutjat' and lang_tag= 'ca';
|
||||
select 1 / count(*) from quote_status_i18n where quote_status = 'rejected' and name ='Rechazado' and lang_tag= 'es';
|
||||
select 1 / count(*) from quote_status_i18n where quote_status = 'invoiced' and name ='Facturat' and lang_tag = 'ca';
|
||||
select 1 / count(*) from quote_status_i18n where quote_status = 'invoiced' and name ='Facturado' and lang_tag = 'es';
|
||||
|
||||
rollback;
|
||||
|
|
|
@ -678,6 +678,10 @@ main > nav {
|
|||
background-color: var(--numerus--color--rosy);
|
||||
}
|
||||
|
||||
.quote-status-invoiced {
|
||||
background-color: var(--numerus--color--light-gray);
|
||||
}
|
||||
|
||||
.actions details {
|
||||
position: relative;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
{{ define "title" -}}
|
||||
{{( pgettext "Home" "title" )}}
|
||||
{{- end }}
|
||||
|
||||
{{ define "content" -}}
|
||||
<h1><img src="/static/numerus.svg" alt="Numerus" width="620" height="77"></h1>
|
||||
<a href="/login">{{( pgettext "Login" "title" )}}</a>
|
||||
{{- end }}
|
Loading…
Reference in New Issue