From 789d906de19dcedbe7db6696d09e761a06e1e661 Mon Sep 17 00:00:00 2001 From: Birger Schacht Date: Tue, 3 Oct 2023 16:06:25 +0200 Subject: [PATCH] feat: cleanup the default entity detail and edit view This commit reduces borders around elements in the `General Info` table in the detail view and in the edit form in the edit view. --- .../detail_views/detail_generic.html | 6 +- .../templates/apis_entities/edit_generic.html | 139 +++++++++--------- 2 files changed, 70 insertions(+), 75 deletions(-) diff --git a/apis_core/apis_entities/templates/apis_entities/detail_views/detail_generic.html b/apis_core/apis_entities/templates/apis_entities/detail_views/detail_generic.html index 121686a83..faa9b3fa8 100644 --- a/apis_core/apis_entities/templates/apis_entities/detail_views/detail_generic.html +++ b/apis_core/apis_entities/templates/apis_entities/detail_views/detail_generic.html @@ -106,10 +106,10 @@

-
+
{% block info-table %} - +
@@ -174,7 +174,7 @@

{% endblock info-table %} {% block info-metadata %} -

Titel {{ object.name }}
+
diff --git a/apis_core/apis_entities/templates/apis_entities/edit_generic.html b/apis_core/apis_entities/templates/apis_entities/edit_generic.html index b1d609a6e..35e827728 100644 --- a/apis_core/apis_entities/templates/apis_entities/edit_generic.html +++ b/apis_core/apis_entities/templates/apis_entities/edit_generic.html @@ -68,82 +68,80 @@

{% endif %} -
- {% crispy form %} - -
-
-
- - {% block linkedOpenData %} + {% crispy form %} + +
+
+
- {% if object_lod %} -
- -
-
-

- {% for lod in object_lod %} - - {% if forloop.last %} - {{ lod.uri }} - {% else %} - {{ lod.uri }} -
- {% endif %} - - {% endfor %} -

-
+ {% block linkedOpenData %} + + {% if object_lod %} +
+ +
+
+

+ {% for lod in object_lod %} + + {% if forloop.last %} + {{ lod.uri }} + {% else %} + {{ lod.uri }} +
+ {% endif %} + + {% endfor %} +

- {% endif %} +
+ {% endif %} - {% endblock %} + {% endblock %} - {% block editbuttons %} + {% block editbuttons %} - {% if instance %} - - - Delete - Create new {{ entity_type|title }} - {% else %} - - {% endif %} + {% if instance %} + + + Delete + Create new {{ entity_type|title }} + {% else %} + + {% endif %} - {% endblock editbuttons %} + {% endblock editbuttons %} -
@@ -161,10 +159,7 @@

-
+
{% block additional_accordion %}

Source {{ object.source }}