firefly-iii/resources/views/categories/show.twig

83 lines
3.2 KiB
Twig
Raw Normal View History

2015-05-02 02:29:34 -05:00
{% extends "./layout/default.twig" %}
2015-06-19 13:59:14 -05:00
{% block breadcrumbs %}
2015-05-02 02:29:34 -05:00
{{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, category) }}
2015-06-19 13:59:14 -05:00
{% endblock %}
{% block content %}
2015-06-27 01:06:24 -05:00
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12">
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">{{ 'overview'|_ }} (month)</h3>
</div>
<div class="box-body">
2015-12-18 09:37:02 -06:00
<canvas id="period" style="width:100%;height:350px;"></canvas>
2015-06-27 01:06:24 -05:00
</div>
2015-05-02 02:29:34 -05:00
</div>
</div>
2015-06-27 01:06:24 -05:00
<div class="col-lg-6 col-md-6 col-sm-12">
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">{{ 'overview'|_ }} (all)</h3>
</div>
<div class="box-body">
2015-12-18 09:37:02 -06:00
<canvas id="all" style="width:100%;height:350px;"></canvas>
2015-06-27 01:06:24 -05:00
</div>
2015-05-02 02:29:34 -05:00
</div>
</div>
</div>
2015-06-27 01:06:24 -05:00
<div class="row">
2015-09-25 09:00:14 -05:00
<div class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
2015-05-02 02:29:34 -05:00
2015-06-27 01:06:24 -05:00
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">{{ 'transactions'|_ }}</h3>
</div>
<div class="box-body no-padding">
{% include 'list/journals' %}
2015-06-27 01:06:24 -05:00
</div>
2015-05-02 02:29:34 -05:00
</div>
</div>
2015-09-25 09:00:14 -05:00
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
2015-09-25 12:36:03 -05:00
{% for entry in entries %}
{% if entry[2] != 0 or entry[3] != 0 %}
<div class="box">
<div class="box-header with-border">
<h3 class="box-title"><a href="{{ route('categories.show.date',[category.id,entry[0]]) }}">{{ entry[1] }}</a>
</h3>
</div>
<div class="box-body no-padding">
<table class="table table-hover">
{% if entry[2] != 0 %}
<tr>
<td colspan="33%">{{ 'spent'|_ }}</td>
<td colspan="67%">{{ entry[2]|formatAmount }}</td>
</tr>
{% endif %}
{% if entry[3] != 0 %}
<tr>
<td colspan="33%">{{ 'earned'|_ }}</td>
<td colspan="67%">{{ entry[3]|formatAmount }}</td>
</tr>
{% endif %}
</table>
</div>
</div>
{% endif %}
2015-09-25 09:00:14 -05:00
2015-09-25 12:36:03 -05:00
{% endfor %}
2015-09-25 09:00:14 -05:00
</div>
2015-05-02 02:29:34 -05:00
</div>
{% endblock %}
{% block scripts %}
2015-06-27 01:06:24 -05:00
<script type="text/javascript">
var categoryID = {{ category.id }};
</script>
2015-12-18 09:37:02 -06:00
<script type="text/javascript" src="js/Chart.min.js"></script>
<script type="text/javascript" src="js/charts.js"></script>
2015-06-27 01:06:24 -05:00
<script type="text/javascript" src="js/categories.js"></script>
2015-05-02 02:29:34 -05:00
{% endblock %}