diff --git a/README.md b/README.md
index 12fd5c7..2db228d 100644
--- a/README.md
+++ b/README.md
@@ -14,4 +14,5 @@ Fixes/tweaks a few "issues" with the default UserFrosting installation, includin
- Added 'hasRole' twig function to check if a user has a role (if a role doesn't exist, always returns false)
- Added 'Auditer' role and split the activities permission away from site-admins (exclusive only) and everyone else
- Made the input elements on the account settings page more in line with the other inputs (including the "hidden" and "disabled" mechanisms)
-- Updated all* forms to use partial form elements.
\ No newline at end of file
+- Updated all* forms to use partial form elements
+- Broke the table column templates into seperate files and re-factored the table templates
\ No newline at end of file
diff --git a/templates/tables/activities.html.twig b/templates/tables/activities.html.twig
new file mode 100644
index 0000000..d020f79
--- /dev/null
+++ b/templates/tables/activities.html.twig
@@ -0,0 +1,44 @@
+{# This partial template renders a table of user activities, to be populated with rows via an AJAX request.
+ # This extends a generic template for paginated tables.
+ #
+ # Note that this template contains a "skeleton" table with an empty table body, and then a block of Handlebars templates which are used
+ # to render the table cells with the data from the AJAX request.
+#}
+
+{% extends "tables/table-paginated.html.twig" %}
+
+{% block table %}
+
+
+
+ | {{translate('ACTIVITY.TIME')}} |
+ {% if 'user' in table.columns %}
+ {{translate('USER')}} |
+ {% endif %}
+ {{translate("DESCRIPTION")}} |
+
+
+
+
+
+{% endblock %}
+
+{% block table_cell_templates %}
+ {# This contains a series of
\ No newline at end of file
diff --git a/templates/tables/columns/activities-description.html.twig b/templates/tables/columns/activities-description.html.twig
new file mode 100644
index 0000000..c91ddcc
--- /dev/null
+++ b/templates/tables/columns/activities-description.html.twig
@@ -0,0 +1,12 @@
+
\ No newline at end of file
diff --git a/templates/tables/columns/activities-ocurred_at.html b/templates/tables/columns/activities-ocurred_at.html
new file mode 100644
index 0000000..018185e
--- /dev/null
+++ b/templates/tables/columns/activities-ocurred_at.html
@@ -0,0 +1,14 @@
+
+
\ No newline at end of file
diff --git a/templates/tables/columns/activities-user.html.twig b/templates/tables/columns/activities-user.html.twig
new file mode 100644
index 0000000..685e891
--- /dev/null
+++ b/templates/tables/columns/activities-user.html.twig
@@ -0,0 +1,17 @@
+
\ No newline at end of file
diff --git a/templates/tables/columns/groups-actions.html.twig b/templates/tables/columns/groups-actions.html.twig
new file mode 100644
index 0000000..30b4ffb
--- /dev/null
+++ b/templates/tables/columns/groups-actions.html.twig
@@ -0,0 +1,24 @@
+
\ No newline at end of file
diff --git a/templates/tables/columns/groups-description.html.twig b/templates/tables/columns/groups-description.html.twig
new file mode 100644
index 0000000..8e5e32f
--- /dev/null
+++ b/templates/tables/columns/groups-description.html.twig
@@ -0,0 +1 @@
+{% include "tables/columns/abstract-description.html.twig" %}
\ No newline at end of file
diff --git a/templates/tables/columns/groups-info.html.twig b/templates/tables/columns/groups-info.html.twig
new file mode 100644
index 0000000..c9dbfeb
--- /dev/null
+++ b/templates/tables/columns/groups-info.html.twig
@@ -0,0 +1,9 @@
+
\ No newline at end of file
diff --git a/templates/tables/columns/permissions-name.html.twig b/templates/tables/columns/permissions-name.html.twig
new file mode 100644
index 0000000..0ad00f0
--- /dev/null
+++ b/templates/tables/columns/permissions-name.html.twig
@@ -0,0 +1,11 @@
+
\ No newline at end of file
diff --git a/templates/tables/columns/permissions-properties.html.twig b/templates/tables/columns/permissions-properties.html.twig
new file mode 100644
index 0000000..cbfc811
--- /dev/null
+++ b/templates/tables/columns/permissions-properties.html.twig
@@ -0,0 +1,15 @@
+
\ No newline at end of file
diff --git a/templates/tables/columns/permissions-via_roles.html.twig b/templates/tables/columns/permissions-via_roles.html.twig
new file mode 100644
index 0000000..c31662c
--- /dev/null
+++ b/templates/tables/columns/permissions-via_roles.html.twig
@@ -0,0 +1,9 @@
+
\ No newline at end of file
diff --git a/templates/tables/columns/roles-actions.html.twig b/templates/tables/columns/roles-actions.html.twig
new file mode 100644
index 0000000..c12963a
--- /dev/null
+++ b/templates/tables/columns/roles-actions.html.twig
@@ -0,0 +1,35 @@
+
\ No newline at end of file
diff --git a/templates/tables/columns/roles-description.html.twig b/templates/tables/columns/roles-description.html.twig
new file mode 100644
index 0000000..8e5e32f
--- /dev/null
+++ b/templates/tables/columns/roles-description.html.twig
@@ -0,0 +1 @@
+{% include "tables/columns/abstract-description.html.twig" %}
\ No newline at end of file
diff --git a/templates/tables/columns/roles-info.html.twig b/templates/tables/columns/roles-info.html.twig
new file mode 100644
index 0000000..100fc10
--- /dev/null
+++ b/templates/tables/columns/roles-info.html.twig
@@ -0,0 +1,9 @@
+
\ No newline at end of file
diff --git a/templates/tables/columns/users-actions.html.twig b/templates/tables/columns/users-actions.html.twig
new file mode 100644
index 0000000..9a59088
--- /dev/null
+++ b/templates/tables/columns/users-actions.html.twig
@@ -0,0 +1,56 @@
+
\ No newline at end of file
diff --git a/templates/tables/columns/users-info.html.twig b/templates/tables/columns/users-info.html.twig
new file mode 100644
index 0000000..cd7a5c5
--- /dev/null
+++ b/templates/tables/columns/users-info.html.twig
@@ -0,0 +1,13 @@
+
\ No newline at end of file
diff --git a/templates/tables/columns/users-last_activity.html.twig b/templates/tables/columns/users-last_activity.html.twig
new file mode 100644
index 0000000..a0f14fc
--- /dev/null
+++ b/templates/tables/columns/users-last_activity.html.twig
@@ -0,0 +1,16 @@
+
+
\ No newline at end of file
diff --git a/templates/tables/columns/users-status.html.twig b/templates/tables/columns/users-status.html.twig
new file mode 100644
index 0000000..075140c
--- /dev/null
+++ b/templates/tables/columns/users-status.html.twig
@@ -0,0 +1,31 @@
+
\ No newline at end of file
diff --git a/templates/tables/columns/users-via_roles.html.twig b/templates/tables/columns/users-via_roles.html.twig
new file mode 100644
index 0000000..c31662c
--- /dev/null
+++ b/templates/tables/columns/users-via_roles.html.twig
@@ -0,0 +1,9 @@
+
\ No newline at end of file
diff --git a/templates/tables/groups.html.twig b/templates/tables/groups.html.twig
new file mode 100644
index 0000000..a0a91b7
--- /dev/null
+++ b/templates/tables/groups.html.twig
@@ -0,0 +1,42 @@
+{# This partial template renders a table of groups, to be populated with rows via an AJAX request.
+ # This extends a generic template for paginated tables.
+ #
+ # Note that this template contains a "skeleton" table with an empty table body, and then a block of Handlebars templates which are used
+ # to render the table cells with the data from the AJAX request.
+#}
+
+{% extends "tables/table-paginated.html.twig" %}
+
+{% block table %}
+
+
+
+ | {{translate('GROUP')}} |
+ {{translate("DESCRIPTION")}} |
+ {{translate("ACTIONS")}} |
+
+
+
+
+
+{% endblock %}
+
+{% block table_cell_templates %}
+ {# This contains a series of
+ {% block table_roles_column_info %}
+ {% include "tables/columns/roles-info.html.twig" %}
+ {% endblock %}
-
+ {% block table_roles_column_description %}
+ {% include "tables/columns/roles-description.html.twig" %}
+ {% endblock %}
-
- {% endverbatim %}
+ {% block table_roles_column_actions %}
+ {% include "tables/columns/roles-actions.html.twig" %}
+ {% endblock %}
{% endblock %}
diff --git a/templates/tables/users.html.twig b/templates/tables/users.html.twig
index d4d93de..52af303 100644
--- a/templates/tables/users.html.twig
+++ b/templates/tables/users.html.twig
@@ -11,15 +11,15 @@
- | {{translate('USER')}} |
+ {{translate('USER')}} |
{% if 'last_activity' in table.columns %}
- {{translate("ACTIVITY.LAST")}} |
+ {{translate("ACTIVITY.LAST")}} |
{% endif %}
{% if 'via_roles' in table.columns %}
- {{translate('PERMISSION.VIA_ROLES')}} |
+ {{translate('PERMISSION.VIA_ROLES')}} |
{% endif %}
- {{translate("STATUS")}} |
- {{translate("ACTIONS")}} |
+ {{translate("STATUS")}} |
+ {{translate("ACTIONS")}} |
@@ -34,123 +34,23 @@
#
# These templates require handlebars-helpers.js, moment.js
#}
- {% verbatim %}
-
+ {% block table_users_column_info %}
+ {% include "tables/columns/users-info.html.twig" %}
+ {% endblock %}
-
+ {% block table_users_column_last_activity %}
+ {% include "tables/columns/users-last_activity.html.twig" %}
+ {% endblock %}
-
-
-
-
- {% endverbatim %}
+ {% block table_users_column_via_roles %}
+ {% include "tables/columns/users-via_roles.html.twig" %}
+ {% endblock %}
{% endblock %}