<?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 id="container">
		<h3 class="text-center"><?= $titulo ?></h3>
	</div>
	<div class="row contenedor-form">
		<?php
		$form_data         = ['name'       => 'generar_modulo',
		'id'         => 'generar-modulo',
		'class'      => 'create-form',
		'novalidate' => '',
	];
	$attributes_labels = ['class' => 'control-label'];
	?>
	<?php echo form_open(base_url('sistema/generar_modulo'), $form_data); ?>
	<div class="col-lg-4 col-md-4" style="margin:0 auto;float:none;">
		<div class="form-group input-type"> 
			<?php echo form_label('Nombre del Módulo', 'nom_mod', $attributes_labels); ?>
			<div class="input-group">
				<div class="input-group-addon">
					<i class="fa fa-gear"></i>
				</div>
				<?=
				form_input(['name'     => 'nom_mod',
					'id'       => 'nom_mod', 'class'    => 'form-control',
					'required' => '',
					'onkeyup'  => 'lowercase(this.id);'
				])
				?>   
			</div>
		</div> 
		<div class="boton-submit">
			<div class="input-group">
				<a href="<?php echo base_url('administrador') ?>" 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);
?>