Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 15 additions & 19 deletions src/staff/templates/staff/sample_lab.html
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
{% extends "staff/base.html" %}
{% load crispy_forms_tags static %}
{% load render_table from django_tables2 %}

{% block content %}
<h3 class="text-4xl mb-5">{% block page-title %}{% if order %}{{ order }} - Samples{% else %}Samples{% endif %}{% endblock page-title %}</h3>
{% block page-inner %}
<div class="flex gap-5 mb-5">
<a class="btn bg-primary" href="../"><i class="fas fa-arrow-left"></i> back</a>
</div>
<form method="post" action="{% url 'staff:order-extraction-samples-lab' order.pk %}">
{% csrf_token %}
{% for status in statuses %}
<button class="btn bg-blue-500 text-white mt-4 mr-2" type="submit" name="status" value="{{ status.name }}">
<i class="fa-solid fa-id-badge"></i> {{ status.name }}
</button>
{% endfor %}
<h3 class="text-4xl mb-5">{% if order %}{{ order }} - Samples{% else %}Samples{% endif %}</h3>

{% render_table table %}
</form>
{% endblock page-inner %}
<div class="flex gap-5 mb-5">
<a class="btn bg-primary" href="../"><i class="fas fa-arrow-left"></i> back</a>
</div>

<form method="post" action="{% url 'staff:order-extraction-samples-lab' order.pk %}">
{% csrf_token %}
{% for status in statuses %}
<button class="btn bg-blue-500 text-white mt-4 mr-2" type="submit" name="status" value="{{ status.name }}">
<i class="fa-solid fa-id-badge"></i> {{ status.name }}
</button>
{% endfor %}

{% endblock %}
{% render_table table %}
</form>

{% block body_javascript %}
<script>
document.addEventListener("DOMContentLoaded", function () {
const selectAll = document.getElementById('select-all-checkbox');
Expand Down Expand Up @@ -57,4 +53,4 @@ <h3 class="text-4xl mb-5">{% block page-title %}{% if order %}{{ order }} - Samp
});
});
</script>
{% endblock body_javascript%}
{% endblock content %}