signup.html 882 B

12345678910111213141516171819202122232425262728
  1. {% extends 'myapp/base.html' %}
  2. {% load static %}
  3. {% block content %}
  4. <div class="col-sm-10">
  5. <h3 class="my-5">Become an Author</h3>
  6. {% if messages %}
  7. {% for message in messages %}
  8. <p {% if message.tags %} class="alert alert-{{message.tags}}" {% endif %}>{{message}}</p>
  9. {% endfor %}
  10. {% endif %}
  11. <form action="" method="post" novalidate>
  12. {% csrf_token %}
  13. {% for fm in form %}
  14. <div class="form-group">
  15. {{fm.label_tag}} {{fm}} <small class="text-danger">{{fm.errors|striptags}}</small>
  16. </div>
  17. {% endfor %}
  18. <input type="submit" value="Submit" class="btn btn-primary mt-2">
  19. {% if form.non_field_errors %}
  20. {% for error in form.non_field_errors %}
  21. <p class="alert alert-danger"> {{error}}</p>
  22. {% endfor %}
  23. {% endif %}
  24. </form>
  25. </div>
  26. {% endblock content %}