Add locales to administration
This commit is contained in:
parent
b3747909bd
commit
4b519c15b3
4 changed files with 20 additions and 11 deletions
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
"layout": {
|
"layout": {
|
||||||
"home": "Home",
|
"home": "Home",
|
||||||
"administration": "Administration",
|
|
||||||
"logout": "Logout",
|
"logout": "Logout",
|
||||||
"login": "Login",
|
"login": "Login",
|
||||||
"register": "Register",
|
"register": "Register",
|
||||||
|
@ -36,6 +35,16 @@
|
||||||
"infos": "Infos",
|
"infos": "Infos",
|
||||||
"save": "Save"
|
"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",
|
"firstName": "First name",
|
||||||
"lastName": "Last name",
|
"lastName": "Last name",
|
||||||
"username": "Username",
|
"username": "Username",
|
||||||
|
|
|
@ -2,7 +2,7 @@ extends ../layout
|
||||||
|
|
||||||
block content
|
block content
|
||||||
div.card#commandsManagement
|
div.card#commandsManagement
|
||||||
h1 Commands management
|
h1=__("admin.commandsManagement")
|
||||||
div
|
div
|
||||||
each command in commands
|
each command in commands
|
||||||
div.command
|
div.command
|
||||||
|
|
|
@ -2,23 +2,23 @@ extends ../layout
|
||||||
|
|
||||||
block content
|
block content
|
||||||
div.card
|
div.card
|
||||||
h1 Administration
|
h1=__("admin.title")
|
||||||
div
|
div
|
||||||
h2 Commands management
|
h2=__("admin.commandsManagement")
|
||||||
div.buttons
|
div.buttons
|
||||||
a(href="/admin/commands/date")
|
a(href="/admin/commands/date")
|
||||||
button Orders date
|
button=__("admin.ordersDate")
|
||||||
a(href="/admin/commands")
|
a(href="/admin/commands")
|
||||||
button Manage commands
|
button=__("admin.manageCommands")
|
||||||
|
|
||||||
div
|
div
|
||||||
h2 Sandwich management
|
h2=__("admin.sandwichManagement")
|
||||||
div.buttons
|
div.buttons
|
||||||
a(href="/admin/sandwiches")
|
a(href="/admin/sandwiches")
|
||||||
button Manage sandwiches
|
button=__("admin.manageSandwiches")
|
||||||
|
|
||||||
div
|
div
|
||||||
h2 User management
|
h2=__("admin.userManagement")
|
||||||
div.buttons
|
div.buttons
|
||||||
a(href="/admin/users")
|
a(href="/admin/users")
|
||||||
button Manage users
|
button=__("admin.manageUsers")
|
||||||
|
|
|
@ -17,7 +17,7 @@ html
|
||||||
a(href="/commands")=__("commands")
|
a(href="/commands")=__("commands")
|
||||||
if user.permissions >= 3
|
if user.permissions >= 3
|
||||||
p -
|
p -
|
||||||
a(href="/admin")=__("layout.administration")
|
a(href="/admin")=__("admin.title")
|
||||||
p |
|
p |
|
||||||
if user
|
if user
|
||||||
a(href="/profile")=user.username
|
a(href="/profile")=user.username
|
||||||
|
|
Reference in a new issue