{% load bootstrap3 %}
<div class="container">

  {% include "qa/header.html" %}

  {% if registered %}
  <strong>Thank you for registering!</strong>
  <a href="/login">You can Login Now!</a><br />
  {% else %}
  <h2>Welcome Aboard!</h2><br /><br />

  <form id="user_form" class="form" method="post" action="/register/"
  enctype="multipart/form-data">

  {% csrf_token %}
  {% bootstrap_form user_form %}
  <!-- Display each form. The as_p method wraps each element in a paragraph
  (<p>) element. This ensures each element appears on a new line,
  making everything look neater. -->

  {% buttons %}
        <button type="submit" class="btn btn-primary">
            {% bootstrap_icon "star" %} Submit
        </button>
    {% endbuttons %}
</form>
{% endif %}

</div>

{% include "qa/footer.html" %}
