Create the Asset Database (#363)

This commit is contained in:
2019-12-04 23:14:27 +00:00
committed by David Taylor
parent 5210afc772
commit 4f036af85a
97 changed files with 2577 additions and 344 deletions

View File

@@ -0,0 +1,16 @@
{% for asset in object_list %}
<a href="javascript:void(0);" onclick="insertInParentField({{ asset.pk }}, '{{ asset }}')">
{{ asset.asset_id }} - {{ asset.description }}
</a>
<br>
{% empty %}
No assets match given ID
{% endfor %}
<script>
function insertInParentField(pk, str) {
$('#hidden_parent_id').val(pk);
$('#parent_id').val(str);
M.updateTextFields();
}
</script>