/**
  * return the base template name
  *
  * @param Request $request
  * @param Admin $admin
  * @return string the template name
  */
 protected function getBaseTemplate(Request $request, Admin $admin)
 {
     if ($request->isXmlHttpRequest()) {
         return $admin->getTemplate('ajax');
     }
     return $admin->getTemplate('layout');
 }
Exemple #2
0
 public function getTemplate($name)
 {
     switch ($name) {
         case 'edit':
             return 'AppBundle::Backend/CRUD/edit.html.twig';
             break;
         default:
             return parent::getTemplate($name);
             break;
     }
 }
Exemple #3
0
 /**
  * @param string $name
  * @return null|string|void
  */
 public function getTemplate($name)
 {
     switch ($name) {
         case 'list':
             return 'admin/list.html.twig';
             break;
         default:
             return parent::getTemplate($name);
             break;
     }
 }
 public function getTemplate($name)
 {
     switch ($name) {
         case 'edit':
             return 'BundlesInventarioBundle:CRUD:InvEntrada/edit.html.twig';
             break;
         default:
             return parent::getTemplate($name);
             break;
     }
 }
 public function getTemplate($name)
 {
     switch ($name) {
         case 'list':
             return 'BundlesCatalogosBundle:CtlEmpleadoAdmin:list.html.twig';
             break;
         default:
             return parent::getTemplate($name);
             break;
     }
 }
 public function getTemplate($name)
 {
     switch ($name) {
         case 'edit':
             return 'ApplicationSonataUserBundle:Admin/Form:edit.html.twig';
             break;
         default:
             return parent::getTemplate($name);
             break;
     }
 }
 public function getTemplate($name)
 {
     switch ($name) {
         case 'edit':
             return 'PirastruFormBuilderBundle:CRUD:formbuilder.html.twig';
             break;
         default:
             return parent::getTemplate($name);
             break;
     }
 }
 /**
  * @param string $name
  * @return null|string
  */
 public function getTemplate($name)
 {
     switch ($name) {
         case 'preview':
             return 'LSoftAdBundle:Admin:preview_ad.html.twig';
             break;
         default:
             return parent::getTemplate($name);
             break;
     }
 }
Exemple #9
0
 public function getTemplate($name)
 {
     switch ($name) {
         case 'edit':
             return 'InodataFloraBundle:Customer:edit.html.twig';
             break;
         default:
             return parent::getTemplate($name);
             break;
     }
 }
Exemple #10
0
 public function getTemplate($name)
 {
     switch ($name) {
         case 'edit':
             return 'EasyMainBundle:Content:base_edit.html.twig';
             break;
         default:
             return parent::getTemplate($name);
             break;
     }
 }
 public function getTemplate($name)
 {
     switch ($name) {
         case 'edit':
             return 'IndicadoresBundle:CRUD:campo-edit.html.twig';
             break;
         default:
             return parent::getTemplate($name);
             break;
     }
 }
 public function getTemplate($name)
 {
     switch ($name) {
         case 'edit':
             return 'MeisaMenuBundle:Admin:menu/base_edit.html.twig';
             break;
         default:
             return parent::getTemplate($name);
             break;
     }
 }
 public function getTemplate($name)
 {
     switch ($name) {
         case 'list':
             return 'InodataFloraBundle:Distribution:list.html.twig';
             break;
         case 'print':
             return 'InodataFloraBundle:Distribution:print_distribution.html.twig';
         default:
             return parent::getTemplate($name);
             break;
     }
 }
 /**
  * {@inheritdoc}
  */
 public function getTemplate($name)
 {
     switch ($name) {
         case 'list':
             return 'backend\\item\\list.html.twig';
         case 'show':
             return 'backend\\item\\show.html.twig';
         case 'edit':
             return 'backend\\item\\edit.html.twig';
         default:
             return parent::getTemplate($name);
     }
 }
 /**
  * @param string $name
  *
  * @return null|string
  */
 public function getTemplate($name)
 {
     $template = parent::getTemplate($name);
     switch ($name) {
         case 'layout':
             $template = $this->_bundle_name . '::standard_layout.html.twig';
             break;
         case 'create':
         case 'edit':
             return $this->_bundle_name . ':CRUD:edit.html.twig';
     }
     return $template;
 }
