2014-10-01 15:11:52 +02:00
|
|
|
<div layout="vertical" layout-padding>
|
2014-07-30 20:48:32 +02:00
|
|
|
|
2014-10-01 15:03:38 +02:00
|
|
|
<div class="date">
|
2014-07-30 23:35:50 +02:00
|
|
|
<h2>
|
2014-09-30 12:15:37 +02:00
|
|
|
From {{from_date | date:'longDate'}} <span data-ng-if="to_date">to {{to_date | date:'longDate'}}</span>
|
2014-07-30 23:35:50 +02:00
|
|
|
</h2>
|
2014-07-30 20:48:32 +02:00
|
|
|
|
2014-10-01 15:11:52 +02:00
|
|
|
<div layout="horizontal" layout-align="end" layout-padding>
|
|
|
|
<material-button data-ng-click="reset_offset()"
|
|
|
|
data-ng-class="{'disabled': period_offset == dates_salaries.length - 1}">Now</material-button>
|
|
|
|
<material-button data-ng-click="before()"
|
2014-10-01 15:03:38 +02:00
|
|
|
data-ng-class="{'disabled': period_offset == 0}">prev</span></material-button>
|
2014-10-01 15:11:52 +02:00
|
|
|
<material-button data-ng-click="after()"
|
2014-10-01 15:03:38 +02:00
|
|
|
data-ng-class="{'disabled': period_offset == dates_salaries.length - 1}">next</material-button>
|
2014-07-30 23:35:50 +02:00
|
|
|
</div>
|
2014-10-01 15:03:38 +02:00
|
|
|
<h2 class="balance" data-ng-class="{'negative': balance.buckets[1].total - balance.buckets[0].total < 0, 'positive': balance.buckets[1].total - balance.buckets[0].total > 0}">
|
|
|
|
Balance: {{( balance.buckets[1].total - balance.buckets[0].total ) | number:2}} €
|
|
|
|
</h2>
|
2014-07-30 23:35:50 +02:00
|
|
|
</div>
|
|
|
|
|
2014-10-01 15:03:38 +02:00
|
|
|
<div layout="horizontal" layout-padding>
|
|
|
|
<div flex data-ng-repeat="bucket in balance.buckets">
|
|
|
|
<material-toolbar class="material-theme-light">
|
|
|
|
<h3>{{bucket.name}}, total = {{bucket.total | number:2}} €</h3>
|
|
|
|
</material-toolbar>
|
|
|
|
<material-content>
|
|
|
|
<nvd3-pie-chart data="bucket.data"
|
|
|
|
x="xFunction()"
|
|
|
|
y="yFunction()"
|
|
|
|
height="300"
|
|
|
|
margin="{left:0,top:0,bottom:0,right:0}"
|
|
|
|
color="color()"
|
|
|
|
tooltips="true"
|
|
|
|
tooltipcontent="toolTipContentFunction()"
|
|
|
|
showLabels="true"
|
|
|
|
labelType="value">
|
2014-07-30 23:35:50 +02:00
|
|
|
<svg></svg>
|
|
|
|
</nvd3-pie-chart>
|
2014-10-01 15:03:38 +02:00
|
|
|
</material-content>
|
|
|
|
<material-content>
|
2014-08-09 18:42:54 +02:00
|
|
|
<table data-ng-table="tableParams" class="table">
|
2014-10-01 15:03:38 +02:00
|
|
|
<tr data-ng-repeat="account in bucket.data"
|
2014-08-19 17:39:10 +02:00
|
|
|
data-ng-class="{'even': $even, 'odd': $odd}"
|
|
|
|
style="border-left:10px solid {{coloring_score( score_account( account.account ) )}};border-right:10px solid {{coloring_score( score_account( account.account ) )}}">
|
|
|
|
<td data-title="'Account'"
|
|
|
|
style="border-bottom:1px solid {{coloring_score( score_account( account.account ) )}}">
|
|
|
|
{{account.account}}
|
|
|
|
</td>
|
|
|
|
<td data-title="'Amount'"
|
|
|
|
style="text-align:right;border-bottom:1px solid {{coloring_score( score_account( account.account ) )}}">
|
|
|
|
{{account.amount | number:2}} €
|
|
|
|
</td>
|
2014-08-09 18:41:31 +02:00
|
|
|
</tr>
|
|
|
|
</table>
|
2014-10-01 15:03:38 +02:00
|
|
|
</material-content>
|
2014-07-30 23:35:50 +02:00
|
|
|
</div>
|
|
|
|
|
2014-10-01 15:03:38 +02:00
|
|
|
</div>
|
2014-07-30 23:35:50 +02:00
|
|
|
</div>
|