2017-09-14 20:06:51 +02:00

32 lines
1.5 KiB
Plaintext

<% if(dutb && dutb.length > 0) { %>
<h2>Slabi krediti</h2>
<div class="row">
<div class="col-md-4">
<canvas id="chart-area" height="100" width="100"></canvas>
</div>
<div class="col-md-8">
<table class="table">
<thead>
<tr>
<th>Kreditodajalec</th>
<th>Št. pogodbe</th>
<th>Datum pogodbe</th>
<th>Znesek</th>
<th>Zavarovanje</th>
</tr>
</thead>
<% for(var i = 0; i < dutb.length; i++) { %>
<tr>
<td><%= dutb[i].kreditodajalec %></td>
<td><%= dutb[i].st_pogodbe %></td>
<td align='right'><%= dutb[i].datum %></td>
<td align='right'><%= parseFloat(dutb[i].znesek_eur).toFixed(2) %>&nbsp;€</td>
<td><%= dutb[i].zavarovanje_predmet %></td>
</tr>
<% } %>
</table>
</div>
</div>
<% } else { %>
<p>Ni podatkov.</p>
<% } %>