Build a new collector and first view online.

This commit is contained in:
James Cole
2019-03-24 09:23:36 +01:00
parent fb304de75e
commit d94b23b15d
15 changed files with 720 additions and 24 deletions

View File

@@ -74,7 +74,7 @@
{% if data[0].count > 0 %}
<div class="box-body no-padding">
{% include 'list.journals-tiny' with {'transactions': data[0],'account': data[1]} %}
{% include 'list.groups-tiny' with {'groups': data[0],'account': data[1]} %}
</div>
{% else %}
<div class="box-body">

View File

@@ -0,0 +1,46 @@
<div class="list-group">
{% for group in groups %}
<a class="list-group-item">
{% for transaction in group.transactions %}
{{ transaction.description }}
<span class="pull-right small">
{{ transactionAmount(transaction) }}
</span>
<br />
{% endfor %}
{% if group.count > 1 %}
&nbsp;
<span class="pull-right small">
{{ groupAmount(group) }}
</span>
{% endif %}
</a>
{# if group do something with format #}
{#{% if group.count > 1 %}
(group)
{% endif %}
#}
{# loop each transaction #}
{#
<a class="list-group-item" title="{{ transaction.date.formatLocalized(trans('config.month_and_day')) }}"
{% if transaction.transaction_type_type == 'Opening balance' %}
href="#"
{% else %}
href="{{ route('transactions.show',transaction.journal_id) }}"
{% endif %}>
{{ transaction|transactionIcon }}
{{ transaction|transactionDescription }}
<span class="pull-right small">
{{ transaction|transactionAmount }}
</span>
</a>
{% endfor %}
#}
{% endfor %}
</div>

View File

@@ -1,4 +1,5 @@
<div class="list-group">
<h1 style="color:red;">DO NOT USE ME</h1>
{#<div class="list-group">
{% for transaction in transactions %}
<a class="list-group-item" title="{{ transaction.date.formatLocalized(trans('config.month_and_day')) }}"
{% if transaction.transaction_type_type == 'Opening balance' %}
@@ -15,3 +16,4 @@
</a>
{% endfor %}
</div>
#}