package models

import "github.com/a-h/templ"

type GroupResultResumeMcu struct {
	Text string `default:"text"`
	ID   int    `default:"id"`
}

type GroupResult struct {
	Nomor                   string `db:"nomor"`
	Group_ResultID          int    `db:"Group_ResultID"`
	Group_ResultName        string `db:"Group_ResultName"`
	Group_ResultFlagPerTest string `db:"Group_ResultFlagPerTest"`
	Group_ResultFlagNonLab  string `db:"Group_ResultFlagNonLab"`
	Group_ResultResumeMcu   string `db:"Group_ResultResumeMcu"`
	Group_ResultIsActive    string `db:"Group_ResultIsActive"`
}

// form component
type GroupResultFormComponent struct {
	IDComponent                    string
	Link                           string
	HxTarget                       string
	HxSwap                         string
	HxInclude                      string
	ModalID                        string
	ModalTitle                     string
	InputGroupResultName           CustomTextFieldv2Prm
	InputGroupResult               CustomTextFieldv2Prm
	CheckboxGroupResultFlagPerTest CustomCheckboxv1Prm
	CheckboxGroupResultFlagNonLab  CustomCheckboxv1Prm
	InputID                        CustomTextFieldv2Prm
	DropdownGroupResultResumeMcu   CustomDropdownv1Prm
	DialogBody                     templ.Component
	DialogAction                   templ.Component
	ButtonCLose                    templ.Component
}
