Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Make some changes to layout
James Cole3ae10be105c6
diff --git a/resources/views/layout/v3/session.blade.php b/resources/views/layout/v3/session.blade.phpindex e02b3e97e4..17c4047ec4 100644--- a/resources/views/layout/v3/session.blade.php+++ b/resources/views/layout/v3/session.blade.php@@ -109,14 +109,6 @@<span class="d-none d-xxl-inline">xxl</span></span></li>- <!--begin::Fullscreen Toggle-->- <li class="nav-item">- <a class="nav-link" href="#" data-lte-toggle="fullscreen">- <i data-lte-icon="maximize" class="bi bi-arrows-fullscreen"></i>- <i data-lte-icon="minimize" class="bi bi-fullscreen-exit d-none"></i>- </a>- </li>- <!--end::Fullscreen Toggle--><!-- start: date range selector --><x-layout.range/>diff --git a/resources/views/recurring/create.blade.php b/resources/views/recurring/create.blade.phpindex bcddfe6905..8bbd0c3d7d 100644--- a/resources/views/recurring/create.blade.php+++ b/resources/views/recurring/create.blade.php@@ -11,27 +11,25 @@{{-- mandatory recurrence stuff --}}<div class="card mb-2"><div class="card-header">- <h3 class="card-title">{{ 'mandatory_for_recurring'|_ }}</h3>+ <h3 class="card-title">{{ __('firefly.mandatory_for_recurring') }}</h3></div><div class="card-body">- {!! ExpandedForm::text('title') }}- {{ preFilled.first_date.format('Y-m-d') }}- {!! ExpandedForm::date('first_date',null, {helpText: trans('firefly.help_first_date'), min: preFilled.first_date}) }}- {!! ExpandedForm::select('repetition_type', [], null, {helpText: trans('firefly.change_date_other_options')}) }}- {!! ExpandedForm::integer('skip',0, {'helpText': trans('firefly.skip_help_text')}) }}- {!! ExpandedForm::select('weekend', weekendResponses, null, {helpText: trans('firefly.help_weekend')}) }}- {!! ExpandedForm::select('repetition_end', repetitionEnds) }}- {!! ExpandedForm::date('repeat_until',null) }}- {!! ExpandedForm::integer('repetitions',null) }}+ {!! ExpandedForm::text('title') !!}+ {!! ExpandedForm::date('first_date',$preFilled['first_date'], ['helpText' => trans('firefly.help_first_date'), 'min' => $preFilled['first_date']]) !!}+ {!! ExpandedForm::select('repetition_type', [], null, ['helpText' => trans('firefly.change_date_other_options')]) !!}+ {!! ExpandedForm::integer('skip',0, ['helpText' => trans('firefly.skip_help_text')]) !!}+ {!! ExpandedForm::select('weekend', $weekendResponses, null, ['helpText' => trans('firefly.help_weekend')]) !!}+ {!! ExpandedForm::select('repetition_end', $repetitionEnds) !!}+ {!! ExpandedForm::date('repeat_until',null) !!}+ {!! ExpandedForm::integer('repetitions',null) !!}{{-- calendar in popup --}}<div class="form-group" id="calendar_holder"><label for="ffInput_calendar"class="col-sm-4 control-label">{{ trans('form.calendar') }}</label>-<div class="col-sm-8"><p class="form-control-static" id="ffInput_calendar">- <a href="#" id="calendar-link">{{ 'click_for_calendar'|_ }}</a>+ <a href="#" id="calendar-link">{{ __('firefly.click_for_calendar') }}</a></p></div></div>@@ -43,15 +41,15 @@{{-- optional recurrence stuff --}}<div class="card mb-2"><div class="card-header">- <h3 class="card-title">{{ 'optional_for_recurring'|_ }}</h3>+ <h3 class="card-title">{{ __('firefly.optional_for_recurring') }}</h3></div><div class="card-body">- {!! ExpandedForm::textarea('recurring_description') }}+ {!! ExpandedForm::textarea('recurring_description') !!}{{-- only correct way to do active checkbox --}}- {!! ExpandedForm::checkbox('active', 1) }}- {!! ExpandedForm::checkbox('apply_rules',1) }}- {!! ExpandedForm::file('attachments[]', ['multiple' => 'multiple','helpText' => trans('firefly.upload_max_file_size', ['size' => print_nice_filesize($uploadSize)])]) }}+ {!! ExpandedForm::checkbox('active', 1) !!}+ {!! ExpandedForm::checkbox('apply_rules',1) !!}+ {!! ExpandedForm::file('attachments[]', ['multiple' => 'multiple','helpText' => trans('firefly.upload_max_file_size', ['size' => print_nice_filesize($uploadSize)])]) !!}</div></div></div>@@ -62,10 +60,10 @@{{-- mandatory transaction information --}}<div class="card mb-2"><div class="card-header">- <h3 class="card-title">{{ 'mandatory_for_transaction'|_ }}</h3>+ <h3 class="card-title">{{ __('firefly.mandatory_for_transaction') }}</h3></div><div class="card-body">- <p><em>{{ 'mandatory_fields_for_tranaction'|_ }}</em></p>+ <p><em>{{ __('firefly.mandatory_fields_for_tranaction') }}</em></p>{{-- three buttons to distinguish type of transaction --}}<div class="form-group" id="name_holder"><label for="ffInput_type" class="col-sm-4 control-label">@@ -75,36 +73,36 @@<div class="col-sm-8"><div class="btn-group btn-group-sm"><a href="#" class="btn btn-outline-secondary switch-button"- data-value="withdrawal">{{ 'withdrawal'|_ }}</a>+ data-value="withdrawal">{{ __('firefly.withdrawal') }}</a><a href="#" class="btn btn-outline-secondary switch-button"- data-value="deposit">{{ 'deposit'|_ }}</a>+ data-value="deposit">{{ __('firefly.deposit') }}</a><a href="#" class="btn btn-outline-secondary switch-button"- data-value="transfer">{{ 'transfer'|_ }}</a>+ data-value="transfer">{{ __('firefly.transfer') }}</a></div></div></div><input type="hidden" name="transaction_type" value="">{{-- end of three buttons --}}- {!! ExpandedForm::text('transaction_description') }}+ {!! ExpandedForm::text('transaction_description') !!}{{-- transaction information (mandatory) --}}- {!! CurrencyForm::currencyList('transaction_currency_id', $primaryCurrency->id) }}- {!! ExpandedForm::amountNoCurrency('amount') }}+ {!! CurrencyForm::currencyList('transaction_currency_id', $primaryCurrency->id) !!}+ {!! ExpandedForm::amountNoCurrency('amount') !!}{{-- source account if withdrawal, or if transfer: --}}- {{ AccountForm.longAccountList('source_id', null, {label: trans('form.asset_source_account')}) }}+ {!! AccountForm::longAccountList('source_id', null, ['label' => trans('form.asset_source_account')]) !!}{{-- for deposits, a drop down with revenue accounts, loan debt cash and mortgage --}}- {{ AccountForm.activeDepositDestinations('deposit_source_id', null, {label: trans('form.deposit_source_id')}) }}+ {!! AccountForm::activeDepositDestinations('deposit_source_id', null, ['label' => trans('form.deposit_source_id')]) !!}{{-- destination if deposit or transfer: --}}- {{ AccountForm.longAccountList('destination_id', null, {label: trans('form.asset_destination_account')} ) }}+ {{ AccountForm::longAccountList('destination_id', null, ['label' => trans('form.asset_destination_account')]) }}{{-- destination account name for withdrawals --}}{{-- {!! ExpandedForm::text('destination_name', null, {label: trans('form.expense_account')}) }} --}}{{-- NEW for withdrawals, also a drop down with expense accounts, loans, debts, mortgages or (cash). --}}- {{ AccountForm.activeWithdrawalDestinations('withdrawal_destination_id', null, {label: trans('form.withdrawal_destination_id')}) }}+ {{ AccountForm::activeWithdrawalDestinations('withdrawal_destination_id', null, ['label' => trans('form.withdrawal_destination_id')]) }}</div></div></div>@@ -113,35 +111,35 @@{{-- optional transaction information --}}<div class="card mb-2"><div class="card-header">- <h3 class="card-title">{{ 'optional_for_transaction'|_ }}</h3>+ <h3 class="card-title">{{ __('firefly.optional_for_transaction') }}</h3></div><div class="card-body">{{-- transaction information (optional) --}}- {!! CurrencyForm::currencyListEmpty('foreign_currency_id') }}- {!! ExpandedForm::amountNoCurrency('foreign_amount') }}+ {!! CurrencyForm::currencyListEmpty('foreign_currency_id') !!}+ {!! ExpandedForm::amountNoCurrency('foreign_amount') !!}{{-- BUDGET ONLY WHEN CREATING A WITHDRAWAL --}}- {% if budgets|length > 1 %}- {!! ExpandedForm::select('budget_id', budgets, null) }}+ @if(count($budgets) > 1)+ {!! ExpandedForm::select('budget_id', $budgets, null) !!}@else- {!! ExpandedForm::select('budget_id', budgets, null, {helpText: trans('firefly.no_budget_pointer', {link: route('budgets.index')})}) }}+ {!! ExpandedForm::select('budget_id', $budgets, null, ['helpText' => trans('firefly.no_budget_pointer', ['link' => route('budgets.index')])]) !!}@endif{{-- CATEGORY ALWAYS --}}- {!! ExpandedForm::text('category') }}+ {!! ExpandedForm::text('category') !!}{{-- BILL / SUBSCRIPTION ONLY FOR WITHDRAWALS --}}- {% if bills|length > 1 %}- {!! ExpandedForm::select('bill_id', bills, null) }}+ @if(count($bills) > 1)+ {!! ExpandedForm::select('bill_id', $bills, null) !!}@else- {!! ExpandedForm::select('bill_id', bills, null, {helpText: trans('firefly.no_bill_pointer', {link: route('subscriptions.index')})}) }}+ {!! ExpandedForm::select('bill_id', $bills, null, ['helpText' => trans('firefly.no_bill_pointer', ['link' => route('subscriptions.index')])]) !!}@endif{{-- TAGS --}}- {!! ExpandedForm::text('tags') }}+ {!! ExpandedForm::text('tags') !!}{{-- RELATE THIS TRANSFER TO A PIGGY BANK --}}- {{ PiggyBankForm.piggyBankList('piggy_bank_id') }}+ {!! PiggyBankForm::piggyBankList('piggy_bank_id') !!}</div></div></div>@@ -155,21 +153,21 @@<h3 class="card-title">{{ __('firefly.options') }}</h3></div><div class="card-body">- {!! ExpandedForm::optionsList('create','recurrence') }}+ {!! ExpandedForm::optionsList('create','recurrence') !!}</div><div class="card-footer text-end"><button type="submit" class="btn btn-success">- {{ ('store_new_recurrence')|_ }}+ {{ __('store_new_recurrence') }}</button></div></div></div></div>- {#+ {{--<div class="row"><div class="card mb-2"><div class="card-header">- <h3 class="card-title">{{ 'expected_repetitions'|_ }}</h3>+ <h3 class="card-title">{{ __('firefly.expected_repetitions') }}</h3></div><div class="card-body">Here.@@ -186,7 +184,7 @@<div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header">- <h5 class="modal-title">{{ 'recurring_calendar_view'|_ }}</h5>+ <h5 class="modal-title">{{ __('firefly.recurring_calendar_view') }}</h5></div><div class="modal-body"><div id="recurring_calendar" class="calendar-display">@@ -202,6 +200,7 @@</div>@endsection@section('scripts')+ @vite(['js/pages/generic.js'])<script type="text/javascript" src="v1/js/lib/modernizr-custom.js?v={{ $FF_BUILD_TIME }}"nonce="{{ $JS_NONCE }}"></script><script type="text/javascript" src="v1/js/lib/typeahead/typeahead.bundle.min.js?v={{ $FF_BUILD_TIME }}"@@ -214,10 +213,10 @@<script type="text/javascript" src="v1/lib/fc/fullcalendar.min.js?v={{ $FF_BUILD_TIME }}"nonce="{{ $JS_NONCE }}"></script><script type="text/javascript" nonce="{{ $JS_NONCE }}">- var transactionType = "{{ preFilled.transaction_type }}";+ var transactionType = "{{ $preFilled['transaction_type'] }}";var suggestUrl = "{{ route('recurring.suggest') }}";var eventsUrl = "{{ route('recurring.events') }}";- var oldRepetitionType = "{{ oldRepetitionType }}";+ var oldRepetitionType = "{{ $oldRepetitionType }}";</script><script type="text/javascript" src="v1/js/ff/recurring/create.js?v={{ $FF_BUILD_TIME }}"nonce="{{ $JS_NONCE }}"></script>diff --git a/resources/views/recurring/edit.blade.php b/resources/views/recurring/edit.blade.phpindex ba9ffdef4f..ffaf463746 100644--- a/resources/views/recurring/edit.blade.php+++ b/resources/views/recurring/edit.blade.php@@ -96,16 +96,16 @@{!! ExpandedForm::amountNoCurrency('amount', array.transactions[0].amount) }}{{-- source account if withdrawal, or if transfer: --}}- {{ AccountForm.longAccountList('source_id', array.transactions[0].source_id, {label: trans('form.asset_source_account')}) }}+ {{ AccountForm::longAccountList('source_id', array.transactions[0].source_id, {label: trans('form.asset_source_account')}) }}{{-- NEW for deposits, a drop down with revenue accounts, loan debt cash and mortgage --}}- {{ AccountForm.activeDepositDestinations('deposit_source_id', preFilled.deposit_source_id, {label: trans('form.deposit_source_id')}) }}+ {{ AccountForm::activeDepositDestinations('deposit_source_id', preFilled.deposit_source_id, {label: trans('form.deposit_source_id')}) }}{{-- destination if deposit or transfer: --}}- {{ AccountForm.longAccountList('destination_id', array.transactions[0].destination_id, {label: trans('form.asset_destination_account')} ) }}+ {{ AccountForm::longAccountList('destination_id', array.transactions[0].destination_id, {label: trans('form.asset_destination_account')} ) }}{{-- NEW for withdrawals, also a drop down with expense accounts, loans, debts, mortgages or (cash). --}}- {{ AccountForm.activeWithdrawalDestinations('withdrawal_destination_id', preFilled.withdrawal_destination_id, {label: trans('form.withdrawal_destination_id')}) }}+ {{ AccountForm::activeWithdrawalDestinations('withdrawal_destination_id', preFilled.withdrawal_destination_id, {label: trans('form.withdrawal_destination_id')}) }}</div></div></div>@@ -143,7 +143,7 @@{!! ExpandedForm::text('tags', array.transactions[0].tags) }}{# RELATE THIS TRANSFER TO A PIGGY BANK --}}- {{ PiggyBankForm.piggyBankList('piggy_bank_id',array.transactions[0].piggy_bank_id) }}+ {{ PiggyBankForm::piggyBankList('piggy_bank_id',array.transactions[0].piggy_bank_id) }}</div></div></div>