mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-02-24 23:28:23 +00:00
Working asset edit/create template
This commit is contained in:
16
templates/asset_update_search_results.html
Normal file
16
templates/asset_update_search_results.html
Normal 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>
|
||||
Reference in New Issue
Block a user