Beispiel #1
0
 protected function doInit()
 {
     $this->panel = HTML::tag('div', (object) array('buttons' => $this->panelButtons->html(), 'content' => $this->getContentLayout()), array('class' => '\\Psc\\form-panel'))->setContentTemplate($this->contentTemplate)->setStyle('width', $this->width);
     // panel muss in die form damit alle elemente im <form> tag sind
     $this->form->setContent('panel', $this->panel);
     $this->html = $this->form->html();
 }
Beispiel #2
0
 /**
  * @param Psc\CMS\RequestMeta $formRequestMeta
  */
 public function setFormRequestMeta(RequestMeta $formRequestMeta)
 {
     if ($this->form) {
         $this->form->setRequestMeta($formRequestMeta);
     }
     $this->formRequestMeta = $formRequestMeta;
     return $this;
 }
 public function getFormular()
 {
     $pane = new SplitPane(70);
     $pane->setLeftContent($container = Form::group('Navigation', NULL));
     $container->getContent()->div->setStyle('min-height', '600px');
     $container->addClass('\\Psc\\navigation');
     $pane->setRightContent($this->getFormDocumentation());
     $panelButtons = new PanelButtons(array('save', 'reload'), $this->getTranslationContainer());
     $form = new \Psc\CMS\Form(NULL, '/entities/navigation-node/' . $this->context, 'post');
     $form->setHTTPHeader('X-Psc-Cms-Request-Method', 'PUT');
     $form->setContent('buttons', $panelButtons)->setContent('pane', $pane);
     $main = $form->html();
     $main->addClass('\\Psc\\navigation-container');
     $main->addClass('\\Psc\\serializable');
     $snippet = JooseSnippet::create('Psc.UI.Navigation', array('widget' => JooseSnippet::expr(\Psc\JS\jQuery::getClassSelector($main)), 'flat' => $this->getFlat(), 'uiController' => JooseSnippet::expr('main.getUIController()'), 'languages' => (array) $this->container->getLanguages()));
     $main->templateAppend($snippet->html());
     return $main;
 }