<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<?php $permisos = $this->session->userdata('permisos'); ?>
<?php $this->load->view('template/head.php'); ?>
<?php $this->load->view('template/header_admin.php');?>
<section>
	<div id="container">
		<h3 class="text-center titulo">Duplicar Instancia</h3>
	</div>
	<div class="row contenedor-form">
		<?php
		$form_data         = [
			'name'       => 'crear_form',
			'id'         => 'crear-form',
			'class'      => 'create-form',
			'novalidate' => '',
		];
		$attributes_labels = ['class' => 'control-label'];
		?>
		<?php echo form_open_multipart(base_url('instancias/duplicar'), $form_data); ?>
		<?php if (isset($id_instancia)): ?>
			<?= form_hidden('ID_INSTAN', $id_instancia) ?>
		<?php endif; ?>
		<div class="col-lg-4 col-md-4">
			<div class="form-group input-type"> 
				<?php echo form_label('Nombre nueva Instancia', 'TEX_NOMINS', $attributes_labels); ?>
				<div class="input-group">
					<div class="input-group-addon">
						<i class="fa fa-building"></i>
					</div>
					<?=
					form_input([
						'name'     => 'TEX_NOMINS',
						'id'       => 'TEX_NOMINS',
						'class'    => 'form-control uppercase',
						'onkeyup'  => 'uppercase(this.id);',
                        'required' => ''
                        ])
						?>   
					</div>
				</div> 
				</div> 

            	<div class="row">
            		<div class="col-lg-8 col-md-8">
            			<div class="boton-submit">
            				<div class="input-group">
            					<a href="<?php echo base_url('instancias') ?>" class="btn btn-danger" style="margin-right: 10px;">Regresar</a>
            					<input type="submit" value="Guardar" class="btn btn-default">
            				</div>
            			</div>

            		</div>
            	</div>

            	<?php echo form_close(); ?>
            </section>
            <?php
            $data_view['loajs'] = $load_js;
            $this->load->view('template/footer.php', $data_view);
            ?>