dispatch('submit', { form: $form })}> <% attributes.each do |attribute| -%> <% if attribute.password_digest? -%>
Password
{#if $form.errors.password}
{$form.errors.password}
{/if}
Password confirmation
{#if $form.errors.password_confirmation}
{$form.errors.password_confirmation}
{/if}
<% else -%>
<%= attribute.human_name %>
<% if input_type(attribute) == "text_area" -%>
}>
<% elsif attribute.attachment? -%>
($form.<%= attribute.column_name %> = filesFromEvent(e)[0])} /> <% elsif attribute.attachments? -%>
($form.<%= attribute.column_name %> = filesFromEvent(e))} /> <% else -%>
={$form.<%= attribute.column_name %>} /> <% end -%> {#if $form.errors.<%= attribute.column_name %>}
{$form.errors.<%= attribute.column_name %>}
{/if}
<% end -%> <% end -%>
{submitText}