Skip to content

Commit 855b4e2

Browse files
author
calin
committed
Fix complition error
1 parent 37d369e commit 855b4e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/kaffy_web/templates/resource/new.html.eex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</div>
1515
</div>
1616
<div class="card-body">
17-
<%= form_for @changeset, Kaffy.Utils.router().kaffy_resource_path(@conn, :create, @context, @resource), method: :post, multipart: true, fn f -> %>
17+
<%= form_for @changeset, Kaffy.Utils.router().kaffy_resource_path(@conn, :create, @context, @resource), [method: :post, multipart: true], fn f -> %>
1818
<%= for {field, options} <- Kaffy.ResourceAdmin.form_fields(@my_resource) do %>
1919
<%= if options.create != :hidden do %>
2020
<%= Kaffy.ResourceForm.kaffy_input @conn, @changeset, f, field, options %>

lib/kaffy_web/templates/resource/show.html.eex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</div>
3333
</div>
3434
<div class="card-body">
35-
<%= form_for @changeset, Kaffy.Utils.router().kaffy_resource_path(@conn, :update, @context, @resource, @changeset.data.id), method: :put, multipart: true, fn f -> %>
35+
<%= form_for @changeset, Kaffy.Utils.router().kaffy_resource_path(@conn, :update, @context, @resource, @changeset.data.id), [method: :put, multipart: true], fn f -> %>
3636
<%= for {field, options} <- Kaffy.ResourceAdmin.form_fields(@my_resource) do %>
3737
<%= if options.update != :hidden do %>
3838
<%= Kaffy.ResourceForm.kaffy_input @conn, @changeset, f, field, options %>

0 commit comments

Comments
 (0)