|
@@ -56,7 +56,7 @@ class SecurityController extends AbstractController
|
|
$this->addFlash('success', 'L\'utilisateur a été ajouté');
|
|
$this->addFlash('success', 'L\'utilisateur a été ajouté');
|
|
return $this->redirectToRoute('admin_index');
|
|
return $this->redirectToRoute('admin_index');
|
|
}
|
|
}
|
|
- return $this->renderForm('security/createuser.html.twig', array (
|
|
|
|
|
|
+ return $this->render('security/createuser.html.twig', array (
|
|
'form' => $form
|
|
'form' => $form
|
|
));
|
|
));
|
|
}
|
|
}
|
|
@@ -72,7 +72,7 @@ class SecurityController extends AbstractController
|
|
$this->addFlash('success', 'L\'utilisateur a été modifié');
|
|
$this->addFlash('success', 'L\'utilisateur a été modifié');
|
|
return $this->redirectToRoute('admin_index');
|
|
return $this->redirectToRoute('admin_index');
|
|
}
|
|
}
|
|
- return $this->renderForm('security/createuser.html.twig', array (
|
|
|
|
|
|
+ return $this->render('security/createuser.html.twig', array (
|
|
'form' => $form
|
|
'form' => $form
|
|
));
|
|
));
|
|
}
|
|
}
|
|
@@ -90,7 +90,7 @@ class SecurityController extends AbstractController
|
|
return $this->redirectToRoute('admin_index');
|
|
return $this->redirectToRoute('admin_index');
|
|
}
|
|
}
|
|
|
|
|
|
- return $this->renderForm('profil/preferences.html.twig', [
|
|
|
|
|
|
+ return $this->render('profil/preferences.html.twig', [
|
|
'user' => $options->getUser(),
|
|
'user' => $options->getUser(),
|
|
'form' => $form
|
|
'form' => $form
|
|
]);
|
|
]);
|
|
@@ -116,7 +116,7 @@ class SecurityController extends AbstractController
|
|
$this->addFlash("success", "L'utilisateur a bien été supprimé");
|
|
$this->addFlash("success", "L'utilisateur a bien été supprimé");
|
|
return $this->redirectToRoute('admin_index');
|
|
return $this->redirectToRoute('admin_index');
|
|
}
|
|
}
|
|
- return $this->renderForm('security/supprimeruser.html.twig', array (
|
|
|
|
|
|
+ return $this->render('security/supprimeruser.html.twig', array (
|
|
'user' => $user,
|
|
'user' => $user,
|
|
'form' => $form
|
|
'form' => $form
|
|
));
|
|
));
|
|
@@ -142,7 +142,7 @@ class SecurityController extends AbstractController
|
|
return $this->redirectToRoute('security_attente');
|
|
return $this->redirectToRoute('security_attente');
|
|
}
|
|
}
|
|
|
|
|
|
- return $this->renderForm('security/register.html.twig', [
|
|
|
|
|
|
+ return $this->render('security/register.html.twig', [
|
|
'form' => $form
|
|
'form' => $form
|
|
]);
|
|
]);
|
|
}
|
|
}
|
|
@@ -179,7 +179,7 @@ class SecurityController extends AbstractController
|
|
$this->addFlash('warning', "Cet email n'existe pas");
|
|
$this->addFlash('warning', "Cet email n'existe pas");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- return $this->renderForm('security/chercheruserpourpassword.html.twig', array (
|
|
|
|
|
|
+ return $this->render('security/chercheruserpourpassword.html.twig', array (
|
|
'form' => $form
|
|
'form' => $form
|
|
));
|
|
));
|
|
}
|
|
}
|
|
@@ -196,7 +196,7 @@ class SecurityController extends AbstractController
|
|
$this->addFlash('success', 'Mot de passe changé, veuillez vous connecter');
|
|
$this->addFlash('success', 'Mot de passe changé, veuillez vous connecter');
|
|
return $this->redirectToRoute('videotheque_liste');
|
|
return $this->redirectToRoute('videotheque_liste');
|
|
}
|
|
}
|
|
- return $this->renderForm('security/password.html.twig', array(
|
|
|
|
|
|
+ return $this->render('security/password.html.twig', array(
|
|
'form' => $form
|
|
'form' => $form
|
|
));
|
|
));
|
|
}
|
|
}
|