parent
61b5a860e1
commit
d31d53ca9b
@ -8,7 +8,7 @@
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
|
||||
<h1>{{ batch.strain.name }}</h1>
|
||||
<h1>{{ batch.strain.manufacturer }}, {{ batch.strain.name }}</h1>
|
||||
<b>Source:</b> {{ batch.get_source_display }}
|
||||
{% if batch.source_batch %}
|
||||
from <a href="{{ batch.beer_url }}" target="_blank" rel="noopener noreferrer">#{{ batch.beer_num }}: {{ batch.beer_name }}</a>
|
||||
|
@ -25,7 +25,7 @@ input, label {
|
||||
<div class="container m-2">
|
||||
<label for="strain-select">Choose a strain:</label>
|
||||
<select name="strain" id="strain-select">
|
||||
<option value="">--Please choose an option--</option>
|
||||
<option value="{% for b in batches %}{{ b.id }},{% endfor %}">--All Available--</option>
|
||||
{% for strain in strains %}
|
||||
{% if strain.batches_available|length > 0 %}
|
||||
<option value="{{ strain.batches_available|get_value_in_qs:strain }}">{{ strain }}</option>
|
||||
@ -39,9 +39,9 @@ input, label {
|
||||
<div class="col-md-4">
|
||||
<label for="batch-select">Choose a propogation:</label>
|
||||
<select name="batch" id="batch-select" size="10" style="min-width:100%;">
|
||||
{% for batch in batches %}
|
||||
{% for batch in batches|dictsort:"production_date"|dictsort:"strain.name" %}
|
||||
{% if not batch.consumed %}
|
||||
<option value="{{ batch.id }}">{{ batch.id }} {{ batch.production_date|date:"Y-m-d" }}</option>
|
||||
<option value="{{ batch.id }}">{{ batch.strain.name }} -- {{ batch.production_date|date:"Y-m-d" }}</option>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</select>
|
||||
@ -50,6 +50,7 @@ input, label {
|
||||
{% for batch in batches %}
|
||||
{% if not batch.consumed %}
|
||||
<div id="data-{{ batch.id }}" style="display: none;" class="datatable">
|
||||
<h3>{{ batch.strain.manufacturer }}, {{ batch.strain.name }}</h3>
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
|
@ -14,7 +14,7 @@
|
||||
{% block jumbotronsub %}
|
||||
<table class="table table-borderless">
|
||||
<tbody>
|
||||
<tr><th class="fit">{{ batch.strain.manufacturer.name }} {{ batch.strain.name }}</th><td><a href="{% url 'admin:yeast_yeast_change' sample.id %}">{{ sample.id }}</a></td></tr>
|
||||
<tr><th class="fit">{{ batch.strain.manufacturer.name }}, {{ batch.strain.name }}</th><td><a href="{% url 'admin:yeast_yeast_change' sample.id %}">Admin</a></td></tr>
|
||||
<tr><th class="fit">Batch Source</th>
|
||||
<td>{{ batch.get_source_display }}
|
||||
{% if batch.source_batch %}
|
||||
|
Loading…
Reference in New Issue
Block a user