Add locales to sandwiches
This commit is contained in:
parent
d6f30b71d8
commit
72af0b8a3f
3 changed files with 6 additions and 5 deletions
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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}
|
||||
|
|
Reference in a new issue