Error & payment rework
This commit is contained in:
parent
12d4256021
commit
e5f9952ed5
5 changed files with 12 additions and 15 deletions
|
@ -77,6 +77,7 @@
|
||||||
"chooseUser": "Choose an user"
|
"chooseUser": "Choose an user"
|
||||||
},
|
},
|
||||||
"payment": {
|
"payment": {
|
||||||
|
"payment": "Payment",
|
||||||
"successful": "Payment successful !",
|
"successful": "Payment successful !",
|
||||||
"canceled": "Payment canceled",
|
"canceled": "Payment canceled",
|
||||||
"error": "An error occurred with the payment",
|
"error": "An error occurred with the payment",
|
||||||
|
|
|
@ -77,6 +77,7 @@
|
||||||
"chooseUser": "Choisissez un utilisateur"
|
"chooseUser": "Choisissez un utilisateur"
|
||||||
},
|
},
|
||||||
"payment": {
|
"payment": {
|
||||||
|
"payment": "Paiement",
|
||||||
"successful": "Paiement réussi !",
|
"successful": "Paiement réussi !",
|
||||||
"canceled": "Paiement annulé",
|
"canceled": "Paiement annulé",
|
||||||
"error": "Une erreur est survenue lors du paiement",
|
"error": "Une erreur est survenue lors du paiement",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
extends layout
|
extends layout
|
||||||
|
|
||||||
block content
|
block content
|
||||||
div.card
|
div.container.center
|
||||||
h1= message
|
h1=message
|
||||||
h2= error.status
|
h3=error.status
|
||||||
pre #{error.stack}
|
h5=error.stack
|
||||||
|
|
|
@ -2,7 +2,3 @@ mixin submit(value)
|
||||||
div.recaptcha.recaptcha-cb
|
div.recaptcha.recaptcha-cb
|
||||||
button.btn.waves-effect.waves-light(type="submit" name="action")=value
|
button.btn.waves-effect.waves-light(type="submit" name="action")=value
|
||||||
i.material-icons.right send
|
i.material-icons.right send
|
||||||
|
|
||||||
mixin list(id, list, name, value="", autocomplete="on", required=false)
|
|
||||||
span.list_arrow
|
|
||||||
input(id=id type="list" list=list name=name value=value autocomplete=autocomplete required=required)
|
|
||||||
|
|
|
@ -1,14 +1,13 @@
|
||||||
extends layout
|
extends layout
|
||||||
|
|
||||||
block content
|
block content
|
||||||
div.card
|
div.container.center
|
||||||
h1 Payment
|
h1=__("payment.payment")
|
||||||
if (state === "success")
|
if (state === "success")
|
||||||
h2=__("payment.successful")
|
h4=__("payment.successful")
|
||||||
else if (state === "cancel")
|
else if (state === "cancel")
|
||||||
h2=__("payment.canceled")
|
h4=__("payment.canceled")
|
||||||
else if (state === "error")
|
else if (state === "error")
|
||||||
h2=__("payment.error")
|
h4=__("payment.error")
|
||||||
if (state !== "success")
|
if (state !== "success")
|
||||||
a(href="/order/retry")
|
a.waves-effect.waves-teal.btn(href="/order/retry")=__("payment.retry")
|
||||||
button=__("payment.retry")
|
|
||||||
|
|
Reference in a new issue