Commit a958b5aa authored by Mat's avatar Mat

createForm, vérifie les use et affiche le formulaire

parent 8b5d6488
......@@ -6,7 +6,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use TechnoBundle\Entity\Image;
use TechnoBundle\Form\Image\ImageType;
use APIBundle\Form\Owner\ImageAPIType;
use APIBundle\Form\Image\ImageAPIType;
......@@ -120,8 +120,10 @@ class ImageController extends MasterController
*/
public function mainDisplayAction()
{
$form = $this->createForm(ImageAPIType::class);
return $this->render('@Techno/Ajax/Image/mainDisplay.html.twig', array(
'formImage' => $form->createView()
));
}
......
......@@ -16,6 +16,10 @@
</a>
<div class="hidden" style="margin-top: 1em;">
{{ form_start(formImage) }}
{{ form_errors(formImage) }}
{{ form_rest(formImage) }}
{{ form_end(formImage) }}
</div>
<h3>AUTEURS</h3>
......
Markdown is supported
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