<?= form_open('catalogos/altas_e_s/update_empresa',array('class' => 'form-horizontal','role' => 'form')) ?>
	<legend>Actualizar Registro</legend>

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

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

	<div class="form-group row">
		<?= form_label('Razón Social: ','',array('class' => 'col-sm-1 control-label')) ?>
		<div class="col-sm-3">
			<?= form_input(array('class' => 'form-control','type' => 'text','name' => 'razon_social','id' => 'razon_social','value' => $registro->razon_social,'readonly' => 'readonly')) ?>
		</div>
		<?= form_label('RFC: ','',array('class' => 'col-sm-1 control-label')) ?>
		<div class="col-sm-3">
			<?= form_input(array('class' => 'form-control','type' => 'text','name' => 'rfc','id' => 'rfc','value' => $registro->rfc,'readonly' => 'readonly')) ?>
		</div>
		<?= form_label('Contacto: ','',array('class' => 'col-sm-1 control-label')) ?>
		<div class="col-sm-3">
			<?= form_input(array('class' => 'form-control','type' => 'text','name' => 'contacto','id' => 'contacto','title' => 'Necesario escribir un Contacto','required' => 'required','placeholder' => 'Nuevo Contacto','value' => $registro->contacto)) ?>
		</div>
	</div>
	<?= form_hidden('fk_cat_generales',$registro->fk_cat_generales) ?>

	<?= cat_generales($registro); ?>

	<div class="col-sm-offset-2 cols-sm-1">
		<?= form_button(array('type' => 'submit','content' => 'Aceptar','class' => 'btn btn-primary')) ?>
		<?= anchor('catalogos/altas_e_s/index/empresa','Cancelar',array('class' => 'btn btn-danger')) ?>
		<?= anchor('catalogos/altas_e_s/update_status/'.$registro->pk_cat_empresa.'/'.$registro->status.'/empresa','Cambiar Status',array('class' => 'btn btn-warning','onClick' => "return confirm('¿Está Seguro?')")) ?>
	</div>
<?= form_close(); ?>