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',
'quantity',
'batch',
'URL',
'notes',
'status',
# 'completion_date',

View File

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