mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[enh] Tabs in config panel
This commit is contained in:
parent
76fa9b64ec
commit
93ad401c7d
1 changed files with 28 additions and 22 deletions
|
@ -1,11 +1,15 @@
|
||||||
<template>
|
<template>
|
||||||
<view-base :queries="queries" @queries-response="onQueriesResponse" skeleton="card-form-skeleton">
|
<view-base :queries="queries" @queries-response="onQueriesResponse" skeleton="card-form-skeleton">
|
||||||
<template v-if="panels" #default>
|
<template v-if="panels" #default>
|
||||||
|
<b-tabs pills card vertical>
|
||||||
|
<b-tab v-for="{ name, id: id_, sections, help, serverError } in panels"
|
||||||
|
:key="id_"
|
||||||
|
:title="name"
|
||||||
|
>
|
||||||
<card-form
|
<card-form
|
||||||
v-for="{ name, id: id_, sections, help, serverError } in panels" :key="id_"
|
:key="id_"
|
||||||
:title="name" icon="wrench" title-tag="h2"
|
:title="name" icon="wrench" title-tag="h2"
|
||||||
:validation="$v.forms[id_]" :id="id_ + '-form'" :server-error="serverError"
|
:validation="$v.forms[id_]" :id="id_ + '-form'" :server-error="serverError"
|
||||||
collapsable
|
|
||||||
@submit.prevent="applyConfig(id_)"
|
@submit.prevent="applyConfig(id_)"
|
||||||
>
|
>
|
||||||
<template v-if="help" #disclaimer>
|
<template v-if="help" #disclaimer>
|
||||||
|
@ -23,7 +27,9 @@
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</card-form> {{ errors.main.str }}
|
</card-form>
|
||||||
|
</b-tab>
|
||||||
|
</b-tabs>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!-- if no config panel -->
|
<!-- if no config panel -->
|
||||||
|
|
Loading…
Reference in a new issue