Edit

kmx.io/kmxgit/lib/kmxgit_web/templates/user_registration/new.html.heex

Branch :

  • lib/kmxgit_web/templates/user_registration/new.html.heex
  • <div class="container-fluid">
      <h1><%= gettext "Register" %></h1>
    
      <.form let={f} for={@changeset} action={Routes.user_registration_path(@conn, :create)}>
        <%= if @changeset.action do %>
          <div class="alert alert-danger">
            <p>Oops, something went wrong! Please check the errors below.</p>
          </div>
        <% end %>
    
        <div class="mb-3">
          <%= label f, :name, class: "form-label" %>
          <%= text_input f, :name, class: "form-control", required: true %>
          <%= error_tag f, :name %>
        </div>
    
        <div class="mb-3">
          <%= label f, :email, class: "form-label" %>
          <%= text_input f, :email, class: "form-control", required: true %>
          <%= error_tag f, :email %>
        </div>
    
        <div class="mb-3">
          <%= label f, :slug_, gettext("Login"), class: "form-label" %>
          <%= text_input f, :slug_, class: "form-control", required: true %>
          <small class="form-text text-muted">Must start with a letter and contain no space.</small>
          <%= error_tag f, :slug_ %>
        </div>
    
        <div class="mb-3">
          <%= label f, :password, class: "form-label" %>
          <%= password_input f, :password, class: "form-control", required: true %>
          <small class="form-text text-muted">Must contain letters, numbers, special characters and be 12 character long.</small>
          <%= error_tag f, :password %>
        </div>
    
        <div class="mb-3">
          <%= label f, :password_confirmation, class: "form-label" %>
          <%= password_input f, :password_confirmation, class: "form-control", required: true %>
          <%= error_tag f, :password_confirmation %>
        </div>
    
        <%= render "recaptcha.html", assigns %>
    
        <div class="mb-3">
          <%= submit gettext("Submit"), class: "btn btn-primary" %>
        </div>
      </.form>
    
      <p>
        <%= link gettext("Log in"), to: Routes.user_session_path(@conn, :new) %> |
        <%= link gettext("Forgot your password?"), to: Routes.user_reset_password_path(@conn, :new) %>
      </p>
    </div>