From e9185118b589938d808d11e4bee31bdac2cd7e7a Mon Sep 17 00:00:00 2001 From: soufiane Date: Tue, 23 Apr 2024 11:21:52 +0200 Subject: [PATCH] wip #6867 @0:30 --- .../fluidbook.cart.bastide-resah-guest.js | 23 +++++++++++-------- style/cart/bastide-resah.less | 16 +++++++++---- 2 files changed, 25 insertions(+), 14 deletions(-) diff --git a/js/libs/fluidbook/cart/fluidbook.cart.bastide-resah-guest.js b/js/libs/fluidbook/cart/fluidbook.cart.bastide-resah-guest.js index ea485e93..328c4207 100644 --- a/js/libs/fluidbook/cart/fluidbook.cart.bastide-resah-guest.js +++ b/js/libs/fluidbook/cart/fluidbook.cart.bastide-resah-guest.js @@ -139,7 +139,7 @@ FluidbookCartBastideResahGuest.prototype = { @@ -156,13 +156,15 @@ FluidbookCartBastideResahGuest.prototype = { default: form += `

Pour afficher les tarifs, ajouter des produits à votre sélection, et nous envoyer une demande de devis, veuillez vous identifier :

-
- - -
-
- - +
+
+ + +
+
+ + +
Mot de passe oublié ? @@ -211,12 +213,13 @@ FluidbookCartBastideResahGuest.prototype = { type: 'POST', data: d, success: function(data) { - window.reload() + window.location.reload() }, error: function(xhr, status, error) { let errorsMessage = JSON.parse(xhr.responseText); $(".errors-container").remove() - $("#Bastide_login_form").prepend('

Une erreur est survenue. Verifiez vos identifiants.

') + $(".error").removeClass("error") + $("#Bastide_login_form").addClass("error").find(".form-group").append('

Une erreur est survenue. Verifiez vos identifiants.

') } }); }, diff --git a/style/cart/bastide-resah.less b/style/cart/bastide-resah.less index 3522e7a8..894c448a 100644 --- a/style/cart/bastide-resah.less +++ b/style/cart/bastide-resah.less @@ -445,6 +445,11 @@ } } + a { + text-decoration: underline; + color: @menu-background; + } + input { border: 1px solid #000000; } @@ -573,6 +578,13 @@ } } + #Bastide_login_form .form-group { + margin-bottom: 0; + .errors-container { + margin-bottom: 1.25em; + } + } + #Bastide_register_form { .form-group { display: flex; @@ -608,10 +620,6 @@ p:not(:last-child) { margin-bottom: 20px; } - a { - text-decoration: underline; - color: @menu-background; - } } } -- 2.39.5