<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-categoria_id">Categoria</label>
  <div class="controls">
    <select name="page[categoria_id]" class="input-xxlarge">
      <option value="0">Selecione</option>
      <?=$this->getCategoriasNoticias($this->page->categoria_id);?>
    </select>
    
  </div>
</div>



<div class="control-group">
  <label class="control-label" for="fileInput">Imagem</label>
  <div class="controls">
    <input class="input-file" type="file" id="fileInput" name="imagem" />

   <span class="help-block">
     <? if(!empty($this->page->imagem)){ ?>
     <input type="hidden" name="page[imagem]" value="<?=$this->page->imagem;?>"/>
     <a href="<?=$this->urlTo("uploads/noticias/".$this->page->imagem);?>" target="_blank">Ver atual</a>
     <? } ?>
     
     </span>
  </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; ?>'/>

