Preparing files for transfer to PyRIGS

This commit is contained in:
Matthew Smith
2019-10-01 13:22:16 +01:00
parent 5aafa36d2a
commit 1e1f3037f8
91 changed files with 0 additions and 0 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>