<?php
if (isset($conexion)) {
    ?>
	<div id="editarProd" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					<h4 class="modal-title"><i class='fa fa-edit'></i> Detalle de Producto</h4>
				</div>
				<div class="modal-body">
					<form class="form-horizontal" method="post" id="editar_prod" name="editar_prod">
						<div id="resultados_ajax2"></div>
						<div class="row">
							<div class="col-md-12">
								<div class="form-group">
									<label for="mod_nom" class="control-label">NOMBRE DEL PRODUCTO:</label>
									<input type="text" class="form-control UpperCase" id="mod_nom" name="mod_nom" disabled>
									<input id="mod_id" name="mod_id" type='hidden'>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-md-6">
								<div class="form-group">
									<label for="mod_cant" class="control-label">CANTIDAD:</label>
									<input type="text" class="form-control UpperCase" id="mod_cant" name="mod_cant" pattern="^[0-9]{1,5}(\.[0-9]{0,2})?$" title="Ingresa sólo números con 0 ó 2 decimales" value="0" autocomplete="off" required>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label for="mod_precio" class="control-label">PRECIO:</label>
									<input type="text" class="form-control UpperCase" id="mod_precio" name="mod_precio" pattern="^[0-9]{1,5}(\.[0-9]{0,2})?$" title="Ingresa sólo números con 0 ó 2 decimales" value="0" autocomplete="off" required>
								</div>
							</div>
						</div>

						<div class="row">
							<div class="col-md-6">
								<div class="form-group">
									<label for="mod_desc" class="control-label">DESCUENTO:</label>
									<input type="number" class="form-control UpperCase" id="mod_desc" name="mod_desc"  autocomplete="off">
								</div>
							</div>
						</div>

					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-secondary waves-effect" data-dismiss="modal">Cerrar</button>
						<button type="submit" class="btn btn-primary waves-effect waves-light" id="actualizar_datos">Actualizar</button>
					</div>
				</form>
			</div>
		</div>
	</div><!-- /.modal -->
	<?php
}
?>