$salutation = 'Cordialement,<br><br>Bastide Médical<br>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] ';
}
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éé.<br>Pour le valider, rendez-vous sur <a href="' . $url . '">' . $url . '</a>';
+ $html = 'Un nouveau compte client a été créé.<br>Pour le valider, cliquez sur le lien suivant <a href="' . $url . '">' . $url . '</a>';
} else if ($this->type === self::ACCOUNT_VALIDATED) {
$subject = 'Votre compte Bastide-resah.fr a été validé';
$url = url('/');
.cta {
width: 100%;
height: 40px;
- max-width: 220px;
text-transform: uppercase;
text-align: center;
font-size: 14px !important;
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;
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 {
text-transform: initial;
font-size: 14px;
}
+#Bastide_notif_form a {
+ text-wrap: nowrap;
+}
let formData = $(this).serialize()
var $this = this
$.ajax({
- url: '/fluidbook/login',
+ url: '/landing/login',
type: 'POST',
data: formData,
success: function(data) {
$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)
+ })
/**
*
$this.closeView()
})
- $(document).mouseup(function(e)
+ /*$(document).mouseup(function(e)
{
var container = $("#Bastide_cart");
{
$this.closeView()
}
- });
+ });*/
},
getCaption: function(title) {
switch (action) {
case 'register':
form += `<form id="Bastide_register_form" class="" data-content="register" action="/fluidbook/signin">
+ <input type="hidden" value="${$('[name=\'csrf-token\']').attr('content')}" name="_token" />
<div class="form-group">
<div class="form-header">
établissement hospitalier
break;
case 'forgot_pass':
form += `<form id="Bastide_forgotpass_form" data-content="forgotpass">
+ <input type="hidden" value="${$('[name=\'csrf-token\']').attr('content')}" name="_token" />
<div class="form-controls">
<label for="">Adresse email</label>
<input type="email" name="email" />
error: function(xhr, status, error) {
let errorsMessage = JSON.parse(xhr.responseText);
$this.displayErrors(errorsMessage)
+ },
+ complete: function() {
+ $this.disabledSubmitButton($("button[type=submit]"))
}
});
},
forgotpass: function(d) {
let $this = this
$.ajax({
- url: '/fluidbook/forgotpassword',
+ url: '/landing/forgotpassword',
type: 'POST',
data: d,
success: function(data) {
$this.updateDataContent()
},
error: function(xhr, status, error) {
-
let errorsMessage = JSON.parse(xhr.responseText);
$this.displayErrors(errorsMessage)
+ },
+ complete: function() {
+ $this.disabledSubmitButton($("button[type=submit]"))
}
})
},
error: function(xhr, status, error) {
let errorsMessage = JSON.parse(xhr.responseText);
$this.displayErrors(errorsMessage)
+ },
+ complete: function() {
+ $this.disabledSubmitButton($("button[type=submit]"))
}
})
},
}
}
},
+
+ disabledSubmitButton: function(el) {
+ $(el).toggleClass("disabled")
+ }
}
$(function () {