Esempio n. 1
0
 public function createView()
 {
     $view = parent::createView();
     $view->setTemplate($this->configuration->getTemplate('EnhavoAppBundle:Viewer:base.html.twig'));
     $view->setTemplateData(array_merge($view->getTemplateData(), ['javascripts' => $this->getJavascripts(), 'stylesheets' => $this->getStylesheets(), 'requireJsApp' => $this->getApp()]));
     return $view;
 }
Esempio n. 2
0
 public function createView()
 {
     /** @var RequestConfiguration $configuration */
     $configuration = $this->configuration;
     $view = parent::createView();
     $view->setTemplate($this->configuration->getTemplate('EnhavoAppBundle:Viewer:table.html.twig'));
     $view->setTemplateData(array_merge($view->getTemplateData(), ['data' => $this->resource, 'sortable' => $configuration->isSortable(), 'columns' => $this->getColumns(), 'batches' => $this->getBatches(), 'batch_route' => $this->getBatchRoute(), 'width' => $this->optionAccessor->get('width'), 'move_after_route' => $this->optionAccessor->get('sorting.move_after_route'), 'move_to_page_route' => $this->optionAccessor->get('sorting.move_to_page_route')]));
     return $view;
 }
Esempio n. 3
0
 public function createView()
 {
     if ($this->isValidationError() && $this->configuration->isAjaxRequest()) {
         return $this->createValidationView();
     }
     $view = parent::createView();
     $view->setTemplate($this->configuration->getTemplate('EnhavoAppBundle:Resource:create.html.twig'));
     $view->setTemplateData(array_merge($view->getTemplateData(), ['buttons' => $this->getButtons(), 'form' => $this->getForm()->createView(), 'tabs' => $this->getTabs(), 'form_template' => $this->getFormTemplate(), 'form_action' => $this->getFormAction(), 'data' => $this->resource]));
     return $view;
 }