-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
140 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
# generated by appcreator | ||
from django.contrib import admin | ||
from .models import ( | ||
Court, | ||
CourtDecission, | ||
KeyWord, | ||
PartialLegalSystem, | ||
Person, | ||
) | ||
from .models import Court, CourtDecission, KeyWord, PartialLegalSystem, Person, Tag | ||
|
||
admin.site.register(Court) | ||
admin.site.register(CourtDecission) | ||
admin.site.register(KeyWord) | ||
admin.site.register(PartialLegalSystem) | ||
admin.site.register(Person) | ||
admin.site.register(Person), | ||
admin.site.register(Tag) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Generated by Django 4.2.4 on 2023-10-24 05:50 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("archiv", "0010_tag_courtdecission_tag"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name="tag", | ||
options={"ordering": ["tag"], "verbose_name": "Tag"}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{% extends "webpage/base.html" %} | ||
{% load static %} | ||
{% load webpage_extras %} | ||
{% block title %}{{ object.name }}{% endblock %} | ||
{% block content %} | ||
<!-- <div class="container"> --> | ||
|
||
<div class="card"> | ||
<div class="card-header"> | ||
<div class="row"> | ||
<div class="col-md-2"> | ||
{% if object.get_prev %} | ||
<p class="text-start"> | ||
<a href="{{ object.get_prev }}"> | ||
<i class="bi bi-chevron-left" title="previous entry"></i> | ||
</a> | ||
</p> | ||
{% endif %} | ||
</div> | ||
<div class="col-md-8"> | ||
<h1 class="text-center"> | ||
<small><a href="{{ object.get_listview_url }}"><i class="bi bi-list" | ||
title="back to list view"></i></a></small> | ||
{{ object }} | ||
{% if user.is_authenticated %} | ||
<small> | ||
<a href="{{ object.get_edit_url }}"> | ||
<i class="bi bi-pencil-square" title="edit entry"></i> | ||
</a> | ||
</small> | ||
{% endif %} | ||
|
||
</h1> | ||
</div> | ||
<div class="col-md-2"> | ||
<p class="text-end"> | ||
{% if object.get_next %} | ||
<a href="{{ object.get_next }}"> | ||
<i class="bi bi-chevron-right" title="next entry"></i> | ||
</a> | ||
</p> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
<div class="card-body container"> | ||
{% with courtdecissions=object.has_related_keywords %} | ||
<h2>{{ courtdecissions.count }} Tagged Court Decissions</h2> | ||
{% include "archiv/partials/courtdecission_table.html" %} | ||
{% endwith %} | ||
|
||
|
||
|
||
</div> | ||
{% if user.is_authenticated %} | ||
<div class="card-footer"> | ||
<div class="float-end"> | ||
<a href="{{ object.get_delete_url }}"> | ||
<i class="bi bi-trash3" title="delete entry"></i> | ||
</a> | ||
</div> | ||
</div> | ||
{% endif %} | ||
</div> | ||
|
||
{% endblock %} | ||
{% block scripts2 %} | ||
{% include "archiv/partials/courtdecission_table_js.html" %} | ||
{% endblock scripts2 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters