Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Clean up some views.
James Colea13cff94898c
diff --git a/public/v1/js/ff/reports/index.js b/public/v1/js/ff/reports/index.jsindex 7ab648869a..db32ec7fca 100644--- a/public/v1/js/ff/reports/index.js+++ b/public/v1/js/ff/reports/index.js@@ -63,7 +63,7 @@ $(function () {}// make account select a hip new bootstrap multi-select thing.- $('#inputAccounts').multiselect(defaultMultiSelect);+ //$('#inputAccounts').multiselect(defaultMultiSelect);// set date from cookievar startStr = readCookie('report-start');diff --git a/resources/lang/en_US/breadcrumbs.php b/resources/lang/en_US/breadcrumbs.phpindex cbe22a6be6..44cf3d9e99 100644--- a/resources/lang/en_US/breadcrumbs.php+++ b/resources/lang/en_US/breadcrumbs.php@@ -24,9 +24,6 @@ declare(strict_types=1);return ['home' => 'Home',- 'budgets' => 'Budgets',- 'subscriptions' => 'Subscriptions',- 'transactions' => 'Transactions','title_expenses' => 'Expenses','title_withdrawal' => 'Expenses','title_revenue' => 'Revenue / income',diff --git a/resources/lang/en_US/email.php b/resources/lang/en_US/email.phpindex 8a4931e754..05528e8b1f 100644--- a/resources/lang/en_US/email.php+++ b/resources/lang/en_US/email.php@@ -92,9 +92,7 @@ return ['email_change_body_to_old' => 'You or somebody with access to your Firefly III account has changed your email address. If you did not expect this to happen, you **must** follow the "undo"-link below to protect your account!','email_change_ignore' => 'If you initiated this change, you may safely ignore this message.','email_change_old' => 'The old email address was: :email',- 'email_change_old_strong' => 'The old email address was: **:email**','email_change_new' => 'The new email address is: :email',- 'email_change_new_strong' => 'The new email address is: **:email**','email_change_instructions' => 'You cannot use Firefly III until you confirm this change. Please follow the link below to do so.','email_change_undo_link' => 'To undo the change, follow this link:',diff --git a/resources/lang/en_US/errors.php b/resources/lang/en_US/errors.phpindex 8a38b40695..1102381751 100644--- a/resources/lang/en_US/errors.php+++ b/resources/lang/en_US/errors.php@@ -27,12 +27,10 @@ return ['404_page_does_not_exist' => 'The page you have requested does not exist. Please check that you have not entered the wrong URL. Did you make a typo perhaps?','404_send_error' => 'If you were redirected to this page automatically, please accept my apologies. There is a mention of this error in your log files and I would be grateful if you sent me the error to me.','404_github_link' => 'If you are sure this page should exist, please open a ticket on <strong><a href="https://github.com/firefly-iii/firefly-iii/issues">GitHub</a></strong>.',- 'whoops' => 'Whoops','note_not_found_account' => 'Account ":name" has been deleted and can no longer be viewed. Please enjoy this overview of all other accounts of the same type.','note_not_found_group' => 'Transaction ":description" has been deleted and can no longer be viewed. Please enjoy this overview of all other transactions of the same type.','note_not_found_reconciliation' => 'Reconciliation ":description" has been deleted and can no longer be viewed. Here is an overview of the account it belonged to.',- 'fatal_error' => 'There was a fatal error. Please check the log files in "storage/logs" or use "docker logs -f [container]" to see what\'s going on.','maintenance_mode' => 'Firefly III is in maintenance mode.','be_right_back' => 'Be right back!','check_back' => 'Firefly III is down for some necessary maintenance. Please check back in a second. If you happen to see this message on the demo site, just wait a few minutes. The database is reset every few hours.',@@ -53,7 +51,4 @@ return ['tell_more' => 'Tell us more than "it says Whoops!"','include_logs' => 'Include error logs (see above).','what_did_you_do' => 'Tell us what you were doing.',- 'offline_header' => 'You are probably offline',- 'offline_unreachable' => 'Firefly III is unreachable. Your device is currently offline or the server is not working.',- 'offline_github' => 'If you are sure both your device and the server are online, please open a ticket on <strong><a href="https://github.com/firefly-iii/firefly-iii/issues">GitHub</a></strong>.',];diff --git a/resources/lang/en_US/passwords.php b/resources/lang/en_US/passwords.phpindex b464dd986e..781a7bd755 100644--- a/resources/lang/en_US/passwords.php+++ b/resources/lang/en_US/passwords.php@@ -23,10 +23,4 @@declare(strict_types=1);return [- 'password' => 'Passwords must be at least six characters and match the confirmation.',- 'user' => 'We can\'t find a user with that e-mail address.',- 'token' => 'This password reset token is invalid.',- 'sent' => 'We have e-mailed your password reset link!',- 'reset' => 'Your password has been reset!',- 'blocked' => 'Nice try though.',];diff --git a/resources/lang/en_US/rules.php b/resources/lang/en_US/rules.phpindex 5cafb263dc..7e43e89a0c 100644--- a/resources/lang/en_US/rules.php+++ b/resources/lang/en_US/rules.php@@ -67,7 +67,6 @@ return ['cannot_find_destination_transaction_account' => 'Firefly III can\'t find the destination transaction account','cannot_find_piggy' => 'Firefly III can\'t find a piggy bank named ":name"','no_link_piggy' => 'This transaction\'s accounts are not linked to the piggy bank, so no action will be taken',- 'both_link_piggy' => 'This transaction\'s accounts are both linked to the piggy bank, so no action will be taken','already_linked' => 'This transaction is already linked to piggy bank ":name"','cannot_unlink_tag' => 'Tag ":tag" isn\'t linked to this transaction','cannot_find_budget' => 'Firefly III can\'t find budget ":name"',diff --git a/resources/views/reports/index.blade.php b/resources/views/reports/index.blade.phpindex 2257dab92f..7b0da03714 100644--- a/resources/views/reports/index.blade.php+++ b/resources/views/reports/index.blade.php@@ -13,7 +13,7 @@<div class="row mb-3"><label for="inputReportType" class="col-sm-3 col-form-label">{{ __('firefly.report_type') }}</label><div class="col-sm-9">- <select name="report_type" class="form-control" id="inputReportType">+ <select name="report_type" class="form-select" id="inputReportType"><option selected label="{{ __('firefly.report_type_default') }}" value="default">{{ __('firefly.report_type_default') }}</option><option label="{{ __('firefly.report_type_audit') }}" value="audit">{{ __('firefly.report_type_audit') }}</option><option label="{{ __('firefly.report_type_budget') }}" value="budget">{{ __('firefly.report_type_budget') }}</option>@@ -26,7 +26,7 @@<div class="row mb-3"><label for="inputAccounts" class="col-sm-3 col-form-label">{{ __('firefly.report_included_accounts') }}</label><div class="col-sm-9" id="inputAccountsSelect">- <select id="inputAccounts" name="accounts[]" multiple class="form-control">+ <select id="inputAccounts" name="accounts[]" multiple class="form-select">@foreach($groupedAccounts as $role => $$accountList)<optgroup label="{{ $role }}">@foreach($$accountList as $account)diff --git a/resources/views/reports/options/budget.blade.php b/resources/views/reports/options/budget.blade.phpindex 9ab321c3c6..3ebd7dba89 100644--- a/resources/views/reports/options/budget.blade.php+++ b/resources/views/reports/options/budget.blade.php@@ -1,7 +1,7 @@<div class="form-group"><label for="inputBudgets" class="col-sm-3 control-label">{{ __('firefly.select_budget') }}</label><div class="col-sm-9">- <select id="inputBudgets" name="budget[]" multiple="multiple" class="form-control">+ <select id="inputBudgets" name="budget[]" multiple="multiple" class="form-select">@foreach($budgets as $budget)<option value="{{ $budget->id }}" label="{{ $budget->name }}">{{ $budget->name }}</option>@endforeachdiff --git a/resources/views/reports/options/category.blade.php b/resources/views/reports/options/category.blade.phpindex 36f3a376d3..53aaaa5fe1 100644--- a/resources/views/reports/options/category.blade.php+++ b/resources/views/reports/options/category.blade.php@@ -1,7 +1,7 @@<div class="form-group"><label for="inputCategories" class="col-sm-3 control-label">{{ __('firefly.select_category') }}</label><div class="col-sm-9">- <select id="inputCategories" name="category[]" multiple="multiple" class="form-control">+ <select id="inputCategories" name="category[]" multiple="multiple" class="form-select">@foreach($categories as $category)<option value="{{ $category->id }}" label="{{ $category->name }}">{{ $category->name }}</option>@endforeachdiff --git a/resources/views/reports/options/double.blade.php b/resources/views/reports/options/double.blade.phpindex 5887870355..4ef4cda98f 100644--- a/resources/views/reports/options/double.blade.php+++ b/resources/views/reports/options/double.blade.php@@ -1,7 +1,7 @@<div class="form-group"><label for="inputDoubleAccounts" class="col-sm-3 control-label">{{ __('firefly.select_expense_revenue') }}</label><div class="col-sm-9">- <select id="inputDoubleAccounts" name="double[]" multiple="multiple" class="form-control">+ <select id="inputDoubleAccounts" name="double[]" multiple="multiple" class="form-select">@foreach($set as $account)<option value="{{ $account->id }}" label="{{ $account->name }}@if($account->iban !='') ({{ $account->iban }})@endif">{{ $account->name }}@if($account->iban !='') ({{ $account->iban }})@endif</option>@endforeachdiff --git a/resources/views/reports/options/tag.blade.php b/resources/views/reports/options/tag.blade.phpindex 56ce94e237..b054743222 100644--- a/resources/views/reports/options/tag.blade.php+++ b/resources/views/reports/options/tag.blade.php@@ -1,7 +1,7 @@<div class="form-group"><label for="inputTags" class="col-sm-3 control-label">{{ __('firefly.select_tag') }}</label><div class="col-sm-9">- <select id="inputTags" name="tag[]" multiple="multiple" class="form-control">+ <select id="inputTags" name="tag[]" multiple="multiple" class="form-select">@foreach($tags as $year)<optgroup label="{{ $year['year'] }}">@foreach($year['tags'] as $tag)diff --git a/resources/views/rules/partials/action.blade.php b/resources/views/rules/partials/action.blade.phpindex 046659f003..46fcfae96f 100644--- a/resources/views/rules/partials/action.blade.php+++ b/resources/views/rules/partials/action.blade.php@@ -4,7 +4,7 @@</td><td class="thirty">{{-- TODO error when invalid name --}}- <select name="actions[{{ $count }}][type]" class="form-control">+ <select name="actions[{{ $count }}][type]" class="form-select">@foreach(all_rule_actions() as $key => $type)<option value="{{ $key }}" label="{{ $type }}" @if($key === $oldAction) selected @endif>{{ $type }}</option>@endforeachdiff --git a/resources/views/rules/partials/trigger.blade.php b/resources/views/rules/partials/trigger.blade.phpindex 54d8922655..268c84c985 100644--- a/resources/views/rules/partials/trigger.blade.php+++ b/resources/views/rules/partials/trigger.blade.php@@ -3,7 +3,7 @@<a href="#" class="btn btn-danger btn-sm remove-trigger"><span class="bi bi-trash"></span></a></td><td class="thirty">- <select name="triggers[{{ $count }}][type]" class="form-control">+ <select name="triggers[{{ $count }}][type]" class="form-select">@foreach($triggers as $key => $type)<option value="{{ $key }}" label="{{ $type }}"@if($oldTrigger === $key)diff --git a/resources/views/transactions/bulk/edit.blade.php b/resources/views/transactions/bulk/edit.blade.phpindex e6f62760aa..7a39d4fed7 100644--- a/resources/views/transactions/bulk/edit.blade.php+++ b/resources/views/transactions/bulk/edit.blade.php@@ -111,7 +111,7 @@<tr><th>{{ trans('list.budget') }}</th><td>- <select @change="detectBudgetChange" class="form-control" name="budget_id">+ <select @change="detectBudgetChange" class="form-select" name="budget_id">@foreach($budgetList as $id => $budget)<option value="{{ $id }}" label="{{ $budget }}">{{ $budget }}</option>@endforeachdiff --git a/resources/views/transactions/links/modal.blade.php b/resources/views/transactions/links/modal.blade.phpindex e0b342ada2..0e15c253f0 100644--- a/resources/views/transactions/links/modal.blade.php+++ b/resources/views/transactions/links/modal.blade.php@@ -11,7 +11,7 @@<div class="form-group"><label for="link_type" class="col-sm-4 control-label">{{ __('firefly.this_transaction') }}</label><div class="col-sm-8">- <select id="link_type" class="form-control" name="link_type">+ <select id="link_type" class="form-select" name="link_type">@foreach($linkTypes as $linkType)<option label="{{ journal_link_translation('inward', $linkType->inward) }}"value="{{ $linkType->id }}_inward">{{ journal_link_translation('inward', $linkType->inward) }}</option>diff --git a/routes/breadcrumbs.php b/routes/breadcrumbs.phpindex da3b1eb40e..3fcd0897d8 100644--- a/routes/breadcrumbs.php+++ b/routes/breadcrumbs.php@@ -380,7 +380,7 @@ Breadcrumbs::for('subscriptions.index',static function (Generator $breadcrumbs): void {$breadcrumbs->parent('home');- $breadcrumbs->push(trans('breadcrumbs.bills'), route('subscriptions.index'));+ $breadcrumbs->push(trans('breadcrumbs.subscriptions'), route('subscriptions.index'));});Breadcrumbs::for(