diff --git a/flask_bootstrap/templates/base/table.html b/flask_bootstrap/templates/base/table.html
index bf561a76..b5818f85 100644
--- a/flask_bootstrap/templates/base/table.html
+++ b/flask_bootstrap/templates/base/table.html
@@ -39,6 +39,7 @@
model=None,
show_actions=False,
actions_title='Actions',
+ actions_first=False,
custom_actions=None,
view_url=None,
edit_url=None,
@@ -57,9 +58,11 @@
{% endif %}
- {% for title in titles %}
-
{{ title[1] }}
- {% endfor %}
+ {% if not actions_first %}
+ {% for title in titles %}
+ {{ title[1] }}
+ {% endfor %}
+ {% endif %}
{% if show_actions %}
{{ actions_title }}
{% if new_url %}
@@ -75,38 +78,48 @@
{% endif %}
{% endif %}
+ {% if actions_first %}
+ {% for title in titles %}
+ {{ title[1] }}
+ {% endfor %}
+ {% endif %}