<div class="control-group">
  <label class="control-label" for="page-titulo">Título</label>
  <div class="controls">
       <?= $this->inputText('page[titulo]', $this->escape($this->page->titulo), array('class' => 'input-xxlarge required')); ?>
    
  </div>
</div>

<div class="control-group">
  <label class="control-label" for="page-data">Data</label>
  <div class="controls">
       <?= $this->inputText('page[data]', (!empty($this->page->data) ?  implode('/', array_reverse(explode('-', $this->page->data))) : '' ), array('class' => 'input-xxlarge datepicker required')); ?>
    
  </div>
</div>


<div class="control-group">
  <label class="control-label" for="page-categoria_id">Categoria</label>
  <div class="controls">
    <select name="page[categoria_id]" class="input-xxlarge">
      <option value="0">Selecione</option>
      <?=$this->getCategoriasAgendas($this->page->categoria_id);?>
    </select>
    
  </div>
</div>



<div class="control-group">
  <label class="control-label" for="page-texto">Texto</label>
  <div class="controls">
    
    <textarea name="page[texto]" rows="3" class="input-xxlarge tinymce required"><?=$this->escape($this->page->texto)?></textarea>
  </div>
</div>


<?php if (!empty($this->page->id)) {?>
<hr>
  <div class="control-group">
  

  
  
</div>
<?php }?>




<input type='hidden' name='page[id]' value='<?= $this->page->id; ?>'/>

