From: soufiane Date: Mon, 6 May 2024 12:57:11 +0000 (+0200) Subject: wait #6893 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=0fd4d679d10d0e2ae57c7d614f23b153c1b59a35;p=bastide-resah.git wait #6893 --- diff --git a/app/Notifications/ResahNotification.php b/app/Notifications/ResahNotification.php index 033bdf0..8598015 100644 --- a/app/Notifications/ResahNotification.php +++ b/app/Notifications/ResahNotification.php @@ -48,7 +48,7 @@ class ResahNotification extends Notification $salutation = 'Cordialement,

Bastide Médical
resah@bastide-medical.fr'; $subjectPrefix = ''; if ($notifiable instanceof User) { - $greetings = ''; + $greetings = ' '; // Without space, default value is set $salutation = 'Message envoyé automatiquement depuis le site Bastide-resah.fr'; $subjectPrefix = '[Bastide-resah.fr] '; } @@ -56,7 +56,7 @@ class ResahNotification extends Notification if ($this->type === self::ACCOUNT_CREATED) { $url = backpack_url('/client/' . $this->data->id . '/edit'); $subject = 'Nouveau compte en attente de validation'; - $html = 'Un nouveau compte client a été créé.
Pour le valider, rendez-vous sur ' . $url . ''; + $html = 'Un nouveau compte client a été créé.
Pour le valider, cliquez sur le lien suivant ' . $url . ''; } else if ($this->type === self::ACCOUNT_VALIDATED) { $subject = 'Votre compte Bastide-resah.fr a été validé'; $url = url('/'); diff --git a/resources/webflow/css/custom.css b/resources/webflow/css/custom.css index fe7769f..f463570 100644 --- a/resources/webflow/css/custom.css +++ b/resources/webflow/css/custom.css @@ -117,7 +117,6 @@ a.back { .cta { width: 100%; height: 40px; - max-width: 220px; text-transform: uppercase; text-align: center; font-size: 14px !important; @@ -127,6 +126,10 @@ a.back { font-weight: 700; } +.cta:not(#send_email_forgotpass) { + max-width: 220px; +} + #register, .form-header, #send_email_forgotpass { background-color: rgba(59, 74, 153); color: #ffffff; @@ -153,8 +156,13 @@ input { border: 1px solid #000000; } +button[type=submit].disabled { + opacity: 0.8; + pointer-events: none; +} + #Bastide_auth_form { - padding: 0 58px 50px; + padding: 0 50px 50px; } #Bastide_register_form { @@ -233,3 +241,6 @@ input { text-transform: initial; font-size: 14px; } +#Bastide_notif_form a { + text-wrap: nowrap; +} diff --git a/resources/webflow/js/custom.js b/resources/webflow/js/custom.js index 15ab7fd..ce7eeaf 100644 --- a/resources/webflow/js/custom.js +++ b/resources/webflow/js/custom.js @@ -20,7 +20,7 @@ Cart.prototype = { let formData = $(this).serialize() var $this = this $.ajax({ - url: '/fluidbook/login', + url: '/landing/login', type: 'POST', data: formData, success: function(data) { @@ -52,6 +52,10 @@ Cart.prototype = { $this.resetpass(formData) }) + $(document).on("submit", "#Bastide_register_form,#Bastide_forgotpass_form,#Bastide_resetpass_form", function() { + let el = $(this).find('button[type="submit"]') + $this.disabledSubmitButton(el) + }) /** * @@ -73,7 +77,7 @@ Cart.prototype = { $this.closeView() }) - $(document).mouseup(function(e) + /*$(document).mouseup(function(e) { var container = $("#Bastide_cart"); @@ -82,7 +86,7 @@ Cart.prototype = { { $this.closeView() } - }); + });*/ }, getCaption: function(title) { @@ -122,6 +126,7 @@ Cart.prototype = { switch (action) { case 'register': form += `
+
établissement hospitalier @@ -192,6 +197,7 @@ Cart.prototype = { break; case 'forgot_pass': form += ` +
@@ -252,6 +258,9 @@ Cart.prototype = { error: function(xhr, status, error) { let errorsMessage = JSON.parse(xhr.responseText); $this.displayErrors(errorsMessage) + }, + complete: function() { + $this.disabledSubmitButton($("button[type=submit]")) } }); }, @@ -259,7 +268,7 @@ Cart.prototype = { forgotpass: function(d) { let $this = this $.ajax({ - url: '/fluidbook/forgotpassword', + url: '/landing/forgotpassword', type: 'POST', data: d, success: function(data) { @@ -267,9 +276,11 @@ Cart.prototype = { $this.updateDataContent() }, error: function(xhr, status, error) { - let errorsMessage = JSON.parse(xhr.responseText); $this.displayErrors(errorsMessage) + }, + complete: function() { + $this.disabledSubmitButton($("button[type=submit]")) } }) }, @@ -286,6 +297,9 @@ Cart.prototype = { error: function(xhr, status, error) { let errorsMessage = JSON.parse(xhr.responseText); $this.displayErrors(errorsMessage) + }, + complete: function() { + $this.disabledSubmitButton($("button[type=submit]")) } }) }, @@ -301,6 +315,10 @@ Cart.prototype = { } } }, + + disabledSubmitButton: function(el) { + $(el).toggleClass("disabled") + } } $(function () {