Exemple #16
0
 public function getTemplate($name)
 {
     switch ($name) {
         case 'edit':
             return 'InodataFloraBundle:GuiaRoji:edit.html.twig';
             break;
         case 'list':
             return 'InodataFloraBundle:GuiaRoji:list.html.twig';
             break;
         default:
             return parent::getTemplate($name);
             break;
     }
 }
 public function getTemplate($name)
 {
     switch ($name) {
         case 'edit':
             return 'BundlesFacturaBundle:CRUD:FacFacturadetalleAdmin/edit.html.twig';
             break;
             //            case 'show':
             //                return 'MinsalCatalogosBundle:CtlDiagnosticoHistopatologicoAdmin:show.html.twig';
             //                break;
         //            case 'show':
         //                return 'MinsalCatalogosBundle:CtlDiagnosticoHistopatologicoAdmin:show.html.twig';
         //                break;
         default:
             return parent::getTemplate($name);
             break;
     }
 }
 public function getTemplate($name)
 {
     switch ($name) {
         case 'preview':
             return 'ProtalkMediaBundle:Media:preview.html.twig';
             break;
         default:
             return parent::getTemplate($name);
             break;
     }
 }
 public function getTemplate($name)
 {
     switch ($name) {
         case 'edit':
             $entity = $this->getSubject();
             //obtiene el elemento seleccionado en un objeto
             $id = $entity->getId();
             if ($id) {
                 // cuando se edite el registro
                 return 'BundlesFacturaBundle:CRUD:FacFacturaAdmin/edit.html.twig';
             } else {
                 return 'BundlesFacturaBundle:CRUD:FacFacturaAdmin/create.html.twig';
             }
             break;
         default:
             return parent::getTemplate($name);
             break;
     }
 }
 /**
  * @param string $name
  *
  * @return null|string
  */
 public function getTemplate($name)
 {
     switch ($name) {
         case 'create':
         case 'edit':
             return $this->_bundle_name . ':CRUD:edit.html.twig';
     }
     return parent::getTemplate($name);
 }
 public function getTemplate($name)
 {
     switch ($name) {
         case 'edit':
             $entity = $this->getSubject();
             //obtiene el elemento seleccionado en un objeto
             $id = $entity->getId();
             if ($id) {
                 // cuando se edite el registro
                 return 'BundlesCxcBundle:CRUD/CxcCobroReporteAdmin:edit.html.twig';
             } else {
                 return 'BundlesCxcBundle:CRUD/CxcCobroReporteAdmin:create.html.twig';
             }
             break;
             //            case 'show':
             //                return 'MinsalCatalogosBundle:CtlDiagnosticoHistopatologicoAdmin:show.html.twig';
             //                break;
         //            case 'show':
         //                return 'MinsalCatalogosBundle:CtlDiagnosticoHistopatologicoAdmin:show.html.twig';
         //                break;
         default:
             return parent::getTemplate($name);
             break;
     }
 }
 /**
  * @param string $name
  *
  * @return null|string
  */
 public function getTemplate($name)
 {
     switch ($name) {
         case 'list':
             return $this->_bundle_name . ':CRUD:list.html.twig';
         case 'create':
         case 'edit':
             return $this->_bundle_name . ':CRUD:form_abstract_tabs_edit.html.twig';
     }
     return parent::getTemplate($name);
 }
 public function getTemplate($name)
 {
     switch ($name) {
         case 'edit':
             return 'IndicadoresBundle:CRUD:ficha_tecnica-edit.html.twig';
             break;
         case 'show':
             return 'IndicadoresBundle:FichaTecnicaAdmin:show.html.twig';
             break;
         default:
             return parent::getTemplate($name);
             break;
     }
 }
 /**
  * @param string $name
  * @return string
  */
 public function getOriginalTemplate($name)
 {
     return parent::getTemplate($name);
 }