From 44f9509eda18562cd22ef76a03dbe5a6c3ec2e66 Mon Sep 17 00:00:00 2001 From: FreneticScribbler Date: Wed, 8 Sep 2021 15:41:14 +0100 Subject: [PATCH] Make very long asset children lists scroll --- assets/templates/asset_form.html | 2 +- assets/templates/partials/parent_form.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/templates/asset_form.html b/assets/templates/asset_form.html index 905d3942..57766f98 100644 --- a/assets/templates/asset_form.html +++ b/assets/templates/asset_form.html @@ -34,7 +34,7 @@ }) .ajaxSelectPicker({ ajax: { - url: '{% url 'asset_search_json' %}', + url: "{% url 'asset_search_json' %}", type: "GET", data: function () { let params = { diff --git a/assets/templates/partials/parent_form.html b/assets/templates/partials/parent_form.html index 8ca9bc41..27c562c5 100644 --- a/assets/templates/partials/parent_form.html +++ b/assets/templates/partials/parent_form.html @@ -28,13 +28,13 @@
Children
{% if object.asset_parent.all %} +
{% for child in object.asset_parent.all %}
- - {{ child.asset_id }} - {{ child.description }} - + {{ child }}
{% endfor %} +
{% else %}
-
{% endif %}