{% extends 'base_labTechnician.html' %}

{% block title %}button_lab{% endblock %}

{% block content %}

		<!-- Propeller button -->
		<section class="row component-section">
			
			<form action="{% url 'digiMED:test' %}" method="POST">
			{% csrf_token %}
			{% if test_list %}
			{% for test_tup in test_list %}
				<div class="col-md-9">
					<div class="pmd-card pmd-z-depth card-custom-view">
						<div class="pmd-card-body"> 
							<h2>Patient ID : {{ test_tup.pid.pid }}</h2>
							<h2>Date : {{ test_tup.date }}</h2>
							<h2>Test : {{ test_tup.test }}</h2>
						</div>
					</div>
					<div class="component-box">
						<!--Bootstrap button example -->
						<div class="pmd-card pmd-z-depth card-custom-view">
							<div class="pmd-card-body"> 
								
								<!--Primary button with a ripple effect-->
								<button type="submit" class="btn pmd-ripple-effect btn-primary" name="fill" id="fill{{ forloop.counter }}" value="{{ test_tup.id }}" >Fill</button >
							</div>
						</div> <!--default button example end-->
						
					</div> <!-- Default button code and example end --> 
				</div>
			{% endfor %}
			{% else %}
			<br><br><br><br><br>
			<h2>&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;No pending requests!</h2>
			{% endif %}
			</form>
		</section> 

{% endblock %}
