{% extends "eventum_admin.html" %}
{% block title %}Create Profile{% endblock %}
{% block pagetitle %}Create Profile{% endblock %}
{% block bodyClass %}{{ super() }} create-profile{% endblock%}

{% import 'eventum_macros.html' as macros %}

{% block content %}
<div class="signup-flow">
  <div>
    {% if form.errors %}
    <div>
    {% for field, error in form.errors.items() %}
    {% for e in error %}
    {{ e }}<br>
    {% endfor %}
    {% endfor %}
    </div>
    {% endif %}
    {% if image_url %}
    <img class="profile-picture" src="{{ image_url |replace("sz=50", "sz=100")}}">
    {% endif %}
    <form method="POST" action="" accept-charset="UTF-8" role="form">
      {{ form.csrf_token }}
      {{ macros.render_field(form.name, placehodler="Your Name", autofocus="")}}
      {{ macros.render_field(form.email, label=false, placeholder="Your Email Address") }}
      <input type="submit" name="submit" value="Create Profile">
      {{ macros.render_field(form.next) }}
    </form>
  </div>
  <p class="sign-out">
    If you don't want to proceed, you can <a href="{{ url_for('auth.disconnect')
    }}">sign out</a>.
  </p>
</div>
{% endblock %}
