public function renderNewForm($form, $widget, $slot, View $view, $quantum = null, $entity = null)
    {
        //the template displayed is in the widget bundle
        $templateName = $this->container->get('victoire_widget.widget_helper')->getTemplateName('new', $widget);

        return $this->container->get('templating')->render(
            $templateName,
            [
                'widget'  => $widget,
                'form'    => $form->createView(),
                'slot'    => $slot,
                'entity'  => $entity,
                'view'    => $view,
                'quantum' => $quantum,
            ]
        );
    }