headTitle($this->form->getLabel()); ?>
Partial('partial/flashMessages.phtml'); ?> form->prepare(); $this->form->setAttribute('title', $this->form->getLabel()); $this->form->setAttribute('class', 'form'); $buttons = $this->Partial('form/partial/buttons.phtml', array('form' => $this->form)); $header = array( array('tabset'=>'post', 'title'=>'Post Title'), array('tabset'=>'seo', 'title'=>'SEO Settings'), ); $blocks = array('post'=>'','seo'=>''); if(!!$this->form->get('revision')) { $header[] = array('tabset'=>'revision', 'title'=>'Revision'); $blocks['revision'] = ''; } $elements = ''; foreach($this->form as $item) { if($item->hasAttribute('data-tab-type')) { $blocks[$item->getAttribute('data-tab-type')] .= $this->formRow($item); } else { $elements .= $this->formRow($item); } } echo $this->form()->openTag($this->form); echo $this->partial('tabset/tabset.phtml', array( 'header'=>$header, 'block'=>array_values($blocks) )); echo $elements; echo $buttons; echo $this->form()->closeTag(); ?>