+
+
+ {% if field.field.choices %} {# Display the selected choice text value #}
+ {% for id, value in field.field.choices %}
+
+ {% if field.value == id %}
+
+ {{ value }}
+
+ {% endif %}
+
+ {%endfor%}
+
+ {% else %}
+ {{ field.value }}
+ {% endif %}
+
+
+
+{% endif %}
diff --git a/app/templates/content/section.html.j2 b/app/templates/content/section.html.j2
new file mode 100644
index 00000000..c6c18bd1
--- /dev/null
+++ b/app/templates/content/section.html.j2
@@ -0,0 +1,93 @@
+{% load json %}
+{% load markdown %}
+
+{% for section in tab.sections %}
+
+
+ {% if forloop.first %}
+
+
{{ tab.name }}
+
+ {% else %}
+
+
+
{{ section.name }}
+
+ {% endif %}
+
+
+
+ {% if section.layout == 'single' %}
+
+ {% for section_field in section.fields %}
+ {% for field in form %}
+
+ {% if field.name in section_field %}
+
+ {% include 'content/field.html.j2' %}
+
+ {% endif %}
+
+ {% endfor %}
+ {% endfor %}
+
+ {% elif section.layout == 'double' %}
+
+ {% if section.left %}
+
+
+
+ {% for section_field in section.left %}
+ {% for field in form %}
+
+ {% if field.name in section_field %}
+
+ {% include 'content/field.html.j2' %}
+
+ {% endif %}
+
+ {% endfor %}
+ {% endfor %}
+
+
+
+ {% endif %}
+
+
+ {% if section.right %}
+
+
+
+ {% for section_field in section.right %}
+ {% for field in form %}
+
+ {% if field.name in section_field %}
+
+ {% include 'content/field.html.j2' %}
+
+ {% endif %}
+
+ {% endfor %}
+ {% endfor %}
+
+
+
+{% block tabs %}{% endblock %}
+
+{% endblock %}
\ No newline at end of file
diff --git a/docs/projects/centurion_erp/development/media/layout-template-view-base.png b/docs/projects/centurion_erp/development/media/layout-template-view-base.png
new file mode 100644
index 00000000..f5668551
Binary files /dev/null and b/docs/projects/centurion_erp/development/media/layout-template-view-base.png differ
diff --git a/docs/projects/centurion_erp/development/media/layout-template-view-detail.drawio b/docs/projects/centurion_erp/development/media/layout-template-view-detail.drawio
new file mode 100644
index 00000000..189d742c
--- /dev/null
+++ b/docs/projects/centurion_erp/development/media/layout-template-view-detail.drawio
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/projects/centurion_erp/development/media/layout-template-view-detail.png b/docs/projects/centurion_erp/development/media/layout-template-view-detail.png
new file mode 100644
index 00000000..ef245ff6
Binary files /dev/null and b/docs/projects/centurion_erp/development/media/layout-template-view-detail.png differ
diff --git a/docs/projects/centurion_erp/development/templates.md b/docs/projects/centurion_erp/development/templates.md
index 5758fc9b..36d5cf04 100644
--- a/docs/projects/centurion_erp/development/templates.md
+++ b/docs/projects/centurion_erp/development/templates.md
@@ -7,3 +7,51 @@ about: https://gitlab.com/nofusscomputing/infrastructure/configuration-managemen
---
This section of the documentation contains the details related to the templates used within Centurion ERP for rendering data for the end user to view.
+The base template is common to all templates and is responsible for the rendering of the common layout. Each subsequent template includes this template. This enables **ALL** pages within the site to share the same layout.
+
+
+
+Point of note is that the orange area of the template is what each template is "filling out."
+
+This view contains the following areas:
+
+- Page Header
+- Navigation
+- Page Title
+- Content Area
+- Page footer
+
+!!! note
+ This template should not be included directly as it is incomplete and requires subsequent templates to populate the contents of the orange area.
+
+
+## Detail
+
+This template is intended to be used to render the details of a single model. The layout of the detail view is as follows:
+
+
+
+This view contains the following areas:
+
+- Section navigation tabs
+- Section Content
+
+The page title represents the "what" to the contents of the page. i.e. for a device this would be the device name. A detail page contains navigation tabs to aid in displaying multiple facets of an item, with each "tabbed" page containing one or more sections. Point of note is that the tabs are only rendered within the top section of each "tabbed" page.
+
+Base definition for defining a detail page is as follows:
+
+``` jinja
+
+{% extends 'detail.html.j2' %}
+
+{% load json %}
+{% load markdown %}
+
+
+{% block tabs %}
+
+ your tabs content here
+
+{% endblock %}
+
+```