feat: 게시판 폼에 개인정보 표시 여부 필드 추가

This commit is contained in:
2025-07-01 14:18:17 +09:00
parent 09c1822f5e
commit 0ef59a16f9
3 changed files with 32 additions and 0 deletions
@@ -56,6 +56,7 @@ export interface Board {
popupUseYn: string;
delYn: string;
useYn: string;
prvcIndctYn: string;
mdfcnDt: string;
mdfrNm: string;
}
@@ -81,6 +82,7 @@ export const boardFormSchema = z.object({
pstgPrdUseYn: z.string(),
popupUseYn: z.string(),
useYn: z.string(),
prvcIndctYn: z.string(),
});
export type BoardList = PageableList<Board>;
+29
View File
@@ -478,6 +478,35 @@ function BbsForm({ form, bbsId, ...props }: BbsFormProps) {
/>
</TableCell>
</TableRow>
<TableRow>
<TableHead>개인정보 표시 여부</TableHead>
<TableCell className="border">
<FormField
control={form.control}
name="prvcIndctYn"
render={({ field }) => (
<FormItem>
<FormControl>
<RadioGroup
{...field}
onValueChange={field.onChange}
disabled={disabledForm}
>
<div className="flex items-center space-x-2">
<RadioGroupItem value="N" id="prvcIndctN" />
<Label htmlFor="prvcIndctN">표시함</Label>
</div>
<div className="flex items-center space-x-2">
<RadioGroupItem value="Y" id="prvcIndctY" />
<Label htmlFor="prvcIndctY">표시안함</Label>
</div>
</RadioGroup>
</FormControl>
</FormItem>
)}
/>
</TableCell>
</TableRow>
<TableRow>
<TableHead>사용 여부</TableHead>
<TableCell className="border">
+1
View File
@@ -38,6 +38,7 @@ function CreatePage() {
pstgPrdUseYn: "Y",
popupUseYn: "Y",
useYn: "Y",
prvcIndctYn: "Y",
},
});