Added route to view test

This commit is contained in:
Gregory Ballantine committed 2024-05-29 08:45:53 -04:00
1 parent cf7623fbb9
commit dea08d15dd
4 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -33,7 +33,7 @@ func TestGetView(c flamego.Context, t template.Template, data template.Data) {
models.DB.Find(&test, testID)
data["test"] = test
data["title"] = test.Title
data["title"] = test.Name
t.HTML(http.StatusOK, "test/view")
}
@@ -55,7 +55,7 @@ func TestPostCreate(c flamego.Context, form forms.TestForm, errs binding.Errors)
}
test := models.Test{
DateTag: form.DateTag,
Name: form.Name,
HardwareID: form.Hardware,
}