Commit e593a2aa by Billy Larru

[EDIT listando costos de docente]

parent 01b098b2
...@@ -5,6 +5,14 @@ const recibirData = () => { ...@@ -5,6 +5,14 @@ const recibirData = () => {
let filter = localStorage.getItem('filtros') let filter = localStorage.getItem('filtros')
personal = data ? JSON.parse(data) : null; personal = data ? JSON.parse(data) : null;
filtros = filter ? JSON.parse(filter) : null; filtros = filter ? JSON.parse(filter) : null;
let html = ""
let tipoPago = ["A", "B", "C", "D", "E", "F", "G", "H"]
debugger
html += tipoPago
.map(tp => `<li class="list-group-item">${tp}=${personal["pago" + tp]}</li>`)
.reduce((prev, curr) => prev.concat(curr))
$("#ulCostos").html(html)
// localStorage.removeItem('data') // localStorage.removeItem('data')
// localStorage.removeItem('filtros') // localStorage.removeItem('filtros')
} }
......
...@@ -15,18 +15,18 @@ ...@@ -15,18 +15,18 @@
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
<div class="panel panel-primary"> <div class="panel panel-primary">
<div class="panel-heading"> <div class="panel-heading">
<h5 class="panel-title">Información del personal</h5> <h5 class="panel-title">Información del Docente</h5>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div class="row"> <div class="row">
<div class="col-md-6 form-group"> <div class="col-md-6 form-group">
<label>Personal</label> <label>Docente</label>
<span class="label label-left border-left border-left-primary label-striped form-control" id="spanNombres"></span> <span class="label label-left border-left border-left-primary label-striped form-control" id="spanNombres"></span>
</div> </div>
<div class="col-md-6 form-group"> <div class="col-md-6 form-group">
<label>Costos</label> <label>Costos</label>
<ul id="ulCostos"></ul> <ul id="ulCostos" class="list-group"></ul>
</div> </div>
</div> </div>
......
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