| @@ 112-125 (lines=14) @@ | ||
| 109 | * @Method("GET") |
|
| 110 | * @Template() |
|
| 111 | */ |
|
| 112 | public function editAction(SubFamilyLog $subfamilylog) |
|
| 113 | { |
|
| 114 | $editForm = $this->createForm(new SubFamilyLogType(), $subfamilylog, array( |
|
| 115 | 'action' => $this->generateUrl( |
|
| 116 | 'admin_subfamilylog_update', |
|
| 117 | array('slug' => $subfamilylog->getSlug()) |
|
| 118 | ), |
|
| 119 | 'method' => 'PUT', |
|
| 120 | )); |
|
| 121 | $deleteForm = $this->createDeleteForm($subfamilylog->getId(), 'admin_subfamilylog_delete'); |
|
| 122 | ||
| 123 | return array( |
|
| 124 | 'subfamilylog' => $subfamilylog, |
|
| 125 | 'edit_form' => $editForm->createView(), |
|
| 126 | 'delete_form' => $deleteForm->createView(), |
|
| 127 | ); |
|
| 128 | } |
|
| @@ 113-126 (lines=14) @@ | ||
| 110 | * @Method("GET") |
|
| 111 | * @Template() |
|
| 112 | */ |
|
| 113 | public function editAction(FamilyLog $familylog) |
|
| 114 | { |
|
| 115 | $editForm = $this->createForm(new FamilyLogType(), $familylog, array( |
|
| 116 | 'action' => $this->generateUrl( |
|
| 117 | 'admin_familylog_update', |
|
| 118 | array('slug' => $familylog->getSlug()) |
|
| 119 | ), |
|
| 120 | 'method' => 'PUT', |
|
| 121 | )); |
|
| 122 | $deleteForm = $this->createDeleteForm($familylog->getId(), 'admin_familylog_delete'); |
|
| 123 | ||
| 124 | return array( |
|
| 125 | 'familylog' => $familylog, |
|
| 126 | 'edit_form' => $editForm->createView(), |
|
| 127 | 'delete_form' => $deleteForm->createView(), |
|
| 128 | ); |
|
| 129 | } |
|