adrema/resources/js/views/setting/Module.vue

24 lines
1.1 KiB
Vue
Raw Normal View History

2023-11-16 10:52:57 +01:00
<template>
<page-layout>
<template #right>
<f-save-button form="modulesettingform"></f-save-button>
</template>
<setting-layout>
2024-08-01 17:30:55 +02:00
<form id="modulesettingform" class="grow p-6 grid grid-cols-2 gap-3 items-start content-start" @submit.prevent="submit">
2023-11-16 10:52:57 +01:00
<div class="col-span-full text-gray-100 mb-3">
2024-08-01 17:30:55 +02:00
<p class="text-sm">Hier kannst du Funktionen innerhalb von Adrema (Module) aktivieren oder deaktivieren und so den Funktionsumfang auf deine Bedürfnisse anpassen.</p>
2023-11-16 10:52:57 +01:00
</div>
<div class="grid grid-cols-2 gap-4">
2024-08-01 17:30:55 +02:00
<f-switch v-for="module in meta.modules" :id="module.id" v-model="data.modules" :value="module.id" size="sm" name="modules" :label="module.name"></f-switch>
2023-11-16 10:52:57 +01:00
</div>
</form>
</setting-layout>
</page-layout>
</template>
2024-08-01 17:30:55 +02:00
<script setup>
import {props, useSettings} from './useSettings.js';
const innerProps = defineProps(props);
const {submit, data, meta, SettingLayout} = useSettings(innerProps);
2023-11-16 10:52:57 +01:00
</script>