diff --git a/training/templates/training/profile_detail.html b/training/templates/training/profile_detail.html
index be120a88..39b28631 100644
--- a/training/templates/training/profile_detail.html
+++ b/training/templates/training/profile_detail.html
@@ -1,63 +1,9 @@
{% extends 'base.html' %}
-{% load training_extras %}
{% block title %}{{ profile }} Training{% endblock %}
{% block content %}
Training Profile for {{ profile }}
- {% for category in categories %}
-
-
-
{{ category }}
-
-
-
- | Item |
- Started |
- Complete |
- Assessed |
-
-
-
- {% for item in category.trainingitem_set.all %}
- {% with record=item|item_record:request.user %}
-
- | {{ record.training_item }} |
-
- {{ record.started_date|default_if_none:"No" }} {{ record.started_trainer|default_if_none:"" }}
- {% if record.started_notes %}
- {{ record.started_notes }}
- {% endif %}
- |
-
- {{ record.completed_date|default_if_none:"No" }} {{ record.completed_trainer|default_if_none:"" }}
- {% if record.completed_notes %}
- {{ record.completed_notes }}
- {% endif %}
- |
-
- {{ record.assessed_date|default_if_none:"No" }} {{ record.assessed_trainer|default_if_none:"" }}
- {% if record.assessed_notes %}
- {{ record.assessed_notes }}
- {% endif %}
- |
-
- {% endwith %}
- {% endfor %}
-
-
-
-
- {% endfor %}
+ {% include "training/profile_detail_table.html" %}
{% endblock %}
\ No newline at end of file
diff --git a/training/templates/training/profile_detail_table.html b/training/templates/training/profile_detail_table.html
new file mode 100644
index 00000000..8854791e
--- /dev/null
+++ b/training/templates/training/profile_detail_table.html
@@ -0,0 +1,7 @@
+{% for category in categories %}
+
+
+ {% include "training/trainingcategory_item_table.html" %}
+
+
+{% endfor %}
\ No newline at end of file
diff --git a/training/templates/training/trainingcategory_item_table.html b/training/templates/training/trainingcategory_item_table.html
new file mode 100644
index 00000000..b14f501b
--- /dev/null
+++ b/training/templates/training/trainingcategory_item_table.html
@@ -0,0 +1,20 @@
+{% load training_extras %}
+
+{{ category }}
+
+
+
+ | Item |
+ Started |
+ Complete |
+ Assessed |
+
+
+
+ {% for item in category.trainingitem_set.all %}
+ {% with record=item|item_record:request.user %}
+ {% include "training/trainingitem_detail_row.html" %}
+ {% endwith %}
+ {% endfor %}
+
+
\ No newline at end of file
diff --git a/training/templates/training/trainingitem_detail_row.html b/training/templates/training/trainingitem_detail_row.html
new file mode 100644
index 00000000..41c1af71
--- /dev/null
+++ b/training/templates/training/trainingitem_detail_row.html
@@ -0,0 +1,31 @@
+
+ | {{ record.training_item }} |
+
+ {{ record.started_date|default_if_none:"No" }} {{ record.started_trainer|default_if_none:"" }}
+ {% if record.started_notes %}
+ {{ record.started_notes }}
+ {% endif %}
+ |
+
+ {{ record.completed_date|default_if_none:"No" }} {{ record.completed_trainer|default_if_none:"" }}
+ {% if record.completed_notes %}
+ {{ record.completed_notes }}
+ {% endif %}
+ |
+
+ {{ record.assessed_date|default_if_none:"No" }} {{ record.assessed_trainer|default_if_none:"" }}
+ {% if record.assessed_notes %}
+ {{ record.assessed_notes }}
+ {% endif %}
+ |
+
\ No newline at end of file