Ejemplo n.º 1
0
 public function getInnerHTML()
 {
     $ace = HTML::tag('div', NULL, array('class' => '\\Psc\\ace-editor'));
     $group = new Group($this->getFormLabel(), $ace);
     $group->addClass('\\Psc\\ace-group');
     return $group;
 }
Ejemplo n.º 2
0
 protected function getContentLayout()
 {
     $content = $this->content;
     // entweder eine group oder ein div(wenn label nicht gesetzt) um den eigentlichen content herum
     if (isset($this->label)) {
         $contentGroup = new Group($this->label, $content);
         $contentGroup->getContentTag()->setStyle('min-height', '350px');
     } else {
         $contentGroup = HTML::tag('div', $content);
         $contentGroup->setStyle('min-height', '350px');
     }
     if (isset($this->accordion)) {
         return new SplitPane($this->splitWidth, $contentGroup, $this->accordion, 2);
         return $pane;
     } else {
         return $contentGroup;
     }
 }
Ejemplo n.º 3
0
 protected function getFormDocumentation()
 {
     $html = \Psc\UI\Group::create($this->trans('component.navigation.doc.levels', array(), 'cms'), array(Form::hint($this->trans('component.navigation.doc.reading', array(), 'cms')) . '<br />', '<br />'))->setStyle('margin-top', '7px');
     $html .= \Psc\UI\Group::create($this->trans('component.navigation.doc.newPage', array(), 'cms'), array(Form::hint($this->trans('component.navigation.doc.addNode', array(), 'cms'))));
     return $html;
 }
Ejemplo n.º 4
0
 public function getInnerHTML()
 {
     return Group::create($this->getFormLabel() ?: 'Bild', HTML::tag('input', NULL, array('type' => 'hidden', 'name' => $this->getFormName(), 'value' => $this->getId())));
 }