83 lines
2.7 KiB
Vue
83 lines
2.7 KiB
Vue
<script setup>
|
|
import { reactive } from 'vue';
|
|
import { useI18n } from 'vue-i18n';
|
|
|
|
import FormModel from 'components/FormModel.vue';
|
|
import VnRow from 'components/ui/VnRow.vue';
|
|
import VnInput from 'src/components/common/VnInput.vue';
|
|
import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue';
|
|
|
|
const { t } = useI18n();
|
|
|
|
const newAccountForm = reactive({
|
|
supplierFk: null,
|
|
travelFk: null,
|
|
companyFk: null,
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<QPage>
|
|
<VnSubToolbar></VnSubToolbar>
|
|
<pre>TODO <b>SAMBA</b></pre>
|
|
<FormModel
|
|
url-create="Entries"
|
|
model="account"
|
|
:form-initial-data="newAccountForm"
|
|
>
|
|
<template #moreActions>
|
|
<QBtn round flat color="primary" :label="t('samba.testConnection')">
|
|
<QTooltip>
|
|
{{ t('samba.testConnection') }}
|
|
</QTooltip>
|
|
</QBtn>
|
|
<QBtn round flat color="primary" :label="t('samba.verifyCertificate')">
|
|
<QTooltip>
|
|
{{ t('samba.verifyCertificate') }}
|
|
</QTooltip>
|
|
</QBtn>
|
|
</template>
|
|
<template #form="{ data }">
|
|
<VnRow class="row q-gutter-md q-mb-md">
|
|
<div class="col">
|
|
<QCheckbox
|
|
:label="t('samba.enableSync')"
|
|
v-model="data.enableSync"
|
|
/>
|
|
</div>
|
|
</VnRow>
|
|
<template v-if="data.enableSync">
|
|
<VnInput
|
|
:label="t('samba.domainController')"
|
|
clearable
|
|
v-model="data.domainController"
|
|
/>
|
|
<VnInput
|
|
:label="t('samba.domainAD')"
|
|
clearable
|
|
v-model="data.domainAD"
|
|
/>
|
|
<VnInput
|
|
:label="t('samba.groupDN')"
|
|
clearable
|
|
v-model="data.groupDN"
|
|
/>
|
|
|
|
<VnInput :label="t('samba.userAD')" clearable v-model="data.userAD" />
|
|
<VnInput
|
|
:label="t('samba.passwordAD')"
|
|
clearable
|
|
type="password"
|
|
v-model="data.passwordAD"
|
|
/>
|
|
<VnInput
|
|
:label="t('samba.domainPart')"
|
|
clearable
|
|
v-model="data.domainPart"
|
|
/>
|
|
</template>
|
|
</template>
|
|
</FormModel>
|
|
</QPage>
|
|
</template>
|