Added Formular and Field

This commit is contained in:
R40fendt
2026-02-02 12:10:05 +01:00
parent fe13c160c1
commit d6ae29cd12

38
formular.dto.ts Normal file
View File

@@ -0,0 +1,38 @@
export class Formular {
public id: number;
public name: string;
public minitext: string;
public ispublic: boolean;
public multiple: boolean;
public fields: Field[];
}
export enum FieldType {
TEXT = "text",
PASSWORD = "password",
NUMBER = "number",
RANGE = "range",
DATE = "date",
TIME = "time",
CHECKBOX = "checkbox",
RADIO = "radio",
COLOR = "color",
SUBMIT = "submit",
TEXTAREA = "textarea"
}
export class Field {
id?: number;
formular: number;
name: string;
displayname?: string | null;
value: string;
displayvalue?: string | null;
placeholder?: string | null;
type: FieldType;
title?: string | null; required: boolean;
maxlength?: number | null;
min?: number | null;
max?: number | null;
checked?: boolean | null;
}