Skip to content

Commit

Permalink
HTTP method updated to PUT (#951)
Browse files Browse the repository at this point in the history
Co-authored-by: Elad Kaplan <[email protected]>
  • Loading branch information
uzyn and kaplanelad authored Nov 5, 2024
1 parent e4cec24 commit b6ad606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loco-gen/src/templates/scaffold/htmx/view_edit.t
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Edit {{name}}: {% raw %}{{ item.id }}{% endraw %}
{% raw %}{% block content %}{% endraw %}
<h1>Edit {{name}}: {% raw %}{{ item.id }}{% endraw %}</h1>
<div class="mb-10">
<form hx-post="/{{name | plural}}/{% raw %}{{ item.id }}{% endraw %}" hx-ext="submitjson" hx-target="#success-message">
<form hx-put="/{{name | plural}}/{% raw %}{{ item.id }}{% endraw %}" hx-ext="submitjson" hx-target="#success-message">
<div class="mb-5">
{% for column in columns -%}
<div>
Expand Down

0 comments on commit b6ad606

Please sign in to comment.