addpost.html 384 B

12345678910111213
  1. {% extends 'myapp/base.html' %}
  2. {% load static %}
  3. {% block content %}
  4. <div class="col-sm-10">
  5. <h3 class="text-dark my-5">Dashboard/ Add Post</h3>
  6. <form action="" method="post" novalidate>
  7. {% csrf_token %}
  8. {{form.as_p}}
  9. <input type="submit" value="Add" class="btn btn-success">
  10. <a href="{% url 'dashboard' %}" class="btn btn-danger">Cancel</a>
  11. </form>
  12. </div>
  13. {% endblock content %}