fix: rearrange quick entry editor action buttons
This commit is contained in:
parent
121d93adea
commit
437847a62e
@ -16,24 +16,19 @@
|
|||||||
<template #body-content>
|
<template #body-content>
|
||||||
<div class="flex flex-col gap-3">
|
<div class="flex flex-col gap-3">
|
||||||
<div class="flex justify-between gap-2">
|
<div class="flex justify-between gap-2">
|
||||||
<FormControl
|
<Button
|
||||||
type="select"
|
|
||||||
class="w-1/4"
|
|
||||||
v-model="_doctype"
|
|
||||||
:options="[
|
|
||||||
'CRM Lead',
|
|
||||||
'CRM Deal',
|
|
||||||
'Contact',
|
|
||||||
'CRM Organization',
|
|
||||||
'Address',
|
|
||||||
]"
|
|
||||||
@change="reload"
|
|
||||||
/>
|
|
||||||
<Switch
|
|
||||||
v-model="preview"
|
|
||||||
:label="preview ? __('Hide preview') : __('Show preview')"
|
:label="preview ? __('Hide preview') : __('Show preview')"
|
||||||
size="sm"
|
@click="preview = !preview"
|
||||||
/>
|
/>
|
||||||
|
<div class="flex flex-row-reverse gap-2">
|
||||||
|
<Button
|
||||||
|
:loading="loading"
|
||||||
|
:label="__('Save')"
|
||||||
|
variant="solid"
|
||||||
|
@click="saveChanges"
|
||||||
|
/>
|
||||||
|
<Button :label="__('Reset')" @click="reload" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="tabs?.data">
|
<div v-if="tabs?.data">
|
||||||
<FieldLayoutEditor
|
<FieldLayoutEditor
|
||||||
@ -45,17 +40,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #actions>
|
|
||||||
<div class="flex flex-row-reverse gap-2">
|
|
||||||
<Button
|
|
||||||
:loading="loading"
|
|
||||||
:label="__('Save')"
|
|
||||||
variant="solid"
|
|
||||||
@click="saveChanges"
|
|
||||||
/>
|
|
||||||
<Button :label="__('Reset')" @click="reload" />
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
</Dialog>
|
</Dialog>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user