Beispiel #1
0
 public function boot()
 {
     Modules::registerModule('edk', 'EDK module');
     CustomForms::registerService('edk:area-request-form', 'wio.edk.form.area_request');
     CustomForms::registerService('edk:area-form', 'wio.edk.form.area');
     AppTexts::registerName(EdkTexts::REGISTRATION_SETTINGS_TEXT);
     AppTexts::registerName(EdkTexts::MESSAGE_TEXT);
     AppTexts::registerName(EdkTexts::PARTICIPANT_TEXT);
     AppTexts::registerName(EdkTexts::REGISTRATION_FORM_TEXT);
     AppTexts::registerName(EdkTexts::REGISTRATION_TERMS1_TEXT);
     AppTexts::registerName(EdkTexts::REGISTRATION_TERMS2_TEXT);
     AppTexts::registerName(EdkTexts::REGISTRATION_TERMS3_TEXT);
     AppMails::registerName(EdkTexts::NOTIFICATION_MAIL);
     AppMails::registerName(EdkTexts::REGISTRATION_MAIL);
     Activators::registerActivator('route.approved');
 }
Beispiel #2
0
 public function boot()
 {
     Workspaces::registerWorkspace('user', 'User workspace', 'cantiga_home_page', 'ROLE_USER', 'green');
     Workspaces::registerWorkspace('area', 'Area workspace', 'area_dashboard', 'ROLE_AREA_AWARE', 'purple', Workspaces::HIDDEN);
     Workspaces::registerWorkspace('group', 'Group workspace', 'group_dashboard', 'ROLE_GROUP_AWARE', 'black', Workspaces::HIDDEN);
     Workspaces::registerWorkspace('project', 'Project workspace', 'project_dashboard', 'ROLE_PROJECT_AWARE', 'blue', Workspaces::HIDDEN);
     Workspaces::registerWorkspace('admin', 'Admin workspace', 'admin_dashboard', 'ROLE_ADMIN', 'red');
     AppTexts::registerName(CoreTexts::AREA_REQUEST_CREATION_STEP1_TEXT);
     AppTexts::registerName(CoreTexts::AREA_REQUEST_NEW_INFO_TEXT);
     AppTexts::registerName(CoreTexts::AREA_REQUEST_VERIFICATION_INFO_TEXT);
     AppTexts::registerName(CoreTexts::AREA_REQUEST_APPROVED_INFO_TEXT);
     AppTexts::registerName(CoreTexts::AREA_REQUEST_REVOKED_INFO_TEXT);
     AppTexts::registerName(CoreTexts::AREA_REQUEST_CREATION_STEP2_TEXT);
     AppTexts::registerName(CoreTexts::TERMS_OF_USE_TEXT);
     AppTexts::registerName(CoreTexts::LOGIN_TEXT);
     AppTexts::registerName(CoreTexts::DASHBOARD_ADMIN_TEXT);
     AppTexts::registerName(CoreTexts::DASHBOARD_USER_TEXT);
     AppTexts::registerName(CoreTexts::DASHBOARD_PROJECT_TEXT);
     AppTexts::registerName(CoreTexts::DASHBOARD_GROUP_TEXT);
     AppTexts::registerName(CoreTexts::DASHBOARD_AREA_TEXT);
     AppTexts::registerName(CoreTexts::AREA_PROFILE_EDITOR_TEXT);
     AppTexts::registerName(CoreTexts::HELP_INTRODUCTION);
     AppTexts::registerName(CoreTexts::HELP_PROFILE);
     AppTexts::registerName(CoreTexts::HELP_REQUEST_AREAS);
     AppTexts::registerName(CoreTexts::HELP_INVITATIONS);
     AppTexts::registerName(CoreTexts::HELP_ADMIN_MANAGING);
     AppTexts::registerName(CoreTexts::HELP_PROJECT_INTRODUCTION);
     AppTexts::registerName(CoreTexts::HELP_PROJECT_MEMBERS);
     AppTexts::registerName(CoreTexts::HELP_GROUP_INTRODUCTION);
     AppTexts::registerName(CoreTexts::HELP_GROUP_MEMBERS);
     AppTexts::registerName(CoreTexts::HELP_AREA_INTRODUCTION);
     AppTexts::registerName(CoreTexts::HELP_AREA_MEMBERS);
     AppMails::registerName(CoreTexts::CREDENTIAL_CHANGE_MAIL);
     AppMails::registerName(CoreTexts::PASSWORD_RECOVERY_COMPLETED_MAIL);
     AppMails::registerName(CoreTexts::PASSWORD_RECOVERY_MAIL);
     AppMails::registerName(CoreTexts::USER_REGISTRATION_MAIL);
     AppMails::registerName(CoreTexts::INVITATION_MEMBER_MAIL);
     AppMails::registerName(CoreTexts::INVITATION_ANONYMOUS_MAIL);
     AppMails::registerName(CoreTexts::AREA_REQUEST_CREATED_MAIL);
     AppMails::registerName(CoreTexts::AREA_REQUEST_VERIFICATION_MAIL);
     AppMails::registerName(CoreTexts::AREA_REQUEST_APPROVED_MAIL);
     AppMails::registerName(CoreTexts::AREA_REQUEST_REVOKED_MAIL);
 }
Beispiel #3
0
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('place', ChoiceType::class, array('label' => 'Place', 'choices' => AppMails::getNames(), 'attr' => array('help_text' => 'Place where the message is sent.')))->add('subject', TextType::class, array('label' => 'Subject'))->add('content', TextareaType::class, array('label' => 'Content', 'attr' => ['rows' => 20]))->add('locale', TextType::class, array('label' => 'Locale', 'attr' => array('help_text' => 'Must match one of the installed languages.')))->add('save', SubmitType::class, array('label' => 'Save'));
 }