12345678910111213141516171819202122232425262728 |
- {% extends 'myapp/base.html' %}
- {% load static %}
- {% block content %}
- <div class="col-sm-10">
- <h3 class="my-5">Become an Author</h3>
- {% if messages %}
- {% for message in messages %}
- <p {% if message.tags %} class="alert alert-{{message.tags}}" {% endif %}>{{message}}</p>
- {% endfor %}
- {% endif %}
- <form action="" method="post" novalidate>
- {% csrf_token %}
- {% for fm in form %}
- <div class="form-group">
- {{fm.label_tag}} {{fm}} <small class="text-danger">{{fm.errors|striptags}}</small>
- </div>
- {% endfor %}
- <input type="submit" value="Submit" class="btn btn-primary mt-2">
- {% if form.non_field_errors %}
- {% for error in form.non_field_errors %}
- <p class="alert alert-danger"> {{error}}</p>
- {% endfor %}
- {% endif %}
- </form>
- </div>
- {% endblock content %}
|