mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 01:42:32 +00:00
Expand edit transaction form.
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
x-model="transaction.budget_id"
|
||||
>
|
||||
<template x-for="budget in formData.budgets">
|
||||
<option :label="budget.name" :value="budget.id"
|
||||
<option :label="budget.name" :value="budget.id" :selected="budget.id == transaction.budget_id"
|
||||
x-text="budget.name"></option>
|
||||
</template>
|
||||
</select>
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
x-for="subscription in group.subscriptions">
|
||||
<option :label="subscription.name"
|
||||
:value="subscription.id"
|
||||
:selected="subscription.id == transaction.bill_id"
|
||||
x-text="subscription.name"></option>
|
||||
</template>
|
||||
</optgroup>
|
||||
|
||||
@@ -7,10 +7,20 @@
|
||||
<select
|
||||
class="form-select ac-tags"
|
||||
:id="'tags_' + index"
|
||||
x-model="transaction.tags"
|
||||
:name="'tags['+index+'][]'"
|
||||
multiple>
|
||||
<option value="">{{ __('firefly.select_tag') }}</option>
|
||||
<template x-for="tag in transaction.tags" :key="tag">
|
||||
<option :value="tag" x-text="tag" selected="selected"></option>
|
||||
</template>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--
|
||||
:value="tag"
|
||||
<template x-for="(tag, index) in transaction.tags" :key="index">
|
||||
<option value="bla">bla</option>
|
||||
</template>
|
||||
-->
|
||||
|
||||
@@ -9,11 +9,18 @@
|
||||
<x-messages></x-messages>
|
||||
<x-transaction-tab-list></x-transaction-tab-list>
|
||||
<div class="tab-content" id="splitTabsContent">
|
||||
|
||||
<template x-for="transaction,index in entries">
|
||||
<x-transaction-split
|
||||
:zoomLevel="$zoomLevel"
|
||||
:latitude="$latitude"
|
||||
:longitude="$longitude"
|
||||
:optionalFields="$optionalFields"
|
||||
:optionalDateFields="$optionalDateFields"></x-transaction-split>
|
||||
</template>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col text-end">
|
||||
<button class="btn btn-success" :disabled="submitting" @click="submitTransaction()">Update</button>
|
||||
<button class="btn btn-success" :disabled="formStates.isSubmitting" @click="submitTransaction()">Update</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user