diff --git a/src/components/nat.tsx b/src/components/nat.tsx index d78083f..2adeefc 100644 --- a/src/components/nat.tsx +++ b/src/components/nat.tsx @@ -29,6 +29,8 @@ import { useTranslation } from "react-i18next" import { toast } from "sonner" import { KeyedMutator } from "swr" import { z } from "zod" +import { Checkbox } from "./ui/checkbox" +import { Label } from "./ui/label" interface NATCardProps { data?: ModelNAT @@ -37,6 +39,7 @@ interface NATCardProps { const natFormSchema = z.object({ name: z.string().min(1), + enabled: z.boolean(), server_id: z.coerce.number().int(), host: z.string(), domain: z.string(), @@ -50,6 +53,7 @@ export const NATCard: React.FC = ({ data, mutate }) => { ? data : { name: "", + enabled: false, server_id: 0, host: "", domain: "", @@ -148,6 +152,26 @@ export const NATCard: React.FC = ({ data, mutate }) => { )} /> + ( + + +
+ + +
+
+ +
+ )} + />