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