Archived
1
0
Fork 0

Add locales to sandwiches

This commit is contained in:
Ethanell 2020-08-18 17:10:45 +02:00
parent d6f30b71d8
commit 72af0b8a3f
3 changed files with 6 additions and 5 deletions

View file

@ -1,7 +1,6 @@
{
"layout": {
"home": "Home",
"sandwiches": "Sandwiches",
"administration": "Administration",
"logout": "Logout",
"login": "Login",
@ -44,5 +43,7 @@
"password": "Password",
"email": "Email",
"department": "Department",
"commands": "Commands"
"commands": "Commands",
"sandwiches": "Sandwiches",
"date": "Date"
}

View file

@ -11,7 +11,7 @@ html
if user
if user.permissions >= 1
p -
a(href="/sandwiches")=__("layout.sandwiches")
a(href="/sandwiches")=__("sandwiches")
if user.permissions >= 2
p -
a(href="/commands")=__("commands")

View file

@ -2,10 +2,10 @@ extends layout
block content
div#date-selector.card
label(for="date") Date
label(for="date")=__("date")
input#date(type="date" value=date)
div.card
h1 Sandwiches
h1=__("sandwiches")
each sandwich in sandwiches
div.sandwich
h2 #{sandwich.SandwichName}: #{sandwich.dataValues.number}