diff --git a/app/Http/Controllers/Account/EditController.php b/app/Http/Controllers/Account/EditController.php
index d2a71fb09e..bf98f2b733 100644
--- a/app/Http/Controllers/Account/EditController.php
+++ b/app/Http/Controllers/Account/EditController.php
@@ -139,13 +139,13 @@ class EditController extends Controller
'cc_type' => $repository->getMetaValue($account, 'cc_type'),
'cc_monthly_payment_date' => $repository->getMetaValue($account, 'cc_monthly_payment_date'),
'BIC' => $repository->getMetaValue($account, 'BIC'),
- 'opening_balance_date' => $openingBalanceDate,
+ 'opening_balance_date' => substr((string)$openingBalanceDate, 0, 10),
'liability_type_id' => $account->account_type_id,
'opening_balance' => app('steam')->bcround($openingBalanceAmount, $currency->decimal_places),
'liability_direction' => $this->repository->getMetaValue($account, 'liability_direction'),
'virtual_balance' => app('steam')->bcround($virtualBalance, $currency->decimal_places),
'currency_id' => $currency->id,
- 'include_net_worth' => $includeNetWorth,
+ 'include_net_worth' => $hasOldInput ? (bool)$request->old('include_net_worth') : $includeNetWorth,
'interest' => $repository->getMetaValue($account, 'interest'),
'interest_period' => $repository->getMetaValue($account, 'interest_period'),
'notes' => $this->repository->getNoteText($account),
diff --git a/resources/views/accounts/edit.twig b/resources/views/accounts/edit.twig
index 2dfd0f81b2..b00131699f 100644
--- a/resources/views/accounts/edit.twig
+++ b/resources/views/accounts/edit.twig
@@ -26,7 +26,7 @@
{{ 'mandatoryFields'|_ }}
- {{ ExpandedForm.text('name') }}
+ {{ ExpandedForm.text('name', account.name) }}
{% if account.accountType.type == 'Default account' or account.accountType.type == 'Asset account' or objectType == 'liabilities' %}
{{ CurrencyForm.currencyList('currency_id', null, {helpText:'account_default_currency'|_}) }}
@@ -36,7 +36,7 @@
{{ ExpandedForm.select('liability_type_id', liabilityTypes) }}
{{ ExpandedForm.amountNoCurrency('opening_balance', null, {label:'debt_start_amount'|_}) }}
{{ ExpandedForm.select('liability_direction', liabilityDirections) }}
- {{ ExpandedForm.date('opening_balance_date', null, {label:'debt_start_date'|_}) }}
+ {{ ExpandedForm.date('opening_balance_date', preFilled.opening_balance_date, {label:'debt_start_date'|_}) }}
{{ ExpandedForm.percentage('interest') }}
{{ ExpandedForm.select('interest_period', interestPeriods) }}
{% endif %}
@@ -50,7 +50,7 @@
{{ 'optionalFields'|_ }}
- {{ ExpandedForm.text('iban') }}
+ {{ ExpandedForm.text('iban', account.iban) }}
{{ ExpandedForm.text('BIC', null, {maxlength: 11}) }}
{% if preFilled.account_role == 'ccAsset' %}
{{ ExpandedForm.text('account_number', null , {label:trans('form.creditCardNumber')}) }}
@@ -62,7 +62,7 @@
{# get opening balance entry for this thing! #}
{{ ExpandedForm.amountNoCurrency('opening_balance',null) }}
- {{ ExpandedForm.date('opening_balance_date') }}
+ {{ ExpandedForm.date('opening_balance_date', preFilled.opening_balance_date) }}
{{ ExpandedForm.select('account_role', roles) }}
{{ ExpandedForm.amountNoCurrency('virtual_balance',null) }}
diff --git a/resources/views/admin/link/edit.twig b/resources/views/admin/link/edit.twig
index 39635b8cad..e27a5f1432 100644
--- a/resources/views/admin/link/edit.twig
+++ b/resources/views/admin/link/edit.twig
@@ -18,9 +18,9 @@
{{ 'mandatoryFields'|_ }}
- {{ ExpandedForm.text('name', null, {helpText: trans('firefly.link_type_help_name')}) }}
- {{ ExpandedForm.text('inward', null, {helpText: trans('firefly.link_type_help_inward')}) }}
- {{ ExpandedForm.text('outward', null, {helpText: trans('firefly.link_type_help_outward')}) }}
+ {{ ExpandedForm.text('name', linkType.name, {helpText: trans('firefly.link_type_help_name')}) }}
+ {{ ExpandedForm.text('inward', linkType.inward, {helpText: trans('firefly.link_type_help_inward')}) }}
+ {{ ExpandedForm.text('outward', linkType.outward, {helpText: trans('firefly.link_type_help_outward')}) }}
diff --git a/resources/views/admin/users/edit.twig b/resources/views/admin/users/edit.twig
index bcdd79ab15..9970950c13 100644
--- a/resources/views/admin/users/edit.twig
+++ b/resources/views/admin/users/edit.twig
@@ -20,7 +20,7 @@
{% if canEditDetails %}
- {{ ExpandedForm.text('email',null,{'helpText': trans('firefly.admin_update_email')}) }}
+ {{ ExpandedForm.text('email',user.email,{'helpText': trans('firefly.admin_update_email')}) }}
{{ ExpandedForm.password('password') }}
{{ ExpandedForm.password('password_confirmation') }}
{% else %}
diff --git a/resources/views/attachments/edit.twig b/resources/views/attachments/edit.twig
index e1136c5778..2a8a45c7e1 100644
--- a/resources/views/attachments/edit.twig
+++ b/resources/views/attachments/edit.twig
@@ -5,7 +5,8 @@
{% endblock %}
{% block content %}
-
+
{# panel for options #}
diff --git a/resources/views/bills/edit.twig b/resources/views/bills/edit.twig
index 09303033db..e20065ca8c 100644
--- a/resources/views/bills/edit.twig
+++ b/resources/views/bills/edit.twig
@@ -19,16 +19,16 @@
{% if rules.count() > 0 %}
- {{ ExpandedForm.text('name',null, {helpText: trans_choice('firefly.bill_edit_rules', rules.count())}) }}
+ {{ ExpandedForm.text('name', bill.name, {helpText: trans_choice('firefly.bill_edit_rules', rules.count())}) }}
{% else %}
- {{ ExpandedForm.text('name') }}
+ {{ ExpandedForm.text('name', bill.name) }}
{% endif %}
{{ CurrencyForm.currencyList('transaction_currency_id') }}
- {{ ExpandedForm.amountNoCurrency('amount_min') }}
- {{ ExpandedForm.amountNoCurrency('amount_max') }}
+ {{ ExpandedForm.amountNoCurrency('amount_min', bill.amount_min) }}
+ {{ ExpandedForm.amountNoCurrency('amount_max', bill.amount_max) }}
{{ ExpandedForm.date('date',bill.date.format('Y-m-d')) }}
{{ ExpandedForm.select('repeat_freq',periods) }}
- {{ ExpandedForm.integer('skip') }}
+ {{ ExpandedForm.integer('skip', bill.skip) }}
diff --git a/resources/views/budgets/edit.twig b/resources/views/budgets/edit.twig
index 4fec930260..a68fe8a6c7 100644
--- a/resources/views/budgets/edit.twig
+++ b/resources/views/budgets/edit.twig
@@ -18,7 +18,7 @@
{# only correct way to do active checkbox #}
{{ ExpandedForm.checkbox('active', 1) }}
- {{ ExpandedForm.text('name') }}
+ {{ ExpandedForm.text('name', budget.name) }}
diff --git a/resources/views/categories/edit.twig b/resources/views/categories/edit.twig
index d2bb786836..aa9b6263d6 100644
--- a/resources/views/categories/edit.twig
+++ b/resources/views/categories/edit.twig
@@ -19,7 +19,7 @@
{{ 'mandatoryFields'|_ }}
- {{ ExpandedForm.text('name') }}
+ {{ ExpandedForm.text('name', category.name) }}
diff --git a/resources/views/currencies/edit.twig b/resources/views/currencies/edit.twig
index 422de5ce6e..3bd7e52b21 100644
--- a/resources/views/currencies/edit.twig
+++ b/resources/views/currencies/edit.twig
@@ -18,11 +18,11 @@
{{ 'mandatoryFields'|_ }}
- {{ ExpandedForm.text('name',null,{'maxlength' : 48}) }}
- {{ ExpandedForm.text('symbol',null,{'maxlength' : 51}) }}
- {{ ExpandedForm.text('code',null,{'maxlength' : 51}) }}
- {{ ExpandedForm.integer('decimal_places',null,{'maxlength' : 2,'min': 0,'max': 12}) }}
- {{ ExpandedForm.checkbox('enabled',null) }}
+ {{ ExpandedForm.text('name', currency.name,{'maxlength' : 48}) }}
+ {{ ExpandedForm.text('symbol', currency.symbol,{'maxlength' : 51}) }}
+ {{ ExpandedForm.text('code', currency.code,{'maxlength' : 51}) }}
+ {{ ExpandedForm.integer('decimal_places', currency.decimal_places,{'maxlength' : 2,'min': 0,'max': 12}) }}
+ {{ ExpandedForm.checkbox('enabled', currency.enabled) }}
diff --git a/resources/views/object-groups/edit.twig b/resources/views/object-groups/edit.twig
index dc046a865a..d6d52e29c6 100644
--- a/resources/views/object-groups/edit.twig
+++ b/resources/views/object-groups/edit.twig
@@ -19,7 +19,7 @@
{{ 'mandatoryFields'|_ }}
- {{ ExpandedForm.text('title') }}
+ {{ ExpandedForm.text('title', objectGroup.title) }}
diff --git a/resources/views/piggy-banks/edit.twig b/resources/views/piggy-banks/edit.twig
index 4adf6f003a..636a932124 100644
--- a/resources/views/piggy-banks/edit.twig
+++ b/resources/views/piggy-banks/edit.twig
@@ -5,7 +5,7 @@
{% endblock %}
{% block content %}
-