<?= form_open('catalogos/altas_e_s/update_sucursal',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_sucursal','id' => 'pk_cat_sucursal','value' => $registro->pk_cat_sucursal,'readonly' => 'readonly')) ?>
		</div>
	</div>

	<div class="form-group row">
		<?= form_label('Sucursal: ','lbl_sucursal',array('class' => 'col-sm-1 control-label')) ?>
		<div class="col-sm-3">
			<?= form_input(array('autofocus' => 'autofocus','class' => 'form-control','type' => 'text','name' => 'nombre','id' => 'nombre','title' => 'Necesario escribir una sucursal','required' => 'required','placeholder' => 'Nueva Sucursal','value' => $registro->nombre)) ?>
		</div>
		<?= form_label('Prefijo: ','lbl_prefijo',array('class' => 'col-sm-1 control-label')) ?>
		<div class="col-sm-3">
			<?= form_input(array('class' => 'form-control','type' => 'text','name' => 'prefijo','id' => 'prefijo','value' => $registro->prefijo,'readonly' => 'readonly')) ?>
		</div>
		<?= form_label('Empresa: ','lbl_empresa',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>
	</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/sucursal','Cancelar',array('class' => 'btn btn-danger')) ?>
		<?= anchor('catalogos/altas_e_s/update_status/'.$registro->pk_cat_sucursal.'/'.$registro->status.'/sucursal','Cambiar Status',array('class' => 'btn btn-warning','onClick' => "return confirm('¿Está Seguro?')")) ?>
	</div>
<?= form_close(); ?>