From 899e33da6133c74fa569c783b85c0fb7cbe21969 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Vigan=C3=B2?= Date: Wed, 13 Jul 2022 20:40:42 +0200 Subject: [PATCH] Move properties under model and class sections --- ram/portal/templates/includes/header.html | 7 +++ ram/portal/templates/page.html | 52 ++++++++++++------- ram/portal/views.py | 12 ++++- ram/ram/__init__.py | 2 +- ...ingclassproperty_rolling_class_and_more.py | 24 +++++++++ ram/roster/models.py | 2 + 6 files changed, 78 insertions(+), 21 deletions(-) create mode 100644 ram/portal/templates/includes/header.html create mode 100644 ram/roster/migrations/0006_alter_rollingclassproperty_rolling_class_and_more.py diff --git a/ram/portal/templates/includes/header.html b/ram/portal/templates/includes/header.html new file mode 100644 index 0000000..a8f5c09 --- /dev/null +++ b/ram/portal/templates/includes/header.html @@ -0,0 +1,7 @@ +
+
+
+ {% block header_content %}{% endblock %} +
+
+
diff --git a/ram/portal/templates/page.html b/ram/portal/templates/page.html index 9a9074c..037d6e8 100644 --- a/ram/portal/templates/page.html +++ b/ram/portal/templates/page.html @@ -29,7 +29,6 @@ {% if rolling_stock.decoder %}{% endif %} {% if rolling_stock.notes %}{% endif %} - {% if properties.count > 0 %}{% endif %} {% if rolling_stock.document.count > 0 %}{% endif %} @@ -139,6 +138,23 @@ + {% if rolling_stock_properties %} + + + + + + + + {% for p in rolling_stock_properties %} + + + + + {% endfor %} + +
Properties
{{ p.property }}{{ p.value }}
+ {% endif %}