Skip to content

Commit

Permalink
add links to create analysis orders
Browse files Browse the repository at this point in the history
  • Loading branch information
nicokant committed Jan 14, 2025
1 parent e9e18d8 commit 3ea1ea0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ <h5 class="text-2xl my-5">Delivered Samples</h5>
{% elif object.status == 'confirmed' %}
<a class="btn bg-primary" href="{% url 'genrequest-extraction-samples' genrequest_id=object.genrequest_id pk=object.id %}">Samples</a>
{% endif %}

{% if object.status != 'draft' %}
<a class="btn bg-primary" href="{% url 'genrequest-analysis-create' genrequest_id=object.genrequest_id %}">Analyze this samples</a>
{% endif %}

{% url 'genrequest-order-clone' genrequest_id=object.genrequest_id pk=object.id as clone_order_url %}
{% action-button action=clone_order_url class="bg-secondary text-white" submit_text="Clone Order" csrf_token=csrf_token %}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ <h3 class="text-4xl mb-5">Samples for Extraction #{{ view.kwargs.pk }}</h3>
{% action-button action=confirm_order_url class="bg-secondary text-white" submit_text="Confirm Order" csrf_token=csrf_token %}
<a class="ml-auto btn bg-blue-300" href="{% url 'genrequest-extraction-samples-edit' genrequest_id=genrequest.id pk=view.kwargs.pk %}">edit samples</a>
{% endif %}

{% if object.status != 'draft' %}
<a class="btn bg-primary" href="{% url 'genrequest-analysis-create' genrequest_id=object.genrequest_id %}">Analyze this samples</a>
{% endif %}
</div>
{% endblock %}

0 comments on commit 3ea1ea0

Please sign in to comment.