{% extends 'textdocs/base.html' %} {% block content %} <h2>{% if form.instance.pk %}Edit Technical Report{% else %}Create a New Technical Report{% endif %}</h2> <form method="post"> {% csrf_token %} {{ form.as_p }} <button type="submit" class="btn btn-success">Save Document</button> <a href="{% url 'document_list' %}" class="btn btn-secondary">Cancel</a> </form> {% endblock %}