diff --git a/app/server/templates/admin/admin_base.html b/app/server/templates/admin/admin_base.html index 79ad47c7..34756194 100644 --- a/app/server/templates/admin/admin_base.html +++ b/app/server/templates/admin/admin_base.html @@ -8,7 +8,7 @@
+ {% block content-area %}{% endblock %}
{% endblock %} \ No newline at end of file diff --git a/app/server/templates/admin/dataset.html b/app/server/templates/admin/dataset.html new file mode 100644 index 00000000..c5e39110 --- /dev/null +++ b/app/server/templates/admin/dataset.html @@ -0,0 +1,18 @@ +{% extends "admin/admin_base.html" %} {% load static %} {% block content-area %} + + + + + + + + + {% for doc in project.documents.all %} + + + + + {% endfor %} + +
TextLabel
{{ doc.text|truncatechars:100 }}label
+{% endblock %} \ No newline at end of file diff --git a/app/server/views.py b/app/server/views.py index 47f2e5c9..a5455437 100644 --- a/app/server/views.py +++ b/app/server/views.py @@ -47,7 +47,7 @@ class ProjectsView(LoginRequiredMixin, ListView): class DatasetView(LoginRequiredMixin, DetailView): model = Project - template_name = 'admin/admin_base.html' + template_name = 'admin/dataset.html' class RawDataAPI(View):