|
@@ 53-59 (lines=7) @@
|
| 50 |
|
$form = $this->createForm(new CronType(), $cron); |
| 51 |
|
|
| 52 |
|
$form->handleRequest($request); |
| 53 |
|
if ($form->isValid()) { |
| 54 |
|
$cronManager->add($cron); |
| 55 |
|
$this->addFlash('message', $cronManager->getOutput()); |
| 56 |
|
$this->addFlash('error', $cronManager->getError()); |
| 57 |
|
|
| 58 |
|
return $this->redirect($this->generateUrl('BCCCronManagerBundle_index')); |
| 59 |
|
} |
| 60 |
|
|
| 61 |
|
return $this->render('FOACronBundle:Dashboard:index.html.twig', array( |
| 62 |
|
'crons' => $cronManager->get(), |
|
@@ 84-91 (lines=8) @@
|
| 81 |
|
|
| 82 |
|
$request = $this->get('request'); |
| 83 |
|
$form->handleRequest($request); |
| 84 |
|
if ($form->isValid()) { |
| 85 |
|
$cronManager->write(); |
| 86 |
|
|
| 87 |
|
$this->addFlash('message', $cronManager->getOutput()); |
| 88 |
|
$this->addFlash('error', $cronManager->getError()); |
| 89 |
|
|
| 90 |
|
return $this->redirect($this->generateUrl('BCCCronManagerBundle_index')); |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
return $this->render('FOACronBundle:Dashboard:edit.html.twig', array( |
| 94 |
|
'form' => $form->createView(), |