<?= form_open('principal/update',array('class' => 'form-horizontal','role' => 'form')) ?>
	<legend>Actualizar Perfil</legend>

	<?= my_validation_errors(validation_errors()); ?>

	<div class="form-group">
		<?= form_label('Clave: ','lbl_clave',array('class' => 'col-sm-2 control-label')); ?>
		<div class="col-sm-1">
			<?= form_input(array('class' => 'form-control','type' => 'text','name' => 'pk_cat_personal','id' => 'pk_cat_personal','value' => $registro->pk_cat_personal,'readonly' => 'readonly')) ?>
		</div>
	</div>

	<div class="form-group">
		<?= form_label('Nombre: ','',array('class' => 'col-sm-2 control-label')) ?>
		<div class="col-sm-2">
			<?= form_input(array('class' => 'form-control','type' => 'text','name' => 'nombre','id' => 'nombre','value' => $registro->nombre,'title' => 'Necesario escribir un Nombre','required' => 'required','autofocus' => 'autofocus')) ?>
		</div>
		<?= form_label('Ap. Paterno: ','',array('class' => 'col-sm-2 control-label')) ?>
		<div class="col-sm-2">
			<?= form_input(array('class' => 'form-control','type' => 'text','name' => 'apat','id' => 'apat','value' => $registro->apat,'title' => 'Necesario escribir un Ap. Paterno','required' => 'required')) ?>
		</div>
		<?= form_label('Ap. Materno: ','',array('class' => 'col-sm-2 control-label')) ?>
		<div class="col-sm-2">
			<?= form_input(array('class' => 'form-control','type' => 'text','name' => 'amat','id' => 'amat','value' => $registro->amat,'title' => 'Necesario escribir un Ap. Materno','required' => 'required')) ?>
		</div>
	</div>

	<div class="form-group">
		<?= form_label('Usuario: ','lbl_usuario',array('class' => 'col-sm-2 control-label')) ?>
		<div class="col-sm-3">
			<?= form_input(array('class' => 'form-control','type' => 'text','name' => 'usuario','id' => 'usuario','value' => $registro->usuario,'title' => 'Necesario escribir un Usuario','required' => 'required')) ?>
		</div>
		<?= form_label('Correo: ','lbl_correo',array('class' => 'col-sm-2 control-label')) ?>
		<div class="col-sm-3">
			<?= form_input(array('class' => 'form-control','type' => 'email','name' => 'correo','id' => 'correo','value' => $registro->correo,'title' => 'Necesario escribir un Correo','required' => 'required','placeholder' => 'Correo Electronico')) ?>
		</div>
	</div>

	<div class="col-sm-offset-2 cols-sm-1">
		<?= form_button(array('type' => 'submit','content' => 'Aceptar','class' => 'btn btn-primary')) ?>
		<?= anchor('principal/index','Cancelar',array('class' => 'btn btn-danger')) ?>
	</div>
<?= form_close(); ?>