diff --git a/archiv/migrations/0021_alter_courtdecission_tag.py b/archiv/migrations/0021_alter_courtdecission_tag.py
new file mode 100644
index 0000000..c7e63de
--- /dev/null
+++ b/archiv/migrations/0021_alter_courtdecission_tag.py
@@ -0,0 +1,23 @@
+# Generated by Django 5.0 on 2024-07-19 13:22
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ("archiv", "0020_keyword_linked_to_cases_and_more"),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name="courtdecission",
+ name="tag",
+ field=models.ManyToManyField(
+ blank=True,
+ help_text="Tags",
+ related_name="has_related_tags",
+ to="archiv.tag",
+ verbose_name="Tags",
+ ),
+ ),
+ ]
diff --git a/archiv/migrations/0022_alter_courtdecission_tag.py b/archiv/migrations/0022_alter_courtdecission_tag.py
new file mode 100644
index 0000000..283a816
--- /dev/null
+++ b/archiv/migrations/0022_alter_courtdecission_tag.py
@@ -0,0 +1,23 @@
+# Generated by Django 5.0 on 2024-07-19 13:23
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ("archiv", "0021_alter_courtdecission_tag"),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name="courtdecission",
+ name="tag",
+ field=models.ManyToManyField(
+ blank=True,
+ help_text="Tags",
+ related_name="has_related_decisions",
+ to="archiv.tag",
+ verbose_name="Tags",
+ ),
+ ),
+ ]
diff --git a/archiv/models.py b/archiv/models.py
index 6725de5..369a4f6 100644
--- a/archiv/models.py
+++ b/archiv/models.py
@@ -368,7 +368,7 @@ class CourtDecission(models.Model):
)
tag = models.ManyToManyField(
"Tag",
- related_name="has_related_keywords",
+ related_name="has_related_decisions",
blank=True,
verbose_name="Tags",
help_text="Tags",
diff --git a/archiv/templates/archiv/court_detail.html b/archiv/templates/archiv/court_detail.html
index 38c79a8..03cf6ca 100644
--- a/archiv/templates/archiv/court_detail.html
+++ b/archiv/templates/archiv/court_detail.html
@@ -20,8 +20,6 @@
-
{{ object.abbreviation }}
{% if user.is_authenticated %}
diff --git a/archiv/templates/archiv/keyword_detail.html b/archiv/templates/archiv/keyword_detail.html
index 2efd714..2800415 100644
--- a/archiv/templates/archiv/keyword_detail.html
+++ b/archiv/templates/archiv/keyword_detail.html
@@ -28,8 +28,6 @@
-
{{ object.name }}
{% if user.is_authenticated %}
diff --git a/archiv/templates/archiv/partials/courtdecission_table.html b/archiv/templates/archiv/partials/courtdecission_table.html
deleted file mode 100644
index e1d1c7a..0000000
--- a/archiv/templates/archiv/partials/courtdecission_table.html
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
- ID |
- Court |
- Legal System |
- Keywords |
- Date |
-
-
-
- {% for x in courtdecissions.all %}
-
- {{ x.id }} |
-
- {{ x.court }}
-
- |
-
- {{ x.partial_legal_system }}
-
- |
-
-
- {% for y in x.keyword.all %}
- -
- {{ y }}
-
- {% endfor %}
-
-
- |
- {{ x.decission_date|date:"Y-m-d" }} |
-
- {% endfor %}
-
-
-
\ No newline at end of file
diff --git a/archiv/templates/archiv/partials/detailview_title.html b/archiv/templates/archiv/partials/detailview_title.html
index 17f954b..3632e5a 100644
--- a/archiv/templates/archiv/partials/detailview_title.html
+++ b/archiv/templates/archiv/partials/detailview_title.html
@@ -12,8 +12,6 @@
-
{{ object }}
{% if user.is_authenticated %}
diff --git a/archiv/templates/archiv/tag_detail.html b/archiv/templates/archiv/tag_detail.html
index 44ab325..b4dbda7 100644
--- a/archiv/templates/archiv/tag_detail.html
+++ b/archiv/templates/archiv/tag_detail.html
@@ -1,34 +1,120 @@
{% extends "webpage/base.html" %}
{% load static %}
{% load webpage_extras %}
-{% block title %}{{ object.name }}{% endblock %}
+{% block title %}{{ object }}{% endblock %}
{% block content %}
{% include 'archiv/partials/detailview_breadcrumb.html' %}
-
-
-
- {% with courtdecissions=object.has_related_keywords %}
-
{{ courtdecissions.count }} Tagged Court Decissions
- {% include "archiv/partials/courtdecission_table.html" %}
- {% endwith %}
+{% include 'archiv/partials/detailview_title.html' %}
+
+
+ {% with courtdecissions=object.has_related_decisions %}
+
{{ courtdecissions.count }} case(s)
+
+
+
+ Date |
+ Court |
+ Case Reference |
+ Subject matter |
+ Legal system |
+ Keywords |
+
+
+
+ {% for x in courtdecissions.all %}
+
+ {{ x.decission_date|date:"Y-m-d" }} |
+
+ {{ x.court }}
+
+ |
+ {{ x.case_reference }} |
+ {{ x.short_description|safe }} |
+
+ {{ x.partial_legal_system }}
+
+ |
+
+
+ {% for y in x.keyword.all %}
+ -
+ {{ y.name }}
+
+ {% endfor %}
+
+ |
+
+ {% endfor %}
+
+
+
+{% endwith %}
+{% if user.is_authenticated %}
+
- {% if user.is_authenticated %}
-
- {% endif %}
+{% endif %}
+
{% endblock %}
{% block scripts2 %}
{% include "archiv/partials/courtdecission_table_js.html" %}
+
{% endblock scripts2 %}