-
- {% include 'partials/last_edited.html' with target="person_history" %}
+
+
Person | {{ object.name }}
+
+
+
{% endif %}
+
+
+
+
+
+ - Name
+ - {{ object.name }}
+
+ - Phone
+ - {{ object.phone }}
+
+ - Email
+ - {{ object.email }}
+
+ - Address
+ - {{ object.address|linebreaksbr }}
+
+ - Notes
+ - {{ object.notes|linebreaksbr }}
+
+
+
+
+
+
+{% endif %}
{% endblock %}
{% if request.is_ajax %}
diff --git a/assets/templates/asset_list.html b/assets/templates/asset_list.html
index b50b6ff1..51157954 100644
--- a/assets/templates/asset_list.html
+++ b/assets/templates/asset_list.html
@@ -42,22 +42,7 @@
diff --git a/assets/templates/partials/asset_list_table.html b/assets/templates/partials/asset_list_table.html
new file mode 100644
index 00000000..e33c3b7a
--- /dev/null
+++ b/assets/templates/partials/asset_list_table.html
@@ -0,0 +1,36 @@
+
+
+
+
+ | Asset ID |
+ Description |
+ Category |
+ Status |
+ Quick Links |
+
+
+
+ {% for item in object_list %}
+
+ | {{ item.asset_id }} |
+ {{ item.description }} |
+ {{ item.category }} |
+ {{ item.status }} |
+
+
+ |
+
+ {% empty %}
+
+ | Nothing found |
+
+ {% endfor %}
+
+
+
diff --git a/assets/templates/partials/asset_list_table_body.html b/assets/templates/partials/asset_list_table_body.html
deleted file mode 100644
index fbcb9503..00000000
--- a/assets/templates/partials/asset_list_table_body.html
+++ /dev/null
@@ -1,22 +0,0 @@
-{% for item in object_list %}
-
- | {{ item.asset_id }} |
- {{ item.description }} |
- {{ item.category }} |
- {{ item.status }} |
-
-
- |
-
- {% empty %}
-
- |
- Nothing found |
-
-{% endfor %}
diff --git a/assets/templates/supplier_detail.html b/assets/templates/supplier_detail.html
index a7889611..800196e9 100644
--- a/assets/templates/supplier_detail.html
+++ b/assets/templates/supplier_detail.html
@@ -1,73 +1,75 @@
-{% extends 'base_assets.html' %}
+{% extends request.is_ajax|yesno:'base_ajax.html,base_assets.html' %}
{% block title %}Supplier | {{ object.name }}{% endblock %}
{% block content %}
- {% if not request.is_ajax %}
-
-
Supplier | {{ object.name }}
-
-
-
- {% endif %}
-
-
-
Supplier Details
-
-
- - Name
- - {{ object.name }}
-
-
-
-
-
-
-
-
-
-
Associated Assets
-
-
-
-
- | Asset ID |
- Description |
- Category |
- Status |
- Quick Links |
-
-
-
- {% with object.assets.all as object_list %}
- {% include 'partials/asset_list_table_body.html' %}
- {% endwith %}
-
-
-
-
-
-
-
-
{% if not request.is_ajax %}
-
-
-
-
+
+
Supplier | {{ object.name }}
+
+
{% endif %}
+
+
+
+
+ {% with object.assets.all as object_list %}
+ {% include 'partials/asset_list_table.html' %}
+ {% endwith %}
+
+
+
+{% if not request.is_ajax %}
+
+
+
+ {% include 'partials/last_edited.html' with target="supplier_history" %}
+
+
+{% endif %}
{% endblock %}
+{% if request.is_ajax %}
+{% block footer %}
+
+
+
+ {% include 'partials/last_edited.html' with target="supplier_history" %}
+
+
+{% endblock %}
+{% endif %}