Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
new stuff
Sander Dorigo68bd6f3262b1
diff --git a/app/View/Components/Transaction/Split.php b/app/View/Components/Transaction/Split.phpindex a03001a4aa..5b2de1f3e3 100644--- a/app/View/Components/Transaction/Split.php+++ b/app/View/Components/Transaction/Split.php@@ -9,13 +9,15 @@ use Illuminate\View\Component;class Split extends Component{public array $optionalFields;+ public array $optionalDateFields;/*** Create a new component instance.*/- public function __construct(array $optionalFields)+ public function __construct(array $optionalFields, array $optionalDateFields){$this->optionalFields = $optionalFields;+ $this->optionalDateFields = $optionalDateFields;}/**diff --git a/config/translations.php b/config/translations.phpindex 4db6fbeb9e..b9abafe373 100644--- a/config/translations.php+++ b/config/translations.php@@ -58,7 +58,9 @@ return ['liability_direction_null_short','interest_calc_yearly','loading',+ 'errors_upload','interest_calc_',+ 'wait_attachments','interest_calc_null','interest_calc_daily','interest_calc_monthly',diff --git a/resources/assets/v3/js/api/model/attachment/post.js b/resources/assets/v3/js/api/model/attachment/post.jsnew file mode 100644index 0000000000..9954feabca--- /dev/null+++ b/resources/assets/v3/js/api/model/attachment/post.js@@ -0,0 +1,33 @@+/*+ * post.js+ * Copyright (c) 2024 [email protected]+ *+ * This file is part of Firefly III (https://github.com/firefly-iii).+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <https://www.gnu.org/licenses/>.+ */++import {api} from "../../../boot/axios";++export default class Post {+ post(fileName, attachableType, attachableId) {+ let url = '/api/v1/attachments';+ return api.post(url, {filename: fileName, attachable_type: attachableType, attachable_id: attachableId});+ }++ upload(id, data) {+ let url = './api/v1/attachments/' + id + '/upload';+ return axios.post(url, data);+ }+}diff --git a/resources/assets/v3/js/pages/transactions/create.js b/resources/assets/v3/js/pages/transactions/create.jsindex bf246698b3..46ec6086d9 100644--- a/resources/assets/v3/js/pages/transactions/create.js+++ b/resources/assets/v3/js/pages/transactions/create.js@@ -22,9 +22,9 @@ import '../../boot/bootstrap.js';import sidebar from '../../pages/shared/sidebar.js';import dates from '../shared/dates.js';import {createEmptySplit, defaultErrorSet} from "./shared/create-empty-split.js";-// import {parseFromEntries} from "./shared/parse-from-entries.js";+import {parseFromEntries} from "./shared/parse-from-entries.js";import formatMoney from "../../util/format-money.js";-// import Post from "../../api/model/transaction/post.js";+import Post from "../../api/model/transaction/post.js";import {loadCurrencies} from "./shared/load-currencies.js";import {loadBudgets} from "./shared/load-budgets.js";import {loadPiggyBanks} from "./shared/load-piggy-banks.js";@@ -40,11 +40,12 @@ import {selectDestinationAccount,selectSourceAccount} from "./shared/autocomplete-functions.js";-// import {processAttachments} from "./shared/process-attachments.js";-// import {spliceErrorsIntoTransactions} from "./shared/splice-errors-into-transactions.js";-// import Tags from "bootstrap5-tags";+import {processAttachments} from "./shared/process-attachments.js";+import {spliceErrorsIntoTransactions} from "./shared/splice-errors-into-transactions.js";+import Tags from "bootstrap5-tags";// import {addLocation} from "./shared/manage-locations.js";import i18next from "i18next";+// TODO fix tags// TODO upload attachments to other file// TODO fix two maps, perhaps disconnect from entries entirely.// TODO group title@@ -275,20 +276,22 @@ let create = function () {addedSplit() {},- //- // processUpload(event) {- // this.showMessageOrRedirectUser();- // },- //- // processUploadError(event) {- // this.notifications.success.show = false;- // this.notifications.wait.show = false;- // this.notifications.error.show = true;- // this.formStates.isSubmitting = false;- // this.notifications.error.text = i18next.t('firefly.errors_upload');- // console.error(event);- // },- //++ processUpload(event) {+ console.log('Now in processUpload()');+ this.showMessageOrRedirectUser();+ },++ processUploadError(event) {+ console.log('Now in processUploadError()');+ this.notifications.success.show = false;+ this.notifications.wait.show = false;+ this.notifications.error.show = true;+ this.formStates.isSubmitting = false;+ this.notifications.error.text = i18next.t('firefly.errors_upload');+ // console.error(event);+ },+init() {console.log('init()');this.addSplit();@@ -315,19 +318,25 @@ let create = function () {this.formData.subscriptions = data;this.formStates.loadingSubscriptions = false;});- //- // document.addEventListener('upload-success', (event) => {- // this.processUpload(event);- // document.querySelectorAll("input[type=file]").value = "";- // });- //- // document.addEventListener('upload-error', (event) => {- // this.processUploadError(event);- // });- // document.addEventListener('location-move', (event) => {- // this.entries[event.detail.index].latitude = event.detail.latitude;- // this.entries[event.detail.index].longitude = event.detail.longitude;- // });++ document.addEventListener('upload-success', (event) => {+ console.log('Now in event listener "upload-success"');+ this.processUpload(event);+ document.querySelectorAll("input[type=file]").value = "";+ });++ document.addEventListener('upload-error', (event) => {+ console.log('Now in event listener "upload-error"')+ this.processUploadError(event);+ });+ document.addEventListener('upload-failed', (event) => {+ console.log('Now in event listener "upload-failed"')+ this.processUploadError(event);+ });+ // document.addEventListener('location-move', (event) => {+ // this.entries[event.detail.index].latitude = event.detail.latitude;+ // this.entries[event.detail.index].longitude = event.detail.longitude;+ // });//// document.addEventListener('location-set', (event) => {// this.entries[event.detail.index].hasLocation = true;@@ -347,122 +356,122 @@ let create = function () {// destination can never be revenue accountthis.filters.destination = ['Expense account', 'Loan', 'Debt', 'Mortgage', 'Asset account'];},- // keyUpFromCategory(e) {- // if (e.key === 'Enter' && false === this.formStates.categorySelectVisible) {- // this.submitTransaction();- // return;- // }- // this.formStates.categorySelectVisible = document.querySelector('input.ac-category').nextSibling.classList.contains('show');- // },- // submitTransaction() {- // // reset all messages:- // this.notifications.error.show = false;- // this.notifications.success.show = false;- // this.notifications.wait.show = false;- //- // // reset all errors in the entries array:- // for (let i in this.entries) {- // if (this.entries.hasOwnProperty(i)) {- // this.entries[i].errors = defaultErrorSet();- // }- // }- //- // // form is now submitting:- // this.formStates.isSubmitting = true;- //- // // final check on transaction type.- // this.detectTransactionType();- //- // // parse transaction:- // let transactions = parseFromEntries(this.entries, null, this.groupProperties.transactionType);- // let submission = {- // group_title: this.groupProperties.title,- // fire_webhooks: this.formStates.webhooksButton,- // apply_rules: this.formStates.rulesButton,- // transactions: transactions- // };- //- // // catch for group title:- // // TODO later this must be handled with more care (ie use the group title input)- // if (transactions.length > 1) {- // submission.group_title = transactions[0].description;- // }- //- // // submit the transaction. Multi-stage process thing going on here!- // let poster = new Post();- // console.log(submission);- // poster.post(submission).then((response) => {- // const group = response.data.data;- // // submission was a success!- // this.groupProperties.id = parseInt(group.id);- // this.groupProperties.title = group.attributes.group_title ?? group.attributes.transactions[0].description- // console.log('group title is now: ', this.groupProperties.title);- //- // // process attachments, if any:- // const attachmentCount = processAttachments(this.groupProperties.id, group.attributes.transactions);- //- // if (attachmentCount > 0) {- // // if count is more than zero, system is processing transactions in the background.- // this.notifications.wait.show = true;- // this.notifications.wait.text = i18next.t('firefly.wait_attachments');- // return;- // }- //- // // if not, respond to user options:- // this.showMessageOrRedirectUser();- // }).catch((error) => {- //- // this.submitting = false;- // console.log(error);- // // todo put errors in form- // if (typeof error.response !== 'undefined') {- // this.parseErrors(error.response.data);- // }- //- //- // });- // },- //- // showMessageOrRedirectUser() {- // // disable all messages:- // this.notifications.error.show = false;- // this.notifications.success.show = false;- // this.notifications.wait.show = false;- //- // if (this.formStates.returnHereButton) {- // this.notifications.success.show = true;- // this.notifications.success.url = 'transactions/show/' + this.groupProperties.id;- // this.notifications.success.text = i18next.t('firefly.stored_journal_js', {- // description: this.groupProperties.title,- // interpolation: {escapeValue: false}- // });- // this.formStates.isSubmitting = false;- // // reset group title again- // this.groupProperties.title = null;- //- // if (this.formStates.resetButton) {- // this.entries = [];- // this.addSplit();- // this.groupProperties.totalAmount = 0;- // }- // return;- // }- // window.location = 'transactions/show/' + this.groupProperties.id + '?transaction_group_id=' + this.groupProperties.id + '&message=created';- // },- //- // parseErrors(data) {- // // disable all messages:- // this.notifications.error.show = true;- // this.notifications.success.show = false;- // this.notifications.wait.show = false;- // this.formStates.isSubmitting = false;- // this.notifications.error.text = i18next.t('firefly.errors_submission_v2', {errorMessage: data.message});- //- // if (data.hasOwnProperty('errors')) {- // this.entries = spliceErrorsIntoTransactions(data.errors, this.entries);- // }- // },+ keyUpFromCategory(e) {+ if (e.key === 'Enter' && false === this.formStates.categorySelectVisible) {+ this.submitTransaction();+ return;+ }+ this.formStates.categorySelectVisible = document.querySelector('input.ac-category').nextSibling.classList.contains('show');+ },+ submitTransaction() {+ // reset all messages:+ this.notifications.error.show = false;+ this.notifications.success.show = false;+ this.notifications.wait.show = false;//+ // reset all errors in the entries array:+ for (let i in this.entries) {+ if (this.entries.hasOwnProperty(i)) {+ this.entries[i].errors = defaultErrorSet();+ }+ }++ // form is now submitting:+ this.formStates.isSubmitting = true;++ // final check on transaction type.+ this.detectTransactionType();++ // parse transaction:+ let transactions = parseFromEntries(this.entries, null, this.groupProperties.transactionType);+ let submission = {+ group_title: this.groupProperties.title,+ fire_webhooks: this.formStates.webhooksButton,+ apply_rules: this.formStates.rulesButton,+ transactions: transactions+ };++ // catch for group title:+ // TODO later this must be handled with more care (ie use the group title input)+ if (transactions.length > 1) {+ submission.group_title = transactions[0].description;+ }++ // submit the transaction. Multi-stage process thing going on here!+ let poster = new Post();+ console.log(submission);+ poster.post(submission).then((response) => {+ const group = response.data.data;+ // submission was a success!+ this.groupProperties.id = parseInt(group.id);+ this.groupProperties.title = group.attributes.group_title ?? group.attributes.transactions[0].description+ console.log('group title is now: ', this.groupProperties.title);++ // process attachments, if any:+ const attachmentCount = processAttachments(this.groupProperties.id, group.attributes.transactions);++ if (attachmentCount > 0) {+ // if count is more than zero, system is processing transactions in the background.+ this.notifications.wait.show = true;+ this.notifications.wait.text = i18next.t('firefly.wait_attachments');+ return;+ }++ // if not, respond to user options:+ this.showMessageOrRedirectUser();+ }).catch((error) => {++ this.submitting = false;+ console.log(error);+ // todo put errors in form+ if (typeof error.response !== 'undefined') {+ this.parseErrors(error.response.data);+ }+++ });+ },++ showMessageOrRedirectUser() {+ // disable all messages:+ this.notifications.error.show = false;+ this.notifications.success.show = false;+ this.notifications.wait.show = false;++ if (this.formStates.returnHereButton) {+ this.notifications.success.show = true;+ this.notifications.success.url = 'transactions/show/' + parseInt(this.groupProperties.id);+ this.notifications.success.text = i18next.t('firefly.stored_journal_js', {+ description: this.groupProperties.title,+ interpolation: {escapeValue: false}+ });+ this.formStates.isSubmitting = false;+ // reset group title again+ this.groupProperties.title = null;++ if (this.formStates.resetButton) {+ this.entries = [];+ this.addSplit();+ this.groupProperties.totalAmount = 0;+ }+ return;+ }+ window.location = 'transactions/show/' + this.groupProperties.id + '?transaction_group_id=' + this.groupProperties.id + '&message=created';+ },++ parseErrors(data) {+ // disable all messages:+ this.notifications.error.show = true;+ this.notifications.success.show = false;+ this.notifications.wait.show = false;+ this.formStates.isSubmitting = false;+ this.notifications.error.text = i18next.t('firefly.errors_submission_v2', {errorMessage: data.message});++ if (data.hasOwnProperty('errors')) {+ this.entries = spliceErrorsIntoTransactions(data.errors, this.entries);+ }+ },+addSplit() {console.log('addSplit()');this.entries.push(createEmptySplit());@@ -472,6 +481,29 @@ let create = function () {const renderAccount = function (item, b, c) {return item.name_with_balance + '<br><small class="text-muted">' + i18next.t('firefly.account_type_' + item.type) + '</small>';};+ // if(document.querySelector('#location_map_' + count)) {+ // addLocation(count);+ // }++ // render tags:+ Tags.init('select.ac-tags', {+ allowClear: true,+ server: urls.tag,+ liveServer: true,+ clearEnd: true,+ labelField: 'tag',+ valueField: 'id',+ queryParam: 'query',+ allowNew: true,+ //serverDataKey: 'data',+ notFoundMessage: i18next.t('firefly.nothing_found'),+ noCache: true,+ fetchOptions: {+ headers: {+ 'X-CSRF-TOKEN': document.head.querySelector('meta[name="csrf-token"]').content+ }+ }+ });addAutocomplete({selector: 'input.ac-description',@@ -504,31 +536,19 @@ let create = function () {onSelectItem: selectDestinationAccount});+ addAutocomplete({+ selector: 'input.ac-category',+ serverUrl: urls.category,+ valueField: 'id',+ labelField: 'name',+ onChange: changeCategory,+ onSelectItem: changeCategory+ });+}, 150);// setTimeout(() => {- // // render tags:- // Tags.init('select.ac-tags', {- // allowClear: true,- // server: urls.tag,- // liveServer: true,- // clearEnd: true,- // labelField: 'title',- // valueField: 'id',- // queryParam: 'filter[query]',- // allowNew: true,- // serverDataKey: 'data',- // notFoundMessage: i18next.t('firefly.nothing_found'),- // noCache: true,- // fetchOptions: {- // headers: {- // 'X-CSRF-TOKEN': document.head.querySelector('meta[name="csrf-token"]').content- // }- // }- // });- //- // // if(document.querySelector('#location_map_' + count)) { }- // addLocation(count);+ // ////// // addedSplit, is called from the HTML// // for source account@@ -536,22 +556,7 @@ let create = function () {// console.log('here we are in');- // addAutocomplete({- // selector: 'input.ac-category',- // serverUrl: urls.category,- // valueField: 'id',- // labelField: 'title',- // onChange: changeCategory,- // onSelectItem: changeCategory- // });- // addAutocomplete({- // selector: 'input.ac-description',- // serverUrl: urls.description,- // valueField: 'id',- // labelField: 'title',- // onChange: changeDescription,- // onSelectItem: changeDescription,- // });+//// }, 150);},diff --git a/resources/assets/v3/js/pages/transactions/shared/process-attachments.js b/resources/assets/v3/js/pages/transactions/shared/process-attachments.jsindex dc0ef5e13b..8245bdabf4 100644--- a/resources/assets/v3/js/pages/transactions/shared/process-attachments.js+++ b/resources/assets/v3/js/pages/transactions/shared/process-attachments.js@@ -18,7 +18,7 @@* along with this program. If not, see <https://www.gnu.org/licenses/>.*/-import AttachmentPost from "../../../api/v1/model/attachment/post.js";+import AttachmentPost from "../../../api/model/attachment/post.js";let uploadFiles = function (fileData) {let count = fileData.length;@@ -38,7 +38,7 @@ let uploadFiles = function (fileData) {}}).catch(error => {console.error('[a] Could not upload');- console.error(error);+ // console.error(error);uploads++;// break right awayconst event = new CustomEvent('upload-failed', {error: error});diff --git a/resources/views/components/transaction/split.blade.php b/resources/views/components/transaction/split.blade.phpindex 1a8b74c819..415a28b0e1 100644--- a/resources/views/components/transaction/split.blade.php+++ b/resources/views/components/transaction/split.blade.php@@ -79,19 +79,19 @@</div><div class="card-body"><!-- ATTACHMENTS -->- include('partials.form.transaction.attachments')+ @include('partials.form.transaction.attachments')<!-- INTERNAL REFERENCE -->- include('partials.form.transaction.internal-reference')+ @include('partials.form.transaction.internal-reference')<!-- EXTERNAL URL -->- include('partials.form.transaction.external-url')+ @include('partials.form.transaction.external-url')<!-- LOCATION -->- include('partials.form.transaction.location')+ @include('partials.form.transaction.location')<!-- DATE FIELDS -->- include('partials.form.transaction.date-fields')+ @include('partials.form.transaction.date-fields')</div></div></div>@@ -103,7 +103,7 @@</h3></div><div class="card-body">- include('partials.form.transaction.submission-options')+ @include('partials.form.transaction.submission-options')</div><div class="card-footer"><div class="row">diff --git a/resources/views/partials/form/transaction/attachments.blade.php b/resources/views/partials/form/transaction/attachments.blade.phpnew file mode 100644index 0000000000..acc2c5bce3--- /dev/null+++ b/resources/views/partials/form/transaction/attachments.blade.php@@ -0,0 +1,16 @@+@if(true === $optionalFields['attachments'])+ <div class="row mb-3">+ <label :for="'attachments_' + index"+ class="col-sm-1 col-form-label d-none d-sm-block">+ <em title="{{ __('firefly.attachments') }}" class="bi bi-paperclip"></em>+ </label>+ <div class="col-sm-10">+ <input type="file" multiple+ class="form-control attachments"+ :id="'attachments_' + index"+ :data-index="index"+ name="attachments[]"+ >+ </div>+ </div>+@endifdiff --git a/resources/views/partials/form/transaction/date-fields.blade.php b/resources/views/partials/form/transaction/date-fields.blade.phpnew file mode 100644index 0000000000..6c5dc63ad3--- /dev/null+++ b/resources/views/partials/form/transaction/date-fields.blade.php@@ -0,0 +1,18 @@+@foreach($optionalDateFields as $name => $enabled)+ @if($enabled)+ <div class="row mb-1">+ <label :for="'{{ $name }}_' + index"+ class="col-sm-1 col-form-label d-none d-sm-block">+ <em class="bi bi-calendar-date" title="{{ __('firefly.pref_optional_tj_' . $name) }}"></em>+ </label>+ <div class="col-sm-10">+ <input type="date"+ class="form-control"+ :id="'{{ $name }}_' + index"+ x-model="transaction.{{ $name }}"+ :data-index="index"+ placeholder="">+ </div>+ </div>+ @endif+@endforeachdiff --git a/resources/views/partials/form/transaction/external-url.blade.php b/resources/views/partials/form/transaction/external-url.blade.phpnew file mode 100644index 0000000000..8771356dbd--- /dev/null+++ b/resources/views/partials/form/transaction/external-url.blade.php@@ -0,0 +1,23 @@+@if(true === $optionalFields['external_url'])+<div class="row mb-3">+ <label :for="'external_url_' + index"+ class="col-sm-1 col-form-label d-none d-sm-block">+ <em title="{{ __('firefly.external_url') }}" class="bi bi-link"></em>+ </label>+ <div class="col-sm-10">+ <input type="text"+ class="form-control"+ :id="'external_url_' + index"+ x-model="transaction.external_url"+ :data-index="index"+ :class="{'is-invalid': transaction.errors.external_url.length > 0, 'form-control': true}"+ placeholder="{{ __('firefly.external_url') }}" />+ <template x-if="transaction.errors.external_url.length > 0">+ <div class="invalid-feedback"+ x-text="transaction.errors.external_url[0]">++ </div>+ </template>+ </div>+</div>+@endifdiff --git a/resources/views/partials/form/transaction/internal-reference.blade.php b/resources/views/partials/form/transaction/internal-reference.blade.phpnew file mode 100644index 0000000000..a55ace9db6--- /dev/null+++ b/resources/views/partials/form/transaction/internal-reference.blade.php@@ -0,0 +1,16 @@+@if(true === $optionalFields['internal_reference'])+<div class="row mb-3">+ <label :for="'internal_reference_' + index"+ class="col-sm-1 col-form-label d-none d-sm-block">+ <em title="{{ __('firefly.internal_reference') }}" class="bi bi-tag-fill"></em>+ </label>+ <div class="col-sm-10">+ <input type="search"+ class="form-control"+ :id="'internal_reference_' + index"+ x-model="transaction.internal_reference"+ :data-index="index"+ placeholder="{{ __('firefly.internal_reference') }}">+ </div>+</div>+@endifdiff --git a/resources/views/partials/form/transaction/location.blade.php b/resources/views/partials/form/transaction/location.blade.phpnew file mode 100644index 0000000000..18f27a646c--- /dev/null+++ b/resources/views/partials/form/transaction/location.blade.php@@ -0,0 +1,29 @@+@if(true === $optionalFields['location'])+ <div class="row mb-3">+ <label :for="'map_' + index" class="col-sm-1 col-form-label d-none d-sm-block">+ <em title="{{ __('firefly.location') }}" class="bi bi-globe-europe-africa"></em>+ </label>+ <template x-if="index > 0">+ <div class="col-sm-10">+ <label class="custom-control-label small">{{ __('firefly.location_first_split') }}</label>+ </div>+ </template>+ <template x-if="0 === index">+ <div class="col-sm-10">+ <div+ data-latitude="{{ $latitude }}"+ data-longitude="{{ $longitude }}"+ data-zoom-level="{{ $zoomLevel }}"+ id="location_map" class="map-size" :data-index="index"></div>+ <span class="muted small">+ <template x-if="!transaction.hasLocation">+ <span>{{ __('firefly.click_tap_location') }}</span>+ </template>+ <template x-if="transaction.hasLocation">+ <a :data-index="index" href="#" @click="clearLocation">{{ __('firefly.clear_location') }}</a>+ </template>+ </span>+ </div>+ </template>+ </div>+@endifdiff --git a/resources/views/partials/form/transaction/submission-options.blade.php b/resources/views/partials/form/transaction/submission-options.blade.phpnew file mode 100644index 0000000000..bd7f635ba4--- /dev/null+++ b/resources/views/partials/form/transaction/submission-options.blade.php@@ -0,0 +1,39 @@+<!-- RETURN HERE AFTER CREATE TRANSACTION -->+<template x-if="'create' === formBehaviour.formType">+ <div class="form-check">+ <input class="form-check-input" x-model="formStates.returnHereButton" type="checkbox" id="returnButton">+ <label class="form-check-label" for="returnButton">{{ __('firefly.create_another') }}</label>+ </div>+</template>++<!-- RESET AFTER -->+<template x-if="'create' === formBehaviour.formType">+ <div class="form-check">+ <input class="form-check-input" x-model="formStates.resetButton" type="checkbox" id="resetButton" :disabled="!formStates.returnHereButton">+ <label class="form-check-label" for="resetButton">{{ __('firefly.reset_after') }}</label>+ </div>+</template>+<!-- RETURN HERE AFTER EDIT TRANSACTION -->+<template x-if="'edit' === formBehaviour.formType">+ <div class="form-check">+ <input class="form-check-input" x-model="formStates.returnHereButton" type="checkbox" id="returnButton">+ <label class="form-check-label" for="returnButton">{{ __('firefly.after_update_create_another') }}</label>+ </div>+</template>+<!-- CLONE INSTEAD OF EDIT CURRENT TRANSACTION -->+<template x-if="'edit' === formBehaviour.formType">+ <div class="form-check">+ <input class="form-check-input" x-model="formStates.saveAsNewButton" type="checkbox" id="saveAsNewButton">+ <label class="form-check-label" for="saveAsNewButton">{{ __('firefly.store_as_new') }}</label>+ </div>+</template>++<div class="form-check">+ <input class="form-check-input" type="checkbox" id="rulesButton" :checked="formStates.rulesButton">+ <label class="form-check-label" for="rulesButton">{{ __('firefly.apply_rules_checkbox') }}</label>+</div>++<div class="form-check">+ <input class="form-check-input" type="checkbox" id="webhooksButton" :checked="formStates.webhooksButton">+ <label class="form-check-label" for="webhooksButton">{{ __('firefly.fire_webhooks_checkbox') }}</label>+</div>diff --git a/resources/views/partials/form/transaction/tags.blade.php b/resources/views/partials/form/transaction/tags.blade.phpindex 6e1dd3701c..ce954938c0 100644--- a/resources/views/partials/form/transaction/tags.blade.php+++ b/resources/views/partials/form/transaction/tags.blade.php@@ -8,6 +8,7 @@class="form-select ac-tags":id="'tags_' + index":name="'tags['+index+'][]'"+ x-model="transaction.tags"multiple><option value="">{{ __('firefly.select_tag') }}</option></select>diff --git a/resources/views/transactions/create.blade.php b/resources/views/transactions/create.blade.phpindex 36de3c602e..3b00a1e035 100644--- a/resources/views/transactions/create.blade.php+++ b/resources/views/transactions/create.blade.php@@ -9,8 +9,9 @@:zoomLevel="$zoomLevel":latitude="$latitude":longitude="$longitude"+ :optional-date-fields="$optionalDateFields":optional-fields="$optionalFields"- :optional-date-fields="$optionalDateFields" />+ /></template></div></div>