Пример #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="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);
 }
Пример #4
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);
 }
Пример #5
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);
 }
Пример #6
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);
 }
Пример #7
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);
 }
Пример #8
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);
 }
Пример #9
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);
 }
 /**
  * @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);
 }