Skip to content

Commit

Permalink
Fixed add dataset wizard forms #1338
Browse files Browse the repository at this point in the history
  • Loading branch information
verheyenkoen committed Jul 17, 2024
1 parent c0d0334 commit 446a9cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions views/dataset/pages/add.templ
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ templ Add(c *ctx.Ctx) {
</div>
</div>
<div class="bc-toolbar-right">
<form action={ templ.URL(c.PathTo("dataset_add", "method", "identifier").String()) } method="POST">
<form action={ templ.URL(c.PathTo("dataset_add").String()) } method="POST">
@views.CSRFTag(c)
<input type="hidden" name="method" value="identifier"/>
<button type="submit" class="btn btn-primary ms-6">
<i class="if if-add"></i>
<span class="btn-text">Add</span>
Expand All @@ -67,8 +68,9 @@ templ Add(c *ctx.Ctx) {
</div>
</div>
<div class="bc-toolbar-right">
<form action={ templ.URL(c.PathTo("dataset_add", "method", "manual").String()) } method="POST">
<form action={ templ.URL(c.PathTo("dataset_add").String()) } method="POST">
@views.CSRFTag(c)
<input type="hidden" name="method" value="manual"/>
<button type="submit" class="btn btn-primary ms-6">
<i class="if if-add"></i>
<span class="btn-text">Add</span>
Expand Down
8 changes: 4 additions & 4 deletions views/dataset/pages/add_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 446a9cf

Please sign in to comment.