up frontend
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<AppLayout>
|
||||
<div class="card">
|
||||
<h1 class="text-2xl font-bold mb-6">Application Settings</h1>
|
||||
<h1 class="text-2xl font-bold mb-6">{{ t('settings.title') }}</h1>
|
||||
<form @submit.prevent="saveSettings" class="space-y-6 max-w-2xl">
|
||||
<div v-for="field in meta" :key="field.key" class="border-b border-gray-200 pb-4">
|
||||
<label class="block text-sm font-medium text-gray-700 mb-1">
|
||||
@@ -54,8 +54,8 @@
|
||||
</div>
|
||||
|
||||
<div class="flex justify-end space-x-3 pt-4">
|
||||
<button type="button" @click="loadData" class="btn-secondary">Reset</button>
|
||||
<button type="submit" class="btn-primary">Save Changes</button>
|
||||
<button type="button" @click="loadData" class="btn-secondary">{{ t('settings.reset') }}</button>
|
||||
<button type="submit" class="btn-primary">{{ t('settings.save') }}</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -69,7 +69,9 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted } from 'vue';
|
||||
import AppLayout from '../components/Layout/AppLayout.vue';
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
const { t, locale } = useI18n()
|
||||
interface FieldMeta {
|
||||
key: string;
|
||||
label: string;
|
||||
|
||||
Reference in New Issue
Block a user