Piggy bank supports notes (#350)

This commit is contained in:
James Cole
2016-10-22 10:13:49 +02:00
parent 091f6e918b
commit e4d249e73c
8 changed files with 158 additions and 2 deletions

View File

@@ -31,6 +31,7 @@
</div>
<div class="box-body">
{{ ExpandedForm.date('targetdate') }}
{{ ExpandedForm.textarea('note') }}
</div>
</div>

View File

@@ -33,6 +33,7 @@
</div>
<div class="box-body">
{{ ExpandedForm.date('targetdate') }}
{{ ExpandedForm.textarea('note') }}
</div>
</div>

View File

@@ -35,7 +35,7 @@
<div class="box-body table-responsive no-padding">
<table class="table table-hover">
<tr>
<td>{{ 'account'|_ }}</td>
<td style="width:40%;">{{ 'account'|_ }}</td>
<td><a href="{{ route('accounts.show', piggyBank.account_id) }}">{{ piggyBank.account.name }}</a></td>
</tr>
<tr>
@@ -73,6 +73,20 @@
</table>
</div>
</div>
{% if note %}
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">{{ trans('form.notes') }}</h3>
</div>
<div class="box-body">
<p>
{{ note.text|nl2br }}
</p>
</div>
</div>
{% endif %}
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">{{ 'table'|_ }}</h3>