document_form.html 423 B

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