forked from verdnatura/hedera-web
feat: extra-form slot for other table
This commit is contained in:
parent
2e2c83dcde
commit
8866331926
|
@ -195,6 +195,10 @@ defineExpose({
|
||||||
name="form"
|
name="form"
|
||||||
:data="formData"
|
:data="formData"
|
||||||
/>
|
/>
|
||||||
|
<slot
|
||||||
|
name="extraForm"
|
||||||
|
:data="formData"
|
||||||
|
/>
|
||||||
<component
|
<component
|
||||||
:is="showBottomActions ? 'div' : Teleport"
|
:is="showBottomActions ? 'div' : Teleport"
|
||||||
:to="$actions"
|
:to="$actions"
|
||||||
|
@ -231,8 +235,12 @@ defineExpose({
|
||||||
/>
|
/>
|
||||||
</QCard>
|
</QCard>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.no-form-container {
|
||||||
|
padding: 0 !important;
|
||||||
|
box-shadow: none;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
.form-container {
|
.form-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: max-content;
|
height: max-content;
|
||||||
|
|
|
@ -13,6 +13,7 @@ const { t } = useI18n();
|
||||||
const jApi = inject('jApi');
|
const jApi = inject('jApi');
|
||||||
|
|
||||||
const vnFormRef = ref(null);
|
const vnFormRef = ref(null);
|
||||||
|
const vnFormRef2 = ref(null);
|
||||||
const changePasswordFormDialog = ref(null);
|
const changePasswordFormDialog = ref(null);
|
||||||
const showChangePasswordForm = ref(false);
|
const showChangePasswordForm = ref(false);
|
||||||
const langOptions = ref([]);
|
const langOptions = ref([]);
|
||||||
|
@ -97,6 +98,26 @@ onMounted(() => fetchLanguagesSql());
|
||||||
@update:model-value="vnFormRef.submit()"
|
@update:model-value="vnFormRef.submit()"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
<template #extraForm>
|
||||||
|
<VnForm
|
||||||
|
class="no-form-container"
|
||||||
|
ref="vnFormRef2"
|
||||||
|
:pks="pks"
|
||||||
|
table="myClient"
|
||||||
|
schema="hedera"
|
||||||
|
:fetch-form-data-sql="fetchConfigDataSql"
|
||||||
|
:default-actions="false"
|
||||||
|
>
|
||||||
|
<template #form="{ data }">
|
||||||
|
<QCheckbox
|
||||||
|
v-model="data.isToBeMailed"
|
||||||
|
:label="t('isToBeMailed')"
|
||||||
|
@update:model-value="vnFormRef2.submit()"
|
||||||
|
dense
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
</VnForm>
|
||||||
|
</template>
|
||||||
</VnForm>
|
</VnForm>
|
||||||
</QPage>
|
</QPage>
|
||||||
<QDialog
|
<QDialog
|
||||||
|
@ -113,6 +134,7 @@ onMounted(() => fetchLanguagesSql());
|
||||||
<i18n lang="yaml">
|
<i18n lang="yaml">
|
||||||
en-US:
|
en-US:
|
||||||
personalInformation: Personal Information
|
personalInformation: Personal Information
|
||||||
|
isToBeMailed: Receive invoices by email
|
||||||
name: Name
|
name: Name
|
||||||
email: Email
|
email: Email
|
||||||
nickname: Display name
|
nickname: Display name
|
||||||
|
@ -122,6 +144,7 @@ en-US:
|
||||||
changePassword: Change password
|
changePassword: Change password
|
||||||
es-ES:
|
es-ES:
|
||||||
personalInformation: Datos personales
|
personalInformation: Datos personales
|
||||||
|
isToBeMailed: Recibir facturas por correo electrónico
|
||||||
name: Nombre
|
name: Nombre
|
||||||
email: Correo electrónico
|
email: Correo electrónico
|
||||||
nickname: Nombre a mostrar
|
nickname: Nombre a mostrar
|
||||||
|
@ -131,6 +154,7 @@ es-ES:
|
||||||
changePassword: Cambiar contraseña
|
changePassword: Cambiar contraseña
|
||||||
ca-ES:
|
ca-ES:
|
||||||
personalInformation: Dades personals
|
personalInformation: Dades personals
|
||||||
|
isToBeMailed: Rebre factures per correu electrònic
|
||||||
name: Nom
|
name: Nom
|
||||||
email: Correu electrònic
|
email: Correu electrònic
|
||||||
nickname: Nom a mostrar
|
nickname: Nom a mostrar
|
||||||
|
@ -140,6 +164,7 @@ ca-ES:
|
||||||
changePassword: Canviar contrasenya
|
changePassword: Canviar contrasenya
|
||||||
fr-FR:
|
fr-FR:
|
||||||
personalInformation: Informations personnelles
|
personalInformation: Informations personnelles
|
||||||
|
isToBeMailed: Recevoir des factures par e-mail
|
||||||
name: Nom
|
name: Nom
|
||||||
email: E-mail
|
email: E-mail
|
||||||
nickname: Nom à afficher
|
nickname: Nom à afficher
|
||||||
|
@ -149,6 +174,7 @@ fr-FR:
|
||||||
changePassword: Changer le mot de passe
|
changePassword: Changer le mot de passe
|
||||||
pt-PT:
|
pt-PT:
|
||||||
personalInformation: Dados pessoais
|
personalInformation: Dados pessoais
|
||||||
|
isToBeMailed: Receber facturas por e-mail
|
||||||
name: Nome
|
name: Nome
|
||||||
email: E-mail
|
email: E-mail
|
||||||
nickname: Nom à afficher
|
nickname: Nom à afficher
|
||||||
|
|
Loading…
Reference in New Issue