<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<?php $this->load->view('template/head.php'); ?>
<?php $this->load->view('template/header_admin.php'); ?>
<section>
	<div class="row">
		<div id="container">
			<h3 class="text-center titulo"><?= $titulo ?></h3>
		</div>
	</div>    
</section>
<section>
	<?php
	$form_data         = [
		'name'       => 'generar_escaralepa',
		'id'         => 'generar-escaralepa',
		'class'      => 'create-form',
		'novalidate' => '',
		'target' =>'_blank'
	];
	$attributes_labels = ['class' => 'control-label'];
	?>
	<?php echo form_open(base_url('escarapelas'), $form_data); ?>
	<?php $numero = 1; 
	if($escarapelas_masivo){
		$numero=4;}
		?>
		<div class="row">
			<div class="col-lg-4 col-md-4" style=" margin: 0 auto; float: none;">
				<?php for ($i=0; $i < $numero; $i++):?>
					<div class="form-group input-type"> 
						<?php echo form_label('Digite la cédula', 'cedula', $attributes_labels); ?>
						<div class="input-group">
							<div class="input-group-addon">
								<i class="fa fa-key"></i>
							</div>
							<?=
							form_input([
								'name'     => 'cedula[]',
								'id'       => 'cedula'.$i,
								'class'    => 'form-control uppercase',
								'required' => '',
								'value'=> (isset($cedulas[$i]))?$cedulas[$i]:'',
								'data-parsley-type' => 'integer',
								'autofocus'         => true
							])
							?>   
						</div>
					</div> 
				<?php endfor; ?>
			</div>
		</div>
		<div>
			<div class=" row boton-submit">
				<div class="col-lg-4 col-md-4" style=" margin: 0 auto; float: none;">
					<div class="input-group" style="float: right;">
						<input type="submit" value="Generar" class="btn btn-default">
					</div>
				</div>
			</div>
		</div>
	</div>
	<?php echo form_close(); ?>
</section>
<?php
$data_view['loajs'] = $load_js;
$this->load->view('template/footer.php', $data_view);
?>