Various code for bills and rules.

This commit is contained in:
James Cole
2018-04-14 09:59:04 +02:00
parent 5862b832d9
commit d8a00f4314
22 changed files with 498 additions and 309 deletions

View File

@@ -27,11 +27,7 @@
<table class="table table-striped">
<tr>
<td colspan="2">
{{ 'matching_on'|_ }}
{% for word in object.data.match %}
<span class="label label-info">{{ word }}</span>
{% endfor %}
{{ trans('firefly.between_amounts', {low: object.data.amount_min|formatAmount, high: object.data.amount_max|formatAmount })|raw }}
{{ trans('firefly.match_between_amounts', {low: object.data.amount_min|formatAmount, high: object.data.amount_max|formatAmount })|raw }}
{{ 'repeats'|_ }}
{{ trans('firefly.repeat_freq_' ~object.data.repeat_freq) }}.
</td>
@@ -60,8 +56,8 @@
<td>{{ 'next_expected_match'|_ }}</td>
<td>
{% if object.data.next_expected_match|length > 0 %}
{{ formatDate(object.data.next_expected_match, monthAndDayFormat) }}
{% else %}
{{ formatDate(object.data.next_expected_match, monthAndDayFormat) }}
{% else %}
{{ 'unknown'|_ }}
{% endif %}
</td>
@@ -79,21 +75,19 @@
</div>
</div>
<div class="col-lg-6 col-sm-12 col-md-12">
<div class="box" id="billButtons">
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">{{ 'more'|_ }}</h3>
<h3 class="box-title">{{ 'bill_related_rules'|_ }}</h3>
</div>
<div class="box-body no-padding">
{% if object.data.notes|length > 0 %}
<table class="table">
<tr>
<td>{{ trans('list.notes') }}</td>
<td class="markdown">{{ object.data.notes|markdown }}</td>
</tr>
</table>
<div class="box-body">
{% if rules.count > 0 %}
<ul>
{% for rule in rules %}
<li><a href="{{ route('rules.edit', [rule.id]) }}">{{ rule.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
</div>
<div class="box-footer">
<a href="{{ route('bills.rescan',object.data.id) }}" class="btn btn-default">{{ 'rescan_old'|_ }}</a>
</div>