Display and edit build URL field

This commit is contained in:
Oliver Walters 2019-04-30 14:04:43 +10:00
parent 395db4df38
commit a3d4c81939
2 changed files with 7 additions and 1 deletions

View File

@ -21,6 +21,7 @@ class EditBuildForm(HelperForm):
'part', 'part',
'quantity', 'quantity',
'batch', 'batch',
'URL',
'notes', 'notes',
'status', 'status',
# 'completion_date', # 'completion_date',

View File

@ -38,14 +38,19 @@
<tr> <tr>
<td>Quantity</td><td>{{ build.quantity }}</td> <td>Quantity</td><td>{{ build.quantity }}</td>
</tr> </tr>
<tr>
<td>Status</td><td>{% include "build_status.html" with build=build %}</td>
</tr>
{% if build.batch %} {% if build.batch %}
<tr> <tr>
<td>Batch</td><td>{{ build.batch }}</td> <td>Batch</td><td>{{ build.batch }}</td>
</tr> </tr>
{% endif %} {% endif %}
{% if build.URL %}
<tr> <tr>
<td>Status</td><td>{% include "build_status.html" with build=build %}</td> <td>URL</td><td><a href="{{ build.URL }}">{{ build.URL }}</a></td>
</tr> </tr>
{% endif %}
<tr> <tr>
<td>Created</td><td>{{ build.creation_date }}</td> <td>Created</td><td>{{ build.creation_date }}</td>
</tr> </tr>