protected function getAjaxEditResponse(Form $form, PageInterface $page)
    {
        $view = $form->createView();

        // set the theme for the current Admin Form
        $this->setFormTheme($view, $this->admin->getFormTheme());

        $pageSettingsHtml = $this->renderView(
            '@NetworkingInitCms/PageAdmin/page_settings_fields.html.twig',
            [
                'action' => 'edit',
                'form' => $view,
                'object' => $page,
                'admin' => $this->admin,
                'admin_pool' => $this->get('sonata.admin.pool'),
            ]
        );

        $pageStatusSettingsHtml = $this->renderView(
            '@NetworkingInitCms/PageAdmin/page_status_settings.html.twig',
            [
                'action' => 'edit',
                'form' => $view,
                'object' => $page,
                'admin' => $this->admin,
                'admin_pool' => $this->get('sonata.admin.pool'),
            ]
        );

        return $this->renderJson(
            [
                'result' => 'ok',
                'objectId' => $page->getId(),
                'title' => $page->__toString(),
                'messageStatus' => 'success',
                'message' => $this->translate('info.page_settings_updated'),
                'pageStatus' => $this->translate($page->getStatus()),
                'pageStatusSettings' => $pageStatusSettingsHtml,
                'pageSettings' => $pageSettingsHtml,
            ]
        );
    }