Sha256: 3ba4a3abb8bf4e1119829274ee960de30531c06b1da160cb0c5bb58da549ebde

Contents?: true

Size: 1.41 KB

Versions: 8

Compression:

Stored size: 1.41 KB

Contents

<div id="confirm_user_deletion_modal">
  <%= render(ModalComponent.new({ name: "confirm-user-deletion", show: @delete_user_form.error_messages.has_key?(:password), focusable: true })) do %>
    <%= form_with model: @delete_user_form, url: profile_destroy_path, method: "delete", class: "p-6" do %>
      <h2 class="text-lg font-medium text-gray-900 dark:text-gray-100">
        Are you sure you want to delete your account?
      </h2>
      <p class="mt-1 text-sm text-gray-600 dark:text-gray-400">
        Once your account is deleted, all of its resources and data will be permanently deleted. Please enter your password to confirm you would like to permanently delete your account.
      </p>
      <div class="mt-6">
        <%= render(InputLabelComponent.new({ for: "password", value: "Password", class: "sr-only" })) %>
        <%= render(TextInputComponent.new({ id: "password", class: "mt-1 block w-3/4", type: "password", name: "password", placeholder: "Password" })) %>
        <%= render(InputErrorComponent.new({ class: "mt-2", message: @delete_user_form.error_messages[:password] })) %>
      </div>
      <div class="mt-6 flex justify-end">
        <%= render(SecondaryButtonComponent.new({ "x-on:click": "$dispatch('close')" })) do %>
          Cancel
        <% end %>
        <%= render(DangerButtonComponent.new({ class: "ms-3" })) do %>
          Delete Account
        <% end %>
      </div>
    <% end %>
  <% end %>
</div>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
kaze-0.19.0 stubs/hotwire/app/views/profile/partials/_confirm_user_deletion_modal.html.erb
kaze-0.18.0 stubs/hotwire/app/views/profile/partials/_confirm_user_deletion_modal.html.erb
kaze-0.17.0 stubs/hotwire/app/views/profile/partials/_confirm_user_deletion_modal.html.erb
kaze-0.16.0 stubs/hotwire/app/views/profile/partials/_confirm_user_deletion_modal.html.erb
kaze-0.15.0 stubs/hotwire/app/views/profile/partials/_confirm_user_deletion_modal.html.erb
kaze-0.14.0 stubs/hotwire/app/views/profile/partials/_confirm_user_deletion_modal.html.erb
kaze-0.13.0 stubs/hotwire/app/views/profile/partials/_confirm_user_deletion_modal.html.erb
kaze-0.12.0 stubs/hotwire/app/views/profile/partials/_confirm_user_deletion_modal.html.erb