<div class="modal fade" id="modalProducto" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="editProductoLabel" aria-hidden="true">
	<div class="modal-dialog modal-lg" role="document">
		<div class="modal-content">
			<div class="modal-wait">
				<div class="modal-header">
					<h5 class="modal-title" id="editProductoLabel">Editar</h5>
					<button type="button" class="close" data-dismiss="modal" aria-label="Close">
						<span aria-hidden="true">&times;</span>
					</button>
				</div>
				<div class="modal-body">
					<?php
						$this->load->view('productos/form');
					?>
				</div>
				<div class="modal-footer">
					<?php 
						if (in_array($_SESSION['usuario']['perfil'], [1, 2])) {
						?>
							<button type="button" class="btn btn-danger mr-auto" id="eliminarProducto">Eliminar</button>
						<?php
						}
					?>
					<button type="button" class="btn btn-secondary" data-dismiss="modal">Cerrar</button>
					<button type="button" class="btn btn-primary" id="editarProducto">Editar</button>
				</div>
			</div>
		</div>
	</div>
</div>