← back to NationalPaperHangers

views/public/claim-complete.ejs

31 lines

<%- include('../partials/head', { title }) %>
<%- include('../partials/header') %>

<section class="auth-page">
  <div class="auth-card auth-card-wide">
    <p class="kicker">Final step</p>
    <h1 class="display-sm">Set up your account</h1>
    <p class="lede">Welcome to National Paper Hangers — you've verified ownership of <strong><%= installer.business_name %></strong>. Set a password and we'll send you to your dashboard.</p>

    <% if (error) { %><p class="form-error"><%= error %></p><% } %>

    <form method="post" action="/installer/<%= installer.slug %>/claim/complete">
      <input type="hidden" name="_csrf" value="<%= csrfToken %>">
      <label>Account email <input type="email" name="email" required autofocus></label>
      <label>Choose a password (8+ chars) <input type="password" name="password" required minlength="8"></label>
      <button type="submit" class="btn btn-primary btn-lg">Finish & open dashboard</button>
    </form>

    <p class="muted" style="margin-top:24px">After this, your listing moves to <strong>pending review</strong>. NPH staff will activate it within 1 business day. You can edit your profile and (when ready) upgrade to Pro to enable calendar bookings.</p>
  </div>
</section>

<%- include('../partials/footer') %>
<script>
  // GA4 conversion: claim_completed (domain-verified ownership, password setup page reached)
  gtag('event', 'claim_completed', {
    installer_slug: '<%= installer.slug %>',
    installer_name: '<%= installer.business_name.replace(/'/g, "\\'") %>'
  });
</script>