<?php echo $header; ?>

<div id="content">

  <br>

  <div class="box">

    <div class="heading">
      <h1><i class="icon-user"></i> <?php echo $heading_title; ?></h1>
			<?php if ($error_warning) { ?>
				<?php echo p3html::tb_alert('error', $error_warning, true, 'warning'); ?>
			<?php } ?>
      <div class="buttons form-actions form-actions-top">
				<?php echo p3html::tb_form_button_save($button_save); ?>
				<?php echo p3html::tb_form_button_cancel($button_cancel, $cancel); ?>
			</div>
    </div>

    <div class="content">

			<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form" class="form-horizontal">

				<div class="form">
          <div class="control-group<?php if ($error_username) { ?> error<?php } ?>">
            <label class="control-label"><i class="required text-error icon-asterisk"></i> <?php echo $entry_username; ?></label>
            <div class="controls">
							<input type="text" name="username" value="<?php echo $username; ?>" class="span2">
              <?php if ($error_username) { ?>
              <span class="error help-block"><?php echo $error_username; ?></span>
              <?php } ?>
						</div>
          </div>
          <div class="control-group<?php if ($error_firstname) { ?> error<?php } ?>">
            <label class="control-label"><i class="required text-error icon-asterisk"></i> <?php echo $entry_firstname; ?></label>
            <div class="controls">
							<input type="text" name="firstname" value="<?php echo $firstname; ?>" class="span3">
              <?php if ($error_firstname) { ?>
              <span class="error help-block"><?php echo $error_firstname; ?></span>
              <?php } ?>
						</div>
          </div>
          <div class="control-group<?php if ($error_lastname) { ?> error<?php } ?>">
            <label class="control-label"><i class="required text-error icon-asterisk"></i> <?php echo $entry_lastname; ?></label>
            <div class="controls">
							<input type="text" name="lastname" value="<?php echo $lastname; ?>" class="span3">
              <?php if ($error_lastname) { ?>
              <span class="error help-block"><?php echo $error_lastname; ?></span>
              <?php } ?>
						</div>
          </div>
          <div class="control-group">
            <label class="control-label"><?php echo $entry_email; ?></label>
            <div class="controls"><input type="text" name="email" value="<?php echo $email; ?>" class="span4"></div>
          </div>
          <div class="control-group">
            <label class="control-label"><?php echo $entry_user_group; ?></label>
            <div class="controls">
							<select name="user_group_id">
								<?php echo p3html::oc_user_group_options($user_groups, $user_group_id); ?>
              </select>
						</div>
          </div>
          <div class="control-group">
            <label class="control-label"><?php echo $entry_password; ?></label>
            <div class="controls">
							<input type="password" name="password" value="<?php echo $password; ?>" class="span2">
              <?php if ($error_password) { ?>
              <span class="error help-block"><?php echo $error_password; ?></span>
              <?php  } ?>
						</div>
          </div>
          <div class="control-group">
            <label class="control-label"><?php echo $entry_confirm; ?></label>
            <div class="controls">
							<input type="password" name="confirm" value="<?php echo $confirm; ?>" class="span2">
              <?php if ($error_confirm) { ?>
              <span class="error help-block"><?php echo $error_confirm; ?></span>
              <?php  } ?>
						</div>
          </div>
          <div class="control-group">
            <label class="control-label"><?php echo $entry_status; ?></label>
            <div class="controls">
							<select name="status" class="span2">
								<?php echo p3html::oc_status_options($this->language, $status); ?>
              </select>
						</div>
          </div>
        </div>

      </form>

    </div>
  </div>
</div>

<?php echo $footer; ?>