From 747a878ccacb8bd7103468bbdb4557d12ba529da Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Mon, 10 Aug 2020 18:01:39 +0200 Subject: [PATCH] Do not hover table when not clickable --- apps/member/tables.py | 2 +- apps/note/tables.py | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/apps/member/tables.py b/apps/member/tables.py index 38575726..16f436e1 100644 --- a/apps/member/tables.py +++ b/apps/member/tables.py @@ -128,7 +128,7 @@ class MembershipTable(tables.Table): class Meta: attrs = { - 'class': 'table table-condensed table-striped table-hover', + 'class': 'table table-condensed table-striped', 'style': 'table-layout: fixed;' } template_name = 'django_tables2/bootstrap4.html' diff --git a/apps/note/tables.py b/apps/note/tables.py index 08f2ee32..9786d63b 100644 --- a/apps/note/tables.py +++ b/apps/note/tables.py @@ -19,8 +19,7 @@ from .templatetags.pretty_money import pretty_money class HistoryTable(tables.Table): class Meta: attrs = { - 'class': - 'table table-condensed table-striped table-hover' + 'class': 'table table-condensed table-striped' } model = Transaction exclude = ("id", "polymorphic_ctype", "invalidity_reason", "source_alias", "destination_alias",) @@ -123,7 +122,7 @@ DELETE_TEMPLATE = """ class AliasTable(tables.Table): class Meta: attrs = { - 'class': 'table table condensed table-striped table-hover', + 'class': 'table table condensed table-striped', 'id': "alias_table" } model = Alias @@ -142,8 +141,7 @@ class AliasTable(tables.Table): class ButtonTable(tables.Table): class Meta: attrs = { - 'class': - 'table table-bordered condensed table-hover' + 'class': 'table table-bordered condensed' } row_attrs = { 'class': lambda record: 'table-row ' + ('table-success' if record.display else 'table-danger'),