Exemplo n.º 1
0
<div class="page-header">
<h2><?php 
echo lang('common_change_password');
?>
</h2>
</div>

<?php 
echo form_open('', array('class' => 'form-horizontal form-condensed'));
?>

<?php 
echo Hc_html::wrap_input($new_password['label'], $this->hc_form->build_input($new_password));
?>

<?php 
echo Hc_html::wrap_input($new_password_confirm['label'], $this->hc_form->build_input($new_password_confirm));
?>

<?php 
echo hc_html::wrap_input('', form_submit(array('name' => 'submit', 'class' => 'btn btn-default'), lang('common_save')));
?>

<?php 
echo form_close();
Exemplo n.º 2
0
	<?php 
    foreach ($orphan_errors as $f => $error) {
        ?>
	<li><?php 
        echo $error;
        ?>
</li>
	<?php 
    }
    ?>
	</ul>
</div>
<?php 
}
?>

<?php 
$actions = array();
$actions[] = form_submit(array('name' => 'submit', 'class' => 'btn btn-default'), lang('common_save'));
if ($this->{$this->model}->allow_none or $this->{$this->model}->count() > 1) {
    $actions[] = ci_anchor(array($this->conf['path'], 'delete', $object->id), lang('common_delete'), 'class="btn btn-danger btn-sm hc-confirm"');
}
$actions = join('&nbsp;', $actions);
?>

<?php 
echo hc_html::wrap_input('', $actions);
?>

<?php 
echo form_close();