Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikStreek committed Nov 8, 2024
1 parent 9c08d98 commit 37315a0
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions lib/mindwendel_web/live/comment_live/form_component.html.heex
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@
<div>
<.simple_form
for={@form}
id="comment-form"
id={"comment-form-#{@comment.id || :new}"}
phx-target={@myself}
phx-change="validate"
phx-submit="save"
>
<.input field={@form[:username]} type="text" label={gettext("Username")} phx-debounce={300} />
<.input
field={@form[:username]}
type="text"
label={gettext("Username")}
phx-debounce={300}
id={"comment-form-username-#{@comment.id || :new}"}
/>
<.input
field={@form[:comment_text]}
type="textarea"
id={"comment-form-comment-text-#{@comment.id || :new}"}
label={gettext("Your comment")}
phx-debounce={300}
/>
<.input field={@form[:id]} type="hidden" />
<.input field={@form[:idea_id]} type="hidden" />
<.input field={@form[:id]} type="hidden" id={"comment-form-id-#{@comment.id || :new}"} />
<.input
field={@form[:idea_id]}
type="hidden"
id={"comment-form-idea-id-#{@comment.id || :new}"}
/>
<:actions>
<.link
phx-click={:close}
Expand Down

0 comments on commit 37315a0

Please sign in to comment.