2015-05-02 05:51:02 -05:00
|
|
|
{% extends "./layout/default.twig" %}
|
2015-06-19 13:59:14 -05:00
|
|
|
|
|
|
|
{% block breadcrumbs %}
|
2015-05-02 05:51:02 -05:00
|
|
|
{{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, bill) }}
|
2015-06-19 13:59:14 -05:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
2015-05-02 05:51:02 -05:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-6 col-sm-12 col-md-12">
|
2015-06-20 00:29:25 -05:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
2015-06-20 02:54:01 -05:00
|
|
|
<h3 class="box-title">{{ bill.name }}</h3>
|
2015-05-02 05:51:02 -05:00
|
|
|
|
|
|
|
{% if bill.active %}
|
|
|
|
<i class="fa fa-check fa-fw" title="Active"></i>
|
|
|
|
{% else %}
|
|
|
|
<i class="fa fa-times fa-fw" title="Inactive"></i>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if bill.automatch %}
|
|
|
|
<i class="fa fa-check fa-fw" title="Automatically matched by Firefly"></i>
|
|
|
|
{% else %}
|
|
|
|
<i class="fa fa-times fa-fw" title="Not automatically matched by Firefly"></i>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div class="pull-right">
|
|
|
|
<div class="btn-group">
|
|
|
|
<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
|
2015-05-14 03:26:15 -05:00
|
|
|
{{ 'actions'|_ }}
|
2015-05-02 05:51:02 -05:00
|
|
|
<span class="caret"></span>
|
|
|
|
</button>
|
|
|
|
<ul class="dropdown-menu pull-right" role="menu">
|
|
|
|
<li><a href="{{route('bills.edit',bill.id)}}"><i class="fa fa-fw fa-pencil"></i> edit</a></li>
|
|
|
|
<li><a href="{{route('bills.delete',bill.id)}}"><i class="fa fa-fw fa-trash-o"></i> delete</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2015-06-20 00:29:25 -05:00
|
|
|
<div class="box-body">
|
2015-05-02 05:51:02 -05:00
|
|
|
<table class="table">
|
|
|
|
<tr>
|
|
|
|
<td colspan="2">
|
|
|
|
Matching on
|
|
|
|
{% for word in bill.match|split(',') %}
|
|
|
|
<span class="label label-info">{{ word }}</span>
|
|
|
|
{% endfor %}
|
|
|
|
between {{ bill.amount_min|formatAmount }} and {{ bill.amount_max|formatAmount }}.
|
|
|
|
Repeats {{ bill.repeat_freq }}.</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Next expected match</td>
|
|
|
|
<td>
|
|
|
|
{% if bill.nextExpectedMatch %}
|
2015-05-14 11:00:56 -05:00
|
|
|
{{bill.nextExpectedMatch.formatLocalized(monthAndDayFormat)}}
|
2015-05-02 05:51:02 -05:00
|
|
|
{% else %}
|
2015-05-14 11:00:56 -05:00
|
|
|
<em>{{ 'unknown'|_ }}</em>
|
2015-05-02 05:51:02 -05:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-6 col-sm-12 col-md-12">
|
2015-06-20 00:29:25 -05:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
2015-06-20 02:54:01 -05:00
|
|
|
<h3 class="box-title">More</h3>
|
2015-05-02 05:51:02 -05:00
|
|
|
</div>
|
2015-06-20 00:29:25 -05:00
|
|
|
<div class="box-body">
|
2015-05-02 05:51:02 -05:00
|
|
|
<p>
|
|
|
|
<a href="{{route('bills.rescan',bill.id)}}" class="btn btn-default">Rescan old transactions</a>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12 col-sm-12 col-md-12">
|
2015-06-20 00:29:25 -05:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
2015-06-20 02:54:01 -05:00
|
|
|
<h3 class="box-title">Chart</h3>
|
2015-05-02 05:51:02 -05:00
|
|
|
</div>
|
2015-06-20 00:29:25 -05:00
|
|
|
<div class="box-body">
|
2015-05-02 05:51:02 -05:00
|
|
|
<div id="bill-overview"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12 col-sm-12 col-md-12">
|
2015-06-20 00:29:25 -05:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
2015-06-20 02:54:01 -05:00
|
|
|
<h3 class="box-title">Connected transaction journals</h3>
|
2015-05-02 05:51:02 -05:00
|
|
|
</div>
|
2015-06-20 00:29:25 -05:00
|
|
|
<div class="box-body">
|
2015-05-02 05:51:02 -05:00
|
|
|
{% include 'list/journals' %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block scripts %}
|
|
|
|
<script type="text/javascript">
|
|
|
|
var billID = {{ bill.id }};
|
|
|
|
</script>
|
|
|
|
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
|
|
|
<script type="text/javascript" src="js/gcharts.options.js"></script>
|
|
|
|
<script type="text/javascript" src="js/gcharts.js"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="js/bills.js"></script>
|
2015-05-05 05:51:57 -05:00
|
|
|
{% endblock %}
|