<%@include file="/jsp/common/taglibs.jsp"%>

<!-- Modal -->
<div class="modal  bs-example-modal" id="modalEliminar">
	<div class="modal-dialog  modal-sm">
		<div class="modal-content">
			<div class="modal-header">
				<h3 class="modal-title">Eliminar t&iacute;tulo</h3>
				<button type="button" class="btn-close" data-bs-dismiss="modal"
					aria-hidden="true"></button>
			</div>
			<div class="modal-body">
				<s:form id="idEliminar" class="form-horizontal col-md-10"
					action="#">
				<input type="hidden" name="idTituloCnt"  >
				<input type="hidden" name="idLista"  >
				<h4 class="text-danger">
					<i class="fa fa-exclamation-triangle"></i>Esta seguro que desea eliminar el t&iacute;tulo <strong class="descTituloElim"></strong> ?
				</h4>
				</s:form>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-bs-dismiss="modal">Cerrar</button>
				<button type="button" class="btn btn-primary" onclick="tituloController.baja('Eliminar');">Aceptar</button>
			</div>
		</div>
	</div>
</div>


<!-- Modal -->
<div class="modal  bs-example-modal-lg" id="modalEliminarSAP">
	<div class="modal-dialog  modal-lg">
		<div class="modal-content">
			<div class="modal-header">
				<h3 class="modal-title">Eliminar titulo</h3>
				<button type="button" class="btn-close" data-bs-dismiss="modal"
					aria-hidden="true"></button>
			</div>
			<div class="modal-body">

				<s:form id="idEliminarSAP" class="form-horizontal col-md-10"
					action="#">
					<fieldset>
					<input type="hidden" name="idTituloCnt"  >
					<input type="hidden" name="idLista"  >
						<div class="form-group">
							<div class="col-md-offset-2 col-md-8">
							<h4 class="text-danger">
								<i class="fa fa-exclamation-triangle"></i>Esta seguro que desea eliminar el t&iacute;tulo <strong class="descTituloElim"></strong> ?
							</h4>
							</div>
						</div>
						<div class="form-group">
							<label for="inputEmail3" class="col-md-2  control-label">Fecha Contabilizaci&oacute;n</label>
							<div class="col-md-8">
									<v:datePicker name="fechaContabilizacion"  clazz="form-control required datepicker" />
							</div>
						</div>
						<label id="errEli" style="display:none; color:red;">Fecha Contabilizaci&oacute;n es obligatorio</label>
					</fieldset>
				</s:form>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-bs-dismiss="modal">Cerrar</button>
				<button type="button" class="btn btn-primary" onclick="tituloController.baja('EliminarSAP');">Aceptar</button>
			</div>
		</div>
	</div>
</div>

<div class="modal  bs-example-modal-lg" id="modalEliminarFechaSAP">
	<div class="modal-dialog  modal-lg">
		<div class="modal-content">
			<div class="modal-header">
				<h3 class="modal-title">Eliminar t&iacute;tulo</h3>
				<button type="button" class="btn-close" data-bs-dismiss="modal"
					aria-hidden="true"></button>
			</div>
			<div class="modal-body">

				<s:form id="idEliminarFechaSAP" class="form-horizontal col-md-10"
					action="#">
					<fieldset>
					<input type="hidden" name="idTituloCnt"  >
					<input type="hidden" name="idLista"  >
						<div class="form-group">
							<div class="col-md-offset-2 col-md-8">
							<h4 class="text-danger">
								<i class="fa fa-exclamation-triangle"></i>Esta seguro que desea eliminar el t&iacute;tulo <strong class="descTituloElim"></strong> ?
							</h4>
							</div>
						</div>
						<div class="form-group">
							<label for="inputEmail3" class="col-md-2  control-label">Fecha Contabilizaci&oacute;n</label>
							<div class="col-md-8">
									<v:datePicker name="fechaContabilizacion"  clazz="form-control required datepicker" />
							</div>
						</div>
						
						<div class="form-group">
							<label for="inputEmail3" class="col-md-2  control-label">Tipo Perdida</label>
							<div class="col-md-8">
									<select name="bajaPerdida" id="bajaPerdida">
									  <option value="">Selecciona</option>
									  <option value="1">Con Perdida</option>
									  <option value="0">Sin Perdida</option>
									</select>
							</div>
						</div>
						<label id="errEliFecha" style="display:none; color:red;">Fecha Contabilizaci&oacute;n y tipo de perdida son obligatorios</label>						
					</fieldset>
				</s:form>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-bs-dismiss="modal">Cerrar</button>
				<button type="button" class="btn btn-primary" onclick="tituloController.baja('EliminarFechaSAP');">Aceptar</button>
			</div>
		</div>
	</div>
</div>
