deleteAccount.eta 1.1 KB

123456789101112131415161718192021222324
  1. <% layout("/en/layout", { title: "delete account" }) %>
  2. <%~ include("/en/panel/partials/navbar") %>
  3. <% const backIcon = `
  4. <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
  5. <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m12 19l-7-7l7-7m7 7H5" />
  6. </svg>
  7. ` %>
  8. <% const deleteIcon = `
  9. <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
  10. <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 11v6m4-6v6m5-11v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" />
  11. </svg>
  12. ` %>
  13. <div class="container-row">
  14. <a role="button" href="/en/panel/settings"><%~ backIcon %></a>
  15. <h2><%~ deleteIcon %> delete account</h2>
  16. </div>
  17. <p>are you sure you want to delete your account <strong><%= it?.user?.name ? `${it?.user?.name} (${it?.user.email})` : it?.user.email %></strong>?</p>
  18. <a role="button" class="danger" href="/en/auth/delete"><%~ deleteIcon %> delete account</a>