| @@ 150-166 (lines=17) @@ | ||
| 147 | * @return \Symfony\Component\Form\Form The form |
|
| 148 | * @return Form |
|
| 149 | */ |
|
| 150 | private function createCreateForm(BusinessTemplate $view) |
|
| 151 | { |
|
| 152 | $id = $view->getBusinessEntityId(); |
|
| 153 | ||
| 154 | $businessProperties = $this->getBusinessProperties($view); |
|
| 155 | $form = $this->createForm( |
|
| 156 | BusinessTemplateType::class, |
|
| 157 | $view, |
|
| 158 | [ |
|
| 159 | 'action' => $this->generateUrl('victoire_business_template_create', ['id' => $id]), |
|
| 160 | 'method' => 'POST', |
|
| 161 | 'vic_business_properties' => $businessProperties, |
|
| 162 | ] |
|
| 163 | ); |
|
| 164 | ||
| 165 | return $form; |
|
| 166 | } |
|
| 167 | ||
| 168 | /** |
|
| 169 | * Displays a form to create a new BusinessTemplate entity. |
|
| @@ 246-257 (lines=12) @@ | ||
| 243 | * |
|
| 244 | * @return \Symfony\Component\Form\Form The form |
|
| 245 | */ |
|
| 246 | private function createEditForm(BusinessTemplate $view) |
|
| 247 | { |
|
| 248 | $businessProperties = $this->getBusinessProperties($view); |
|
| 249 | ||
| 250 | $form = $this->createForm(BusinessTemplateType::class, $view, [ |
|
| 251 | 'action' => $this->generateUrl('victoire_business_template_update', ['id' => $view->getId()]), |
|
| 252 | 'method' => 'PUT', |
|
| 253 | 'vic_business_properties' => $businessProperties, |
|
| 254 | ]); |
|
| 255 | ||
| 256 | return $form; |
|
| 257 | } |
|
| 258 | ||
| 259 | /** |
|
| 260 | * Edits an existing BusinessTemplate entity. |
|