Login, register & forget rework
This commit is contained in:
parent
351e7426ff
commit
0fa915dc91
6 changed files with 78 additions and 62 deletions
|
@ -32,7 +32,6 @@
|
||||||
"pay": "Pay",
|
"pay": "Pay",
|
||||||
"payment": "Payment method",
|
"payment": "Payment method",
|
||||||
"creditCard": "Credit card",
|
"creditCard": "Credit card",
|
||||||
"chooseDepartment": "Choose your department",
|
|
||||||
"chooseSandwich": "Choose your sandwich"
|
"chooseSandwich": "Choose your sandwich"
|
||||||
},
|
},
|
||||||
"login": {
|
"login": {
|
||||||
|
@ -94,5 +93,6 @@
|
||||||
"sandwich": "Sandwich",
|
"sandwich": "Sandwich",
|
||||||
"contact": "Contact",
|
"contact": "Contact",
|
||||||
"messageSend": "The message has been sent",
|
"messageSend": "The message has been sent",
|
||||||
"forgetPassword": "Forgot your password"
|
"forgetPassword": "Forgot your password",
|
||||||
|
"chooseDepartment": "Choose your department"
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
"pay": "Payer",
|
"pay": "Payer",
|
||||||
"payment": "Mode de paiement",
|
"payment": "Mode de paiement",
|
||||||
"creditCard": "CB",
|
"creditCard": "CB",
|
||||||
"chooseDepartment": "Choisissez votre département",
|
|
||||||
"chooseSandwich": "Choisissez votre sandwiche"
|
"chooseSandwich": "Choisissez votre sandwiche"
|
||||||
},
|
},
|
||||||
"login": {
|
"login": {
|
||||||
|
@ -95,5 +94,6 @@
|
||||||
"contact": "Contact",
|
"contact": "Contact",
|
||||||
"messageSend": "Le message a bien été envoyé",
|
"messageSend": "Le message a bien été envoyé",
|
||||||
"forgetPassword": "Mot de passe oublié",
|
"forgetPassword": "Mot de passe oublié",
|
||||||
"send": "send"
|
"send": "send",
|
||||||
|
"chooseDepartment": "Choisissez votre département"
|
||||||
}
|
}
|
|
@ -1,20 +1,26 @@
|
||||||
extends layout
|
extends layout
|
||||||
|
|
||||||
block content
|
block content
|
||||||
div.card
|
div.container
|
||||||
h1=__("forgetPassword")
|
div.row
|
||||||
if (!token)
|
h3=__("forgetPassword")
|
||||||
form(action="/forget" method="POST")
|
if (!token)
|
||||||
div.field
|
form(action="/forget" method="POST")
|
||||||
label(for="email")=__("email")
|
div.row
|
||||||
input#email(type="email" name="email" required)
|
div.input-field.col.s12
|
||||||
div.field
|
input#email(type="email" name="email" required)
|
||||||
+submit(value=__("send"))
|
label(for="email")=__("email")
|
||||||
else
|
div.row
|
||||||
form(action="/forget" method="POST")
|
div.input-field.col.s12
|
||||||
input(type="hidden" name="token" value=token)
|
+submit(__("send"))
|
||||||
div.field
|
else
|
||||||
label(for="password")=__("password")
|
form(action="/forget" method="POST")
|
||||||
input#password(type="password" name="password" required)
|
div.row
|
||||||
div.field
|
input(type="hidden" name="token" value=token)
|
||||||
+submit(value=__("send"))
|
div.row
|
||||||
|
div.input-field.col.s12
|
||||||
|
input#password(type="password" name="password" required)
|
||||||
|
label(for="password")=__("password")
|
||||||
|
div.row
|
||||||
|
div.input-field.col.s12
|
||||||
|
+submit(__("send"))
|
||||||
|
|
|
@ -8,7 +8,7 @@ block content
|
||||||
div.row
|
div.row
|
||||||
div.input-field.col.s12
|
div.input-field.col.s12
|
||||||
select(name="department" required)
|
select(name="department" required)
|
||||||
option(value="" disabled selected hidden)=__("index.chooseDepartment")
|
option(value="" disabled selected hidden)=__("chooseDepartment")
|
||||||
each department in departments
|
each department in departments
|
||||||
option(value=department.name)=department.name
|
option(value=department.name)=department.name
|
||||||
label=__("department")+":"
|
label=__("department")+":"
|
||||||
|
|
|
@ -1,18 +1,22 @@
|
||||||
extends layout
|
extends layout
|
||||||
|
|
||||||
block content
|
block content
|
||||||
div.card
|
div.container
|
||||||
form(action="/login" method="POST")
|
div.row
|
||||||
h1=__("login.title")
|
form(action="/login" method="POST")
|
||||||
div.field
|
h3=__("login.title")
|
||||||
label(for="username")=__("username")+":"
|
div.row
|
||||||
input#username(type="text" name="username" required)
|
div.input-field.col.s12
|
||||||
div.field
|
input#username(type="text" name="username" required)
|
||||||
label(for="password")=__("password")+":"
|
label(for="username")=__("username")+":"
|
||||||
input#password(type="password" name="password" required)
|
div.row
|
||||||
div.field
|
div.input-field.col.s12
|
||||||
+submit(value=__("login.submit"))
|
input#password(type="password" name="password" required)
|
||||||
|
label(for="password")=__("password")+":"
|
||||||
|
div.row.center
|
||||||
|
div.input-field.col.s12
|
||||||
|
+submit(__("login.submit"))
|
||||||
|
|
||||||
div.field
|
div.row.center
|
||||||
a(href="/forget")
|
div.input-field.col.s12
|
||||||
input(type="button" value=__("forgetPassword"))
|
a.btn.waves-effect.waves-light.red(href="/forget")=__("forgetPassword")
|
||||||
|
|
|
@ -1,29 +1,35 @@
|
||||||
extends layout
|
extends layout
|
||||||
|
|
||||||
block content
|
block content
|
||||||
form.card(action="/register" method="POST")
|
div.container
|
||||||
h1=__("register.title")
|
div.row
|
||||||
div.field
|
form(action="/register" method="POST")
|
||||||
label(for="username")=__("username")+":"
|
h3=__("register.title")
|
||||||
input#username(type="text" name="username" required)
|
div.row
|
||||||
div.field
|
div.input-field.col.s6
|
||||||
label(for="email")=__("email")+":"
|
input#username(type="text" name="username" required)
|
||||||
input#email(type="email" name="email" required)
|
label(for="username")=__("username")+":"
|
||||||
div.field
|
div.input-field.col.s6
|
||||||
label(for="firstName")=__("firstName")+":"
|
input#email(type="email" name="email" required)
|
||||||
input#firstName(type="text" name="firstName" required)
|
label(for="email")=__("email")+":"
|
||||||
div.field
|
div.row
|
||||||
label(for="lastName")=__("lastName")+":"
|
div.input-field.col.s6
|
||||||
input#lastName(type="text" name="lastName" required)
|
input#firstName(type="text" name="firstName" required)
|
||||||
div.field
|
label(for="firstName")=__("firstName")+":"
|
||||||
label(for="department")=__("department")+":"
|
div.input-field.col.s6
|
||||||
+list("department", "department-list", "department", "", "off", true)
|
input#lastName(type="text" name="lastName" required)
|
||||||
div.field
|
label(for="lastName")=__("lastName")+":"
|
||||||
label(for="password")=__("password")+":"
|
div.row
|
||||||
input#password(type="password" name="password" required)
|
div.input-field.col.s12
|
||||||
div.field
|
select(name="department" required)
|
||||||
+submit(value=__("register.submit"))
|
option(value="" disabled selected hidden)=__("chooseDepartment")
|
||||||
|
each department in departments
|
||||||
datalist#department-list
|
option(value=department.name)=department.name
|
||||||
each department in departments
|
label=__("department")+":"
|
||||||
option(value=department.name)
|
div.row
|
||||||
|
div.input-field.col.s12
|
||||||
|
input#password(type="password" name="password" required)
|
||||||
|
label(for="password")=__("password")+":"
|
||||||
|
div.row.center
|
||||||
|
div.input-field.col.s12
|
||||||
|
+submit(__("register.submit"))
|
||||||
|
|
Reference in a new issue