diff --git a/assets/controllers/organization_controller.js b/assets/controllers/organization_controller.js index a999613..5f96928 100644 --- a/assets/controllers/organization_controller.js +++ b/assets/controllers/organization_controller.js @@ -63,7 +63,7 @@ export default class extends Controller { ajaxSorting: true, ajaxFiltering: true, rowHeight: 60, - layout: "fitColumns", // activate French + layout: "fitColumns", columns: [ { title: "Logo", diff --git a/src/Controller/UserController.php b/src/Controller/UserController.php index 0a67b16..bf77f0f 100644 --- a/src/Controller/UserController.php +++ b/src/Controller/UserController.php @@ -945,7 +945,7 @@ class UserController extends AbstractController $data = ['user' => $uo->getUsers(), 'organization' => $uo->getOrganization()]; $token = $this->userService->generatePasswordToken($user, $org->getId()); $this->emailService->sendPasswordSetupEmail($user, $token); - $this->logger->info("Invitation email resent to user " . $user->getUserIdentifier() . " for organization " . $org->getName()); + $this->loggerService->logEmailSent($userId, $org->getId(), 'Invitation Resent'); $this->organizationsService->notifyOrganizationAdmins($data, 'USER_INVITED'); return $this->json(['message' => 'Invitation envoyée avec success.'], Response::HTTP_OK); } catch (\Exception $e) { diff --git a/src/Form/UserForm.php b/src/Form/UserForm.php index d52d709..d7b171b 100644 --- a/src/Form/UserForm.php +++ b/src/Form/UserForm.php @@ -22,7 +22,7 @@ class UserForm extends AbstractType ->add('phoneNumber', TextType::class, ['required' => false, 'label' => 'Numéro de téléphone']) ->add('pictureUrl', FileType::class, [ 'required' => false, - 'label' => 'Logo', + 'label' => 'Photo de profil', 'mapped' => false, // Important if the entity property is not directly mapped 'attr' => ['accept' => 'image/*'], ]);