Archived
1
0
Fork 0

Add locales to administration

This commit is contained in:
Ethanell 2020-08-18 17:18:17 +02:00
parent b3747909bd
commit 4b519c15b3
4 changed files with 20 additions and 11 deletions

View file

@ -1,7 +1,6 @@
{
"layout": {
"home": "Home",
"administration": "Administration",
"logout": "Logout",
"login": "Login",
"register": "Register",
@ -36,6 +35,16 @@
"infos": "Infos",
"save": "Save"
},
"admin": {
"title": "Administration",
"commandsManagement": "Commands management",
"ordersDate": "Orders date",
"manageCommands": "Manage commands",
"sandwichManagement": "Sandwich management",
"manageSandwiches": "Manage sandwiches",
"userManagement": "User management",
"manageUsers": "Manage users"
},
"firstName": "First name",
"lastName": "Last name",
"username": "Username",

View file

@ -2,7 +2,7 @@ extends ../layout
block content
div.card#commandsManagement
h1 Commands management
h1=__("admin.commandsManagement")
div
each command in commands
div.command

View file

@ -2,23 +2,23 @@ extends ../layout
block content
div.card
h1 Administration
h1=__("admin.title")
div
h2 Commands management
h2=__("admin.commandsManagement")
div.buttons
a(href="/admin/commands/date")
button Orders date
button=__("admin.ordersDate")
a(href="/admin/commands")
button Manage commands
button=__("admin.manageCommands")
div
h2 Sandwich management
h2=__("admin.sandwichManagement")
div.buttons
a(href="/admin/sandwiches")
button Manage sandwiches
button=__("admin.manageSandwiches")
div
h2 User management
h2=__("admin.userManagement")
div.buttons
a(href="/admin/users")
button Manage users
button=__("admin.manageUsers")

View file

@ -17,7 +17,7 @@ html
a(href="/commands")=__("commands")
if user.permissions >= 3
p -
a(href="/admin")=__("layout.administration")
a(href="/admin")=__("admin.title")
p |
if user
a(href="/profile")=user.username