Skip to content

Commit

Permalink
billability table added
Browse files Browse the repository at this point in the history
  • Loading branch information
Karolis Rusenas committed Aug 18, 2015
1 parent aed2543 commit 4dc564b
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions templates/salesforce.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,60 @@ <h3 class="box-title"> {{ data["utilisation_data"]["title"] }}</h3>
</table>
</div>
</div>

<div class="col-md-8">
<!-- Small boxes (Stat box) -->

<div class="box">
<div class="box-header">
<h3 class="box-title"> {{ data["consultant_bilability"]["title"] }}</h3>
</div>
<!-- /.box-header -->
<table id="billability" class="table table-condensed table-bordered">
<thead>
<tr>
<th>
Name
</th>

{% for header in data["consultant_bilability"]["headers"] %}
{% if header != '' %}
<th> {% raw header %}</th>
{% end %}
{% end %}
<th>
Total
</th>
</tr>

</thead>
<tbody>
{% for name, values in data["consultant_bilability"]["body"].items() %}
<tr>
<td>
{{ name }}
</td>
{% for code, aggregates in sorted(values.items()) %}
<td> {% for i, dict in enumerate(aggregates) %}
{% if dict is not None %}
<!-- HTML to write -->
<a href="#" data-toggle="tooltip" title='{{ data["consultant_bilability"]["meta"]["column_info"][i] }}'>{{ dict["label"] }}</a>
<br>
{% end %}

{% end %}
</td>
{% end %}

</tr>
{% end %}

</tbody>
</table>
</div>
</div>


</div>

</section>
Expand Down

0 comments on commit 4dc564b

Please sign in to comment.