Commit a252b9cf authored by Michael Bukachi's avatar Michael Bukachi

fix: Correct export tab alignment

parent 8ec3b8ad
......@@ -48,6 +48,8 @@ class CustomView(ModelView):
class UserAdmin(CustomView):
column_searchable_list = ('name',)
column_filters = ('name', 'email')
can_export = True
export_types = ['csv', 'xlsx']
# Flask views
......
......@@ -22,7 +22,7 @@
</li>
{% else %}
<li>
<a href="{{ get_url('.export', export_type=admin_view.export_types[0], **request.args) }}"
<a class="nav-link" href="{{ get_url('.export', export_type=admin_view.export_types[0], **request.args) }}"
title="{{ _gettext('Export') }}">{{ _gettext('Export') }}</a>
</li>
{% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment