diff --git a/app/Providers/ConfigServiceProvider.php b/app/Providers/ConfigServiceProvider.php index c7ebe0e489..cc915d0f6f 100644 --- a/app/Providers/ConfigServiceProvider.php +++ b/app/Providers/ConfigServiceProvider.php @@ -166,7 +166,7 @@ class ConfigServiceProvider extends ServiceProvider 'Config', 'ExpandedForm' => [ 'is_safe' => [ - 'date', 'text', 'select', 'balance', 'optionsList', 'checkbox', 'amount' + 'date', 'text', 'select', 'balance', 'optionsList', 'checkbox', 'amount', 'tags', 'integer' ] ], 'Form' => [ diff --git a/resources/twig/bills/create.twig b/resources/twig/bills/create.twig new file mode 100644 index 0000000000..f7719b3214 --- /dev/null +++ b/resources/twig/bills/create.twig @@ -0,0 +1,69 @@ +{% extends "./layout/default.twig" %} +{% block content %} + {{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, piggyBank) }} + {{ Form.open({'class' : 'form-horizontal','id' : 'store','url' : route('bills.store')}) }} + +
+ +
++ Are you sure that you want to delete bill "{{ bill.name }}"? +
+ + {% if bill.transactionjournals|length > 0 %} ++ Bill "{{ bill.name }}" still has {{ bill.transactionjournals|length }} transactions connected + to it. These will not be removed but will lose their connection to this bill. +
+ {% endif %} + ++ + Cancel +
++ +
++ Matching on + {% for word in bill.match|split(',') %} + {{ word }} + {% endfor %} + between {{ bill.amount_min|formatAmount }} and {{ bill.amount_max|formatAmount }}. + Repeats {{ bill.repeat_freq }}. | + +|
Next expected match | ++ {% if bill.nextExpectedMatch %} + {{bill.nextExpectedMatch.format('j F Y')}} + {% else %} + Unknown + {% endif %} + | +
+ | Name | +Matches on | +Matching amount | +Last seen match | +Next expected match | +Is active | +Will be automatched | +Repeats every | ++ | |
---|---|---|---|---|---|---|---|---|---|---|
+ + | ++ {{ entry.name }} + | ++ {% for match in entry.match|split(',') %} + {{ match }} + {% endfor %} + | ++ {{ entry.amount_min|formatAmount }} + | ++ {{ entry.amount_max|formatAmount }} + | ++ {% if entry.lastFoundMatch %} + {{entry.lastFoundMatch.format('j F Y')}} + {% else %} + Unknown + {% endif %} + | ++ {% if entry.nextExpectedMatch%} + {{entry.nextExpectedMatch.format('j F Y')}} + {% else %} + Unknown + {% endif %} + | ++ {% if entry.active %} + + {% else %} + + {% endif %} + | ++ {% if entry.automatch %} + + {% else %} + + {% endif %} + | ++ {{ entry.repeat_freq }} + {% if entry.skip > 0 %} + skips over {{entry.skip}} + {% endif %} + | ++ {% if entry.active %} + + {% endif %} + | +