Commit 2e941d14 authored by Mat's avatar Mat
Browse files

OffreLegumes, commente un formulaire non utilisé (à ce stade)

parent 6ac2d6a1
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
namespace PotageBundle\Controller; namespace PotageBundle\Controller;
use APIBundle\Form\OffreLegumesAPIType; //use APIBundle\Form\OffreLegumesAPIType;
use APIBundle\Form\OffreSortedAPIType; use APIBundle\Form\OffreSortedAPIType;
class OffreLegumesController extends MasterController class OffreLegumesController extends MasterController
...@@ -23,13 +23,13 @@ class OffreLegumesController extends MasterController ...@@ -23,13 +23,13 @@ class OffreLegumesController extends MasterController
return $this->createNotFoundException('Non trouvé'); return $this->createNotFoundException('Non trouvé');
} }
$form = $this->createForm(OffreLegumesAPIType::class); //$form = $this->createForm(OffreLegumesAPIType::class);
$formSorted = $this->createForm(OffreSortedAPIType::class); $formSorted = $this->createForm(OffreSortedAPIType::class);
return $this->render('@Potage/OffreLegumes/ajaxDisplay.html.twig', array( return $this->render('@Potage/OffreLegumes/ajaxDisplay.html.twig', array(
'id' => $id, 'id' => $id,
'offre' => $offre, 'offre' => $offre,
'formOffreLegumes' => $form->createView(), //'formOffreLegumes' => $form->createView(),
'formOffreSorted' => $formSorted->createView() 'formOffreSorted' => $formSorted->createView()
)); ));
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment