<?php
  $modulo = 'cms_user';
?>
<div class="row-fluid">
  <div class="span12 btn-inverse div-top-borded">
    Edit User
<?php if($this->loggedUser()->usergroup_id <= 2): ?>
    <a href="<?=$this->linkTo($modulo, "list");?>" class="btn btn-small btn-info">&laquo; Back to list</a>
<?php endif; ?>
  </div>
</div>
<div class="row-fluid box">
  <form class="span12 well pampa_form" action="<?=$this->linkTo($modulo, "update");?>" method="post" enctype="multipart/form-data">

    <?php

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

    ?>

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