<h2>Confirm Account</h2>

<%%= form_for @changeset, confirmation_path(@conn, :create), [as: :confirmation], fn f -> %>
  <%%= if @changeset.action do %>
    <div class="alert alert-danger">
      <p>Oops, something went wrong! Please check the errors below.</p>
    </div>
  <%% end %>

  <div class="form-group">
    <%%= label f, :email, class: "control-label" %>
    <%%= email_input f, :email, class: "form-control" %>
    <%%= error_tag f, :email %>
  </div>

  <div class="form-group">
    <%%= submit "Submit", class: "btn btn-primary" %>
  </div>
<%% end %>
