private function getCreateForm(AbstractAdmin $admin, $entity)
    {
        $translator = $this->getTranslator();

        $formType = $admin->getForm();

        $form = $this->createForm(
            $formType,
            $entity,
            [
                'action' => $this->getAdminRoutingHelper()->generateUrl($admin, 'create'),
                'method' => 'POST',
            ]
        );
        $form->add(
            'submit',
            SubmitType::class,
            [
                'label' => $translator->trans('crud.create.action', [], 'ShuweeAdminBundle'),
                'attr' => ['class' => 'btn-success'],
            ]
        );

        return $form;
    }