Compare commits
6 Commits
4679a85e09
...
8d60b65ac4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8d60b65ac4 | ||
|
|
06f7d465bf | ||
|
|
fa038ee041 | ||
|
|
ee1be74eba | ||
|
|
0a2c2fdee3 | ||
|
|
0d62c6f4db |
3
main.go
3
main.go
@ -41,8 +41,9 @@ func main() {
|
|||||||
http.MethodPatch,
|
http.MethodPatch,
|
||||||
http.MethodDelete,
|
http.MethodDelete,
|
||||||
},
|
},
|
||||||
AllowedHeaders: []string{"*"},
|
AllowedHeaders: []string{"Authorization", "Content-Type", "*"},
|
||||||
AllowCredentials: true,
|
AllowCredentials: true,
|
||||||
|
Debug: true,
|
||||||
})
|
})
|
||||||
|
|
||||||
//init api routes
|
//init api routes
|
||||||
|
|||||||
@ -56,7 +56,7 @@ func EditProject(project *ent.Project) g.Node {
|
|||||||
b.ImgSq64,
|
b.ImgSq64,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Input(Type("hidden"), Value(strconv.Itoa(project.ID)), e.Name("project_id")),
|
Input(e.Type("hidden"), e.Value(strconv.Itoa(project.ID)), e.Name("project_id")),
|
||||||
//b.Label("ID: "+strconv.Itoa(project.ID), Name("project_id")),
|
//b.Label("ID: "+strconv.Itoa(project.ID), Name("project_id")),
|
||||||
b.Label("Name"),
|
b.Label("Name"),
|
||||||
b.Textarea(project.Name, b.Rows(1), e.Name("project_name")),
|
b.Textarea(project.Name, b.Rows(1), e.Name("project_name")),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user