public function editorAction(Request $request, Template $template)
    {
        $form = $this->createForm(new PageManagerType, $template);
        $form->handleRequest($request);

        if ($form->isValid()) {
            $this->get('opifer.content.block_manager')->save($template);
        }

        $parameters = [
            'subject' => $template,
            'subject_type' => 'template',
            'subject_id' => $template->getId(),
            'view_url' => $this->generateUrl('opifer_content_template_editor_view', ['id' => $template->getId()]),
            'form' => $form->createView()];

        return $this->render('OpiferContentBundle:PageManager:editor.html.twig', $parameters);
    }