mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Debug the account-create controller.
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
{% extends "./layout/default" %}
|
||||
{% block breadcrumbs %}
|
||||
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, what) }}
|
||||
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, objectType) }}
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<form action="{{ route('accounts.store') }}" method="post" id="store" class="form-horizontal">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
|
||||
<input type="hidden" name="what" value="{{ what }}"/>
|
||||
<input type="hidden" name="objectType" value="{{ objectType }}"/>
|
||||
<input type="hidden" name="active" value="1"/>
|
||||
|
||||
<div class="row">
|
||||
@@ -17,10 +17,10 @@
|
||||
</div>
|
||||
<div class="box-body">
|
||||
{{ ExpandedForm.text('name') }}
|
||||
{% if what == 'asset' or what == 'liabilities' %}
|
||||
{% if objectType == 'asset' or objectType == 'liabilities' %}
|
||||
{{ ExpandedForm.currencyList('currency_id', null, {helpText:'account_default_currency'|_}) }}
|
||||
{% endif %}
|
||||
{% if what == 'liabilities' %}
|
||||
{% if objectType == 'liabilities' %}
|
||||
{{ ExpandedForm.select('liability_type_id', liabilityTypes) }}
|
||||
{{ ExpandedForm.amountNoCurrency('opening_balance', null, {label:'debt_start_amount'|_, helpText: 'debt_start_amount_help'|_}) }}
|
||||
{{ ExpandedForm.date('opening_balance_date', null, {label:'debt_start_date'|_}) }}
|
||||
@@ -43,7 +43,7 @@
|
||||
{{ ExpandedForm.text('BIC', null, {maxlength: 11}) }}
|
||||
{{ ExpandedForm.text('account_number') }}
|
||||
|
||||
{% if what == 'asset' %}
|
||||
{% if objectType == 'asset' %}
|
||||
|
||||
{{ ExpandedForm.amountNoCurrency('opening_balance') }}
|
||||
{{ ExpandedForm.date('opening_balance_date') }}
|
||||
@@ -67,7 +67,7 @@
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<button type="submit" class="btn pull-right btn-success">
|
||||
{{ ('store_new_' ~ what ~ '_account')|_ }}
|
||||
{{ ('store_new_' ~ objectType ~ '_account')|_ }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -24,8 +24,8 @@
|
||||
|
||||
{% if what == 'liabilities' %}
|
||||
{{ ExpandedForm.select('liability_type_id', liabilityTypes) }}
|
||||
{{ ExpandedForm.amountNoCurrency('openingBalance', null, {label:'debt_start_amount'|_, helpText: 'debt_start_amount_help'|_}) }}
|
||||
{{ ExpandedForm.date('openingBalanceDate', null, {label:'debt_start_date'|_}) }}
|
||||
{{ ExpandedForm.amountNoCurrency('opening_balance', null, {label:'debt_start_amount'|_, helpText: 'debt_start_amount_help'|_}) }}
|
||||
{{ ExpandedForm.date('opening_balance_date', null, {label:'debt_start_date'|_}) }}
|
||||
{{ ExpandedForm.percentage('interest') }}
|
||||
{{ ExpandedForm.select('interest_period', interestPeriods) }}
|
||||
{% endif %}
|
||||
@@ -41,19 +41,19 @@
|
||||
<div class="box-body">
|
||||
{{ ExpandedForm.text('iban') }}
|
||||
{{ ExpandedForm.text('BIC', null, {maxlength: 11}) }}
|
||||
{% if preFilled.accountRole == 'ccAsset' %}
|
||||
{{ ExpandedForm.text('accountNumber', null , {label:trans('form.creditCardNumber')}) }}
|
||||
{% if preFilled.account_role == 'ccAsset' %}
|
||||
{{ ExpandedForm.text('account_number', null , {label:trans('form.creditCardNumber')}) }}
|
||||
{% else %}
|
||||
{{ ExpandedForm.text('accountNumber') }}
|
||||
{{ ExpandedForm.text('account_number') }}
|
||||
{% endif %}
|
||||
|
||||
{% if account.accounttype.type == 'Default account' or account.accounttype.type == 'Asset account' %}
|
||||
|
||||
{# get opening balance entry for this thing! #}
|
||||
{{ ExpandedForm.amountNoCurrency('openingBalance',null) }}
|
||||
{{ ExpandedForm.date('openingBalanceDate') }}
|
||||
{{ ExpandedForm.select('accountRole', roles) }}
|
||||
{{ ExpandedForm.amountNoCurrency('virtualBalance',null) }}
|
||||
{{ ExpandedForm.amountNoCurrency('opening_balance',null) }}
|
||||
{{ ExpandedForm.date('opening_balance_date') }}
|
||||
{{ ExpandedForm.select('account_role', roles) }}
|
||||
{{ ExpandedForm.amountNoCurrency('virtual_balance',null) }}
|
||||
|
||||
{% endif %}
|
||||
|
||||
@@ -68,14 +68,14 @@
|
||||
</div>
|
||||
|
||||
{# panel for credit card options #}
|
||||
{% if preFilled.accountRole == 'ccAsset' %}
|
||||
{% if preFilled.account_role == 'ccAsset' %}
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{ 'credit_card_options'|_ }}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
{{ ExpandedForm.select('ccType',Config.get('firefly.ccTypes')) }}
|
||||
{{ ExpandedForm.date('ccMonthlyPaymentDate',null,{'helpText' : 'Select any year and any month, it will be ignored anway. Only the day of the month is relevant.'}) }}
|
||||
{{ ExpandedForm.select('cc_type',Config.get('firefly.ccTypes')) }}
|
||||
{{ ExpandedForm.date('cc_monthly_payment_date',null,{'helpText' : 'Select any year and any month, it will be ignored anway. Only the day of the month is relevant.'}) }}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user