Asset list/CRUD template updates

This commit is contained in:
2020-03-16 21:45:04 +00:00
parent e0e4e8d11e
commit 88b34740f6
13 changed files with 126 additions and 182 deletions

View File

@@ -3,20 +3,7 @@
<option value="{{object.parent.pk}}" selected>{{object.parent.description}}</option>
{% endif %}
</select>
{% load static %}
{% block css %}
<link rel="stylesheet" href="{% static "css/bootstrap-select.min.css" %}"/>
<link rel="stylesheet" href="{% static "css/ajax-bootstrap-select.css" %}"/>
{% endblock %}
{% block preload_js %}
<script src="{% static "js/bootstrap-select.js" %}"></script>
<script src="{% static "js/ajax-bootstrap-select.js" %}"></script>
{% endblock %}
{% block js %}
{{ js.super }}
<script>
$('#parent_id')
.selectpicker({
@@ -56,10 +43,10 @@ $('#parent_id')
'text': "No parent"
});
}
return assets;
},
preserveSelected: false
});
</script>
{% endblock js %}
{% endblock js %}