Commit d6a70654 by Billy Larru

asignar monto amanecidas arreglado

parent a2885ef4
......@@ -442,4 +442,21 @@ let initDatePicker = (...selectorName) => {
$(id).datepicker('setDate', 'now');
});
}
const setTiposContratoOnSelect = (nodeIdentifier, optionAll = true) => {
ajaxWebService
.get(`contratoTipo`)
.then((response) => {
let $select = $(`${nodeIdentifier}`)
let option
if (optionAll) {
option = `<option value="">TODOS</option>`
}
response.data.forEach((value, id) => {
option += `<option value="${value.id}">${value.nombre}</option>`
})
$select.html(option).selectpicker()
$select.selectpicker();
})
}
\ No newline at end of file
......@@ -50,7 +50,7 @@
<div class="row">
<div class="col-md-7 col-md-offset-2">
<div class="col-md-6 col-md-offset-3">
<div class="panel panel-primary card-3" style="margin-top: 30px">
<div class="panel-heading" style="padding: 8px 15px">
<h6 class="panel-title" style="font-size: 15px; font-family: inherit"><i class="icon icon-search4"></i>&nbsp; LISTADO</h6>
......@@ -68,12 +68,10 @@
<%@include file="templates/footer-body.jsp"%>
<!--js de la pagina-->
<script src="../plantilla/assets/js/plugins/tables/datatables/datatables.min.js" type="text/javascript"></script>
<script src="../plantilla/assets/js/core/libraries/jquery_ui/interactions.min.js"></script>
<script src="../plantilla/assets/js/core/libraries/jquery_ui/widgets.min.js"></script>
<script src="../js/lib/sweetalert2.min.js" type="text/javascript"></script>
<script src="../js/lib/lodash.js" type="text/javascript"></script>
<script src="../js/lib/axios.min.js" type="text/javascript"></script>
<script src="../plantilla/assets/js/plugins/forms/inputs/formatter.min.js"></script>
<script src="../js/pages/asignar_monto_amanecida.js"></script>
<!--js-->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment