From c34aff6eaf9f53146e4714054171b235955df22e Mon Sep 17 00:00:00 2001 From: David Morris Date: Mon, 3 Jun 2024 22:27:38 +0100 Subject: [PATCH] Fixing tables --- templates/cmp/cemeteries.html | 6 +-- templates/cmp/edit-cemeteries.html | 24 +++++------ templates/cmp/edit-companies.html | 27 ++++++------ templates/cmp/edit-countries.html | 11 ++--- templates/cmp/search-cemeteries.html | 42 ++++++++++++------- templates/cmp/search-companies.html | 32 +++++++++----- templates/cmp/search-countries.html | 27 ++++++++---- templates/cmp/search-decorations.html | 27 +++++++++--- .../cmp/search-prisoner-of-war-camps.html | 27 +++++++++--- templates/cmp/search-ranks.html | 28 +++++++++---- 10 files changed, 166 insertions(+), 85 deletions(-) diff --git a/templates/cmp/cemeteries.html b/templates/cmp/cemeteries.html index 2dc1c0c..f3b7a37 100644 --- a/templates/cmp/cemeteries.html +++ b/templates/cmp/cemeteries.html @@ -3,6 +3,7 @@ {% block title %}Cemeteries {% endblock %} {% block content %} +

Cemeteries

@@ -27,6 +28,5 @@

Cemeteries

{% endfor %}
- - -{% endblock %} \ No newline at end of file +{% endblock %} +
\ No newline at end of file diff --git a/templates/cmp/edit-cemeteries.html b/templates/cmp/edit-cemeteries.html index 83b9dba..cfbcb9b 100644 --- a/templates/cmp/edit-cemeteries.html +++ b/templates/cmp/edit-cemeteries.html @@ -3,16 +3,16 @@ {% block title %}Cemeteries Form{% endblock %} {% block content %} -

Edit Cemetery

-
-
- {% csrf_token %} - {{ form.management_form }} - {{ form.errors }} - {{form | crispy}} - -
- +
+

Edit Cemetery

+
+
+ {% csrf_token %} + {{ form.management_form }} + {{ form.errors }} + {{form | crispy}} + +
- -{% endblock %} \ No newline at end of file + {% endblock %} +
\ No newline at end of file diff --git a/templates/cmp/edit-companies.html b/templates/cmp/edit-companies.html index dbf460a..4edfe88 100644 --- a/templates/cmp/edit-companies.html +++ b/templates/cmp/edit-companies.html @@ -1,17 +1,20 @@ {% extends "base.html" %} {% load static crispy_forms_tags %} -{% block title %}Decorations Form{% endblock %} +{% block title %}Companies Form{% endblock %} {% block content %} -

Edit Decoration

-
-
- {% csrf_token %} - {{ form.management_form }} - {{ form.errors }} - {{form | crispy}} - -
-
+
+

Edit Companies

-{% endblock %} \ No newline at end of file +
+
+ {% csrf_token %} + {{ form.management_form }} + {{ form.errors }} + {{form | crispy}} + +
+
+ +{% endblock %} +
\ No newline at end of file diff --git a/templates/cmp/edit-countries.html b/templates/cmp/edit-countries.html index 74cccf5..38406ff 100644 --- a/templates/cmp/edit-countries.html +++ b/templates/cmp/edit-countries.html @@ -3,7 +3,8 @@ {% block title %}Country Form{% endblock %} {% block content %} -

Edit Country Details

+
+

Edit Country Details

@@ -11,9 +12,9 @@

Edit Country Details

{{ form.management_form }} {{ form.errors }} {{form | crispy}} - +
+
-
- -{% endblock %} \ No newline at end of file +{% endblock %} +
\ No newline at end of file diff --git a/templates/cmp/search-cemeteries.html b/templates/cmp/search-cemeteries.html index 03b8b7e..01d41a6 100644 --- a/templates/cmp/search-cemeteries.html +++ b/templates/cmp/search-cemeteries.html @@ -3,23 +3,35 @@ {% block title %}Cemeteries{% endblock %} {% block content %} -

Search Cemeteries

+
+

Search Cemeteries

-
-
- - -
-
+
+
+ + +
+
-
-{% for cemetery in cemeteries %} -

- {{ cemetery.name }} -

-{% endfor %} -
+
+ + + + + + + + + {% for cemetery in cemeteries %} + + + + + + {% endfor %} + -{% endblock %} \ No newline at end of file +{% endblock %} + \ No newline at end of file diff --git a/templates/cmp/search-companies.html b/templates/cmp/search-companies.html index 650d4ba..107b7cc 100644 --- a/templates/cmp/search-companies.html +++ b/templates/cmp/search-companies.html @@ -3,7 +3,8 @@ {% block title %}Companies{% endblock %} {% block content %} -

Search Companies

+
+

Search Companies

@@ -13,17 +14,26 @@

Search Companies

-{% for company in page_obj %} -

- - {{ company.name}} -

-{% endfor %} -
+
NAMECOUNTRY
{{ cemetery.name }}{{ cemetery.country.name }} {{cemetery.country.flag}}
+ + + + + + + + {% for company in page_obj %} + + + + + + {% endfor %} +
NAME
{{ company.name }}
+

Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}

- {% if page_obj.has_previous %} Previous {% endif %} @@ -32,4 +42,6 @@

Search Companies

Next {% endif %} -{% endblock %} \ No newline at end of file +{% endblock %} +
+kk \ No newline at end of file diff --git a/templates/cmp/search-countries.html b/templates/cmp/search-countries.html index c8e94ed..d989235 100644 --- a/templates/cmp/search-countries.html +++ b/templates/cmp/search-countries.html @@ -3,7 +3,8 @@ {% block title %}Countries{% endblock %} {% block content %} -

Search Countries

+
+

Search Countries

@@ -12,13 +13,25 @@

Search Countries

+
+ + + + + + + + {% for country in countries %} -

- {{ country.name }} -

+ + + + + {% endfor %} +
NAMEFLAG
{{ country.name }}{{ country.flag }}
+
- - -{% endblock %} \ No newline at end of file +{% endblock %} +
\ No newline at end of file diff --git a/templates/cmp/search-decorations.html b/templates/cmp/search-decorations.html index 47cf8a1..095b543 100644 --- a/templates/cmp/search-decorations.html +++ b/templates/cmp/search-decorations.html @@ -3,7 +3,8 @@ {% block title %}Decorations{% endblock %} {% block content %} -

Search Decorations

+
+

Search Decorations

@@ -13,12 +14,23 @@

Search Decorations

+ + + + + + + + + {% for decoration in page_obj %} -

- - {{ decoration.name}} {{ decoration.country.name }} {{ decoration.country.flag }} -

+ + + + + {% endfor %} +
NAMECOUNTRY
{{ decoration.name }}{{ decoration.country.flag }} {{ decoration.country.name }}

Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}

@@ -27,6 +39,7 @@

Search Decorations

{% endfor %} + {% if page_obj.has_previous %} Previous {% endif %} @@ -34,5 +47,7 @@

Search Decorations

{% if page_obj.has_next %} Next {% endif %} +
-{% endblock %} \ No newline at end of file +{% endblock %} +
\ No newline at end of file diff --git a/templates/cmp/search-prisoner-of-war-camps.html b/templates/cmp/search-prisoner-of-war-camps.html index 76e534e..2331e27 100644 --- a/templates/cmp/search-prisoner-of-war-camps.html +++ b/templates/cmp/search-prisoner-of-war-camps.html @@ -3,19 +3,34 @@ {% block title %}Countries{% endblock %} {% block content %} -

Search Prisoner of War Camps

+
+

Search Prisoner of War Camps

- +
+
+ + + + + + + + {% for powcamp in powcamps %} -

- {{ powcamp.name }} -

+ + + + + + + {% endfor %} -{% endblock %} \ No newline at end of file +{% endblock %} + \ No newline at end of file diff --git a/templates/cmp/search-ranks.html b/templates/cmp/search-ranks.html index 980fbfd..ac28b60 100644 --- a/templates/cmp/search-ranks.html +++ b/templates/cmp/search-ranks.html @@ -3,7 +3,8 @@ {% block title %}Ranks{% endblock %} {% block content %} -

Search Ranks

+
+

Search Ranks

@@ -12,12 +13,21 @@

Search Ranks

-{% for rank in ranks%} -

- {{ rank.name }} -

-{% endfor %} +
+
NAMECOUNTRY
{{ powcamp.name }}{{ powcamp.country.flag }} {{ powcamp.country.name }}
+ + + + + + + {% for rank in ranks%} + + + + + {% endfor %} + - - -{% endblock %} \ No newline at end of file +{% endblock %} + \ No newline at end of file
NAME
{{ rank.name}}