|
@@ 59-65 (lines=7) @@
|
| 56 |
|
$form = $this->createForm(new CronType(), $cron); |
| 57 |
|
|
| 58 |
|
$form->handleRequest($request); |
| 59 |
|
if ($form->isValid()) { |
| 60 |
|
$cronManager->add($cron); |
| 61 |
|
$this->addFlash('message', $cronManager->getOutput()); |
| 62 |
|
$this->addFlash('error', $cronManager->getError()); |
| 63 |
|
|
| 64 |
|
return $this->redirect($this->generateUrl('foa_cron_index')); |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
return $this->render('FOACronBundle:Dashboard:index.html.twig', [ |
| 68 |
|
'crons' => $cronManager->get(), |
|
@@ 91-98 (lines=8) @@
|
| 88 |
|
|
| 89 |
|
$request = $this->get('request'); |
| 90 |
|
$form->handleRequest($request); |
| 91 |
|
if ($form->isValid()) { |
| 92 |
|
$cronManager->write(); |
| 93 |
|
|
| 94 |
|
$this->addFlash('message', $cronManager->getOutput()); |
| 95 |
|
$this->addFlash('error', $cronManager->getError()); |
| 96 |
|
|
| 97 |
|
return $this->redirect($this->generateUrl('foa_cron_index')); |
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
return $this->render('FOACronBundle:Dashboard:edit.html.twig', [ |
| 101 |
|
'id' => $id, |