예제 #1
0
 protected function performEdit($id, Request $request)
 {
     $action = new EditAction($this->crudInfo, EdkRouteForm::class, ['mode' => EdkRouteForm::EDIT, 'areaRepository' => $this->findAreaRepository()]);
     $action->slug($this->getSlug());
     $action->set('isArea', $this->isArea());
     return $action->run($this, $id, $request);
 }
예제 #2
0
 /**
  * @Route("/{id}/edit", name="admin_user_edit")
  */
 public function editAction($id, Request $request)
 {
     $action = new EditAction($this->crudInfo, AdminUserForm::class);
     return $action->run($this, $id, $request);
 }
예제 #3
0
 /**
  * @Route("/{id}/edit", name="project_course_edit")
  */
 public function editAction($id, Request $request)
 {
     $action = new EditAction($this->crudInfo, CourseForm::class);
     $action->slug($this->getSlug());
     return $action->run($this, $id, $request);
 }
 /**
  * @Route("/{id}/edit", name="project_milestone_status_rule_edit")
  */
 public function editAction($id, Request $request)
 {
     $statusRepo = $this->get(self::STATUS_REPO);
     $milestoneRepo = $this->get(self::MILESTONE_REPO);
     $statusRepo->setProject($this->getActiveProject());
     $milestoneRepo->setProject($this->getActiveProject());
     $action = new EditAction($this->crudInfo, MilestoneStatusRuleForm::class, ['statusRepository' => $statusRepo, 'milestoneRepository' => $milestoneRepo]);
     $action->slug($this->getSlug());
     return $action->run($this, $id, $request);
 }
예제 #5
0
 /**
  * @Route("/{id}/edit", name="admin_project_edit")
  */
 public function editAction($id, Request $request)
 {
     $action = new EditAction($this->crudInfo, AdminProjectForm::class, ['projectRepo' => $this->get('cantiga.core.repo.archived_project')]);
     return $action->run($this, $id, $request);
 }
예제 #6
0
 /**
  * @Route("/{id}/edit", name="project_links_edit")
  */
 public function editAction($id, Request $request)
 {
     $action = new EditAction($this->crudInfo, LinkForm::class, ['type' => LinkForm::PROJECT_SPECIFIC]);
     $action->slug($this->getSlug());
     return $action->run($this, $id, $request);
 }
예제 #7
0
 /**
  * @Route("/{id}/edit", name="area_edk_participant_edit")
  */
 public function editAction($id, Request $request)
 {
     $settingsRepository = $this->get('wio.edk.repo.registration');
     $settingsRepository->setRootEntity($this->getMembership()->getItem());
     $action = new EditAction($this->crudInfo);
     $action->form(function ($controller, $item, $formType, $action) use($settingsRepository) {
         return $controller->createForm(new EdkParticipantForm(EdkParticipantForm::EDIT, $item->getRegistrationSettings(), $settingsRepository), $item, array('action' => $action));
     });
     $action->slug($this->getSlug());
     return $action->run($this, $id, $request);
 }
예제 #8
0
 protected function performEdit($id, Request $request)
 {
     $action = new EditAction($this->crudInfo, new EdkRegistrationSettingsForm(new DateTimeZone($this->getUser()->getSettingsTimezone())));
     $action->slug($this->getSlug());
     return $action->run($this, $id, $request);
 }
예제 #9
0
 /**
  * @Route("/{id}/edit", name="project_area_edit")
  */
 public function editAction($id, Request $request)
 {
     $territoryRepo = $this->get('cantiga.core.repo.project_territory');
     $statusRepo = $this->get('cantiga.core.repo.project_area_status');
     $groupRepo = $this->get('cantiga.core.repo.project_group');
     $territoryRepo->setProject($this->getActiveProject());
     $statusRepo->setProject($this->getActiveProject());
     $groupRepo->setProject($this->getActiveProject());
     $formModel = $this->extensionPointFromSettings(CoreExtensions::AREA_FORM, CoreSettings::AREA_FORM);
     $action = new EditAction($this->crudInfo, ProjectAreaForm::class, ['customFormModel' => $formModel, 'territoryRepository' => $territoryRepo, 'groupRepository' => $groupRepo, 'statusRepository' => $statusRepo]);
     $action->slug($this->getSlug());
     $action->customForm($formModel);
     return $action->run($this, $id, $request);
 }
예제 #10
0
 /**
  * @Route("/{id}/edit", name="project_area_group_edit")
  */
 public function editAction($id, Request $request)
 {
     $action = new EditAction($this->crudInfo, ProjectGroupForm::class, ['categoryRepository' => $this->getCategoryRepo()]);
     $action->slug($this->getSlug());
     return $action->run($this, $id, $request);
 }
예제 #11
0
 /**
  * @Route("/{id}/edit", name="admin_links_edit")
  */
 public function editAction($id, Request $request)
 {
     $action = new EditAction($this->crudInfo, LinkForm::class, ['type' => LinkForm::GENERAL]);
     return $action->run($this, $id, $request);
 }
예제 #12
0
 /**
  * @Route("/{id}/edit", name="project_milestone_edit")
  */
 public function editAction($id, Request $request)
 {
     $action = new EditAction($this->crudInfo, MilestoneForm::class, ['isNew' => false]);
     $action->slug($this->getSlug());
     return $action->run($this, $id, $request);
 }
예제 #13
0
 /**
  * @Route("/{id}/edit", name="admin_export_edit")
  */
 public function editAction($id, Request $request)
 {
     $action = new EditAction($this->crudInfo, new DataExportForm($this->get('cantiga.core.repo.project'), $this->get('cantiga.core.repo.project_area_status')));
     return $action->run($this, $id, $request);
 }
 /**
  * @Route("/{id}/edit", name="project_group_category_edit")
  */
 public function editAction($id, Request $request)
 {
     $action = new EditAction($this->crudInfo, ProjectGroupCategoryForm::class);
     $action->slug($this->getSlug());
     return $action->run($this, $id, $request);
 }