7e08dd0f89
this feels a bit hacky yet, but had to introduce some new mechanisms to allow for extra template stuff while avoiding adding a new vendors/edit (etc.) template in this project, since we are using a view supplement..ugh
59 lines
1.7 KiB
Mako
59 lines
1.7 KiB
Mako
## -*- coding: utf-8; -*-
|
|
|
|
<div style="display: flex;">
|
|
<span style="flex-grow: 1;"></span>
|
|
<b-button type="is-primary"
|
|
icon-pack="fas"
|
|
icon-left="plus"
|
|
@click="quickbooksBankAccountCreate()">
|
|
Add Account
|
|
</b-button>
|
|
</div>
|
|
|
|
${grid.render_table_element(data_prop='quickbooksBankAccountsData')|n}
|
|
|
|
<b-modal has-modal-card
|
|
:active.sync="quickbooksBankAccountShowDialog">
|
|
<div class="modal-card">
|
|
|
|
<header class="modal-card-head">
|
|
<p class="modal-card-title">Quickbooks Bank Account</p>
|
|
</header>
|
|
|
|
<section class="modal-card-body">
|
|
|
|
<b-field label="Store"
|
|
:type="{'is-danger': !quickbooksBankAccountStore}">
|
|
<b-select v-model="quickbooksBankAccountStore"
|
|
:disabled="quickbooksBankAccountEditing">
|
|
<option v-for="store in quickbooksBankAccountStoreOptions"
|
|
:key="store.uuid"
|
|
:value="store.uuid">
|
|
{{ store.display }}
|
|
</option>
|
|
</b-select>
|
|
</b-field>
|
|
|
|
<b-field label="Account Number"
|
|
:type="{'is-danger': !quickbooksBankAccountNumber}">
|
|
<b-input v-model="quickbooksBankAccountNumber"
|
|
ref="quickbooksBankAccountNumber" />
|
|
</b-field>
|
|
|
|
</section>
|
|
|
|
<footer class="modal-card-foot">
|
|
<b-button type="is-primary"
|
|
@click="quickbooksBankAccountSave()"
|
|
:disabled="quickbooksBankAccountSaveDisabled"
|
|
icon-pack="fas"
|
|
icon-left="save">
|
|
Update
|
|
</b-button>
|
|
<b-button @click="quickbooksBankAccountShowDialog = false">
|
|
Cancel
|
|
</b-button>
|
|
</footer>
|
|
</div>
|
|
</b-modal>
|
|
|