modification du label des boutons (ref #113)
This commit is contained in:
parent
15ff441ca7
commit
b49bf9cd9b
|
@ -286,7 +286,7 @@ class RegistrationController extends Controller
|
|||
array_push($to,$emailmodo["email"]);
|
||||
}
|
||||
|
||||
$url = $this->generateUrl('cadoles_core_config_registration', '', UrlGeneratorInterface::ABSOLUTE_URL);
|
||||
$url = $this->generateUrl('cadoles_core_config_registration', [], UrlGeneratorInterface::ABSOLUTE_URL);
|
||||
$mail_params=array(
|
||||
"subject" => $appname." : Inscription à valider",
|
||||
"body_html"=>"Un utilisateur dont le mail n’est pas en liste blanche souhaite s’inscrire au ".$appname.".\nMerci d’approuver son inscription pour finaliser celle-ci.<br><br>Veuillez vérifier cette inscription à cette adresse:<br><a href='$url'>$url</a>",
|
||||
|
|
|
@ -33,7 +33,7 @@ class RegistrationType extends AbstractType
|
|||
|
||||
$builder->add('submit',
|
||||
SubmitType::class, array(
|
||||
"label" => ($options["mode"]=="delete"?"Confirmer la Suppression":"Confirmer"),
|
||||
"label" => ($options["mode"]=="delete"?"Confirmer la Suppression":($options["mode"]=="submit"?"Confirmer":"Sauvegarder et envoyer le mail")),
|
||||
"attr" => ($options["mode"]=="delete"?array("class" => "btn btn-danger"):array("class" => "btn btn-success"))
|
||||
)
|
||||
);
|
||||
|
@ -41,7 +41,7 @@ class RegistrationType extends AbstractType
|
|||
if($options["mode"]=="send") {
|
||||
$builder->add('save',
|
||||
SubmitType::class, array(
|
||||
"label" => "Sauvegarder",
|
||||
"label" => "Sauvegarder sans envoyer le mail",
|
||||
"attr" => array("class" => "btn btn-success")
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue