diff --git a/ram/portal/templates/includes/documents.html b/ram/portal/templates/_includes/documents.html
similarity index 100%
rename from ram/portal/templates/includes/documents.html
rename to ram/portal/templates/_includes/documents.html
diff --git a/ram/portal/templates/includes/footer.html b/ram/portal/templates/_includes/footer.html
similarity index 100%
rename from ram/portal/templates/includes/footer.html
rename to ram/portal/templates/_includes/footer.html
diff --git a/ram/portal/templates/includes/header.html b/ram/portal/templates/_includes/header.html
similarity index 100%
rename from ram/portal/templates/includes/header.html
rename to ram/portal/templates/_includes/header.html
diff --git a/ram/portal/templates/includes/login.html b/ram/portal/templates/_includes/login.html
similarity index 100%
rename from ram/portal/templates/includes/login.html
rename to ram/portal/templates/_includes/login.html
diff --git a/ram/portal/templates/includes/search.html b/ram/portal/templates/_includes/search.html
similarity index 100%
rename from ram/portal/templates/includes/search.html
rename to ram/portal/templates/_includes/search.html
diff --git a/ram/portal/templates/includes/symbols.html b/ram/portal/templates/_includes/symbols.html
similarity index 100%
rename from ram/portal/templates/includes/symbols.html
rename to ram/portal/templates/_includes/symbols.html
diff --git a/ram/portal/templates/_modules/documents.html b/ram/portal/templates/_modules/documents.html
new file mode 100644
index 0000000..4331c67
--- /dev/null
+++ b/ram/portal/templates/_modules/documents.html
@@ -0,0 +1,26 @@
+ {% if documents %}
+
- {% include "includes/documents.html" %}
+ {% include "_modules/documents.html" %}
diff --git a/ram/portal/templates/rollingstock.html b/ram/portal/templates/rollingstock.html
index 3cdee98..4f71c97 100644
--- a/ram/portal/templates/rollingstock.html
+++ b/ram/portal/templates/rollingstock.html
@@ -217,49 +217,8 @@
{% endif %}
- {% if request.user.is_staff %}
-
-
-
- | Purchase |
-
-
-
-
- | Shop |
-
- {{ rolling_stock.shop | default:"-" }}
- {% if rolling_stock.shop.website %} {% endif %}
- |
-
-
- | Purchase date |
- {{ rolling_stock.purchase_date | default:"-" }} |
-
-
- | Price ({{ site_conf.currency }}) |
- {{ rolling_stock.price | default:"-" }} |
-
-
-
- {% endif %}
- {% if properties %}
-
-
-
- | Properties |
-
-
-
- {% for p in properties %}
-
- | {{ p.property }} |
- {{ p.value }} |
-
- {% endfor %}
-
-
- {% endif %}
+ {% include "_modules/purchase_data.html" with data=rolling_stock %}
+ {% include "_modules/properties.html" %}
@@ -296,23 +255,7 @@
{% endif %}
- {% if class_properties %}
-
-
-
- | Properties |
-
-
-
- {% for p in class_properties %}
-
- | {{ p.property }} |
- {{ p.value }} |
-
- {% endfor %}
-
-
- {% endif %}
+ {% include "_modules/properties.html" with properties=class_properties %}
- {% include "includes/documents.html" %}
- {% include "includes/documents.html" with documents=decoder_documents header="Decoder documents" %}
+ {% include "_modules/documents.html" %}
+ {% include "_modules/documents.html" with documents=decoder_documents header="Decoder documents" %}