ledgerrb/public/app/js/main/templates/balance.tpl.html

101 lines
3.3 KiB
HTML
Raw Normal View History

2014-07-30 23:35:50 +02:00
<div class="row-fluid">
2014-07-30 20:48:32 +02:00
2014-07-30 23:35:50 +02:00
<div class="col-md-12 date">
<h2>
<button type="button" class="btn btn-primary"
data-ng-click="previous_period()">
<span class="glyphicon glyphicon-chevron-left"></span>
</button>
<span>{{now | amDateFormat:'MMMM YYYY'}}</span>
<button type="button" class="btn btn-primary"
data-ng-click="next_period()">
<span class="glyphicon glyphicon-chevron-right"></span>
</button>
</h2>
2014-08-01 22:25:56 +02:00
<h2 class="balance" data-ng-class="{'negative': balance.income_total - balance.expenses_total < 0, 'positive': balance.income_total - balance.expenses_total > 0}">
2014-08-09 18:41:31 +02:00
Balance: {{( balance.income_total - balance.expenses_total ) | number:2}} €
2014-07-30 23:35:50 +02:00
</h2>
</div>
2014-07-30 20:48:32 +02:00
2014-07-30 23:35:50 +02:00
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Expenses, total = {{balance.expenses_total | number:2}} €</h3>
</div>
<div class="panel-body">
<nvd3-pie-chart
data="balance.expenses"
x="xFunction()"
y="yFunction()"
id="ExpensesPie"
2014-08-09 18:16:10 +02:00
height="300"
margin="{left:0,top:0,bottom:0,right:0}"
color="color()"
2014-07-30 23:35:50 +02:00
tooltips="true"
tooltipcontent="toolTipContentFunction()"
showLabels="true"
labelType="value">
<svg></svg>
</nvd3-pie-chart>
</div>
2014-08-09 18:41:31 +02:00
<div class="panel-footer">
2014-08-09 18:42:54 +02:00
<table data-ng-table="tableParams" class="table">
2014-08-19 17:28:41 +02:00
<tr data-ng-repeat="account in balance.expenses"
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-07-30 23:35:50 +02:00
</div>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Income, total = {{balance.income_total | number:2}} €</h3>
</div>
<div class="panel-body">
<nvd3-pie-chart
data="balance.income"
x="xFunction()"
y="yFunction()"
id="incomePie"
2014-08-09 18:16:10 +02:00
height="300"
margin="{left:0,top:0,bottom:0,right:0}"
color="color()"
2014-07-30 23:35:50 +02:00
tooltips="true"
tooltipcontent="toolTipContentFunction()"
showLabels="true"
labelType="value">
<svg></svg>
</nvd3-pie-chart>
</div>
2014-08-09 18:41:31 +02:00
<div class="panel-footer">
2014-08-09 18:42:54 +02:00
<table data-ng-table="tableParams" class="table">
2014-08-19 17:28:41 +02:00
<tr data-ng-repeat="account in balance.income"
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-07-30 23:35:50 +02:00
</div>
</div>
</div>
</div>