<?php
  $modulo = 'cms_modules';
?>
<div class="row-fluid">
  <div class="span12 btn-inverse div-top-borded">
    New Module
    <a href="<?=$this->linkTo($modulo, "list", array('r' => $this->page->id));?>" class="btn btn-small btn-info">&laquo; Back to list</a>
  </div>
</div>
<div class="row-fluid box">
  <form class="span12 well pampa_form" action="<?=$this->linkTo($modulo, "add");?>" method="post" enctype="multipart/form-data">

    <?php

    $params = array(
      "module" => $this->module,
      "usergroups" => $this->usergroups,
      "page" => $this->page,
      "categories" => $this->categories,
    );
    echo $this->partial("cms/modules/_form.phtml", $params);

    ?>

    <div class="form-actions">
      <input class="btn" type="button" value="Cancel" onclick="window.location.href = $.baseURL('<?=$this->linkTo($modulo, "list", array('r' => $this->page->id));?>');" />
      <button type="submit" class="btn btn-primary">Save changes</button>
    </div>
  </form>
</div>