Skip to content

Commit

Permalink
Merge pull request #1052 from TOMToolkit/786-add-ability-to-cancel-ob…
Browse files Browse the repository at this point in the history
…servation-requests

add cancel button on observation record detail page.
  • Loading branch information
jchate6 authored Oct 9, 2024
2 parents 2c7fa4a + ce71e17 commit 8b29f2d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ <h2>{{ object }}
{% endif %}
<p class="my-auto"><strong>Observation ID:</strong> {{ object.observation_id }}</p>
<p class="my-auto"><strong>Created:</strong> {{ object.created }} <strong>Modified:</strong> {{ object.modified }}</p>
<p class="my-auto"><strong>Status:</strong> {{ object.status }}</p>
<p class="my-auto">
<strong>Status:</strong> {{ object.status }}
{% if object.status == 'PENDING' %}
<a class="btn btn-danger" href="{% url 'tom_observations:cancel' pk=object.pk %}">Cancel Observation</a>
{% endif %}
</p>
</div>
<p></p>
{% upload_dataproduct object %}
Expand Down

0 comments on commit 8b29f2d

Please sign in to comment.