Archived
1
0
Fork 0

Error & payment rework

This commit is contained in:
Ethanell 2020-09-29 16:17:47 +02:00
parent 12d4256021
commit e5f9952ed5
5 changed files with 12 additions and 15 deletions

View file

@ -77,6 +77,7 @@
"chooseUser": "Choose an user"
},
"payment": {
"payment": "Payment",
"successful": "Payment successful !",
"canceled": "Payment canceled",
"error": "An error occurred with the payment",

View file

@ -77,6 +77,7 @@
"chooseUser": "Choisissez un utilisateur"
},
"payment": {
"payment": "Paiement",
"successful": "Paiement réussi !",
"canceled": "Paiement annulé",
"error": "Une erreur est survenue lors du paiement",

View file

@ -1,7 +1,7 @@
extends layout
block content
div.card
h1= message
h2= error.status
pre #{error.stack}
div.container.center
h1=message
h3=error.status
h5=error.stack

View file

@ -2,7 +2,3 @@ mixin submit(value)
div.recaptcha.recaptcha-cb
button.btn.waves-effect.waves-light(type="submit" name="action")=value
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)

View file

@ -1,14 +1,13 @@
extends layout
block content
div.card
h1 Payment
div.container.center
h1=__("payment.payment")
if (state === "success")
h2=__("payment.successful")
h4=__("payment.successful")
else if (state === "cancel")
h2=__("payment.canceled")
h4=__("payment.canceled")
else if (state === "error")
h2=__("payment.error")
h4=__("payment.error")
if (state !== "success")
a(href="/order/retry")
button=__("payment.retry")
a.waves-effect.waves-teal.btn(href="/order/retry")=__("payment.retry")