mirror of https://gitlab.crans.org/bde/nk20
Do not hover table when not clickable
This commit is contained in:
parent
c612e159cf
commit
747a878cca
|
@ -128,7 +128,7 @@ class MembershipTable(tables.Table):
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
attrs = {
|
attrs = {
|
||||||
'class': 'table table-condensed table-striped table-hover',
|
'class': 'table table-condensed table-striped',
|
||||||
'style': 'table-layout: fixed;'
|
'style': 'table-layout: fixed;'
|
||||||
}
|
}
|
||||||
template_name = 'django_tables2/bootstrap4.html'
|
template_name = 'django_tables2/bootstrap4.html'
|
||||||
|
|
|
@ -19,8 +19,7 @@ from .templatetags.pretty_money import pretty_money
|
||||||
class HistoryTable(tables.Table):
|
class HistoryTable(tables.Table):
|
||||||
class Meta:
|
class Meta:
|
||||||
attrs = {
|
attrs = {
|
||||||
'class':
|
'class': 'table table-condensed table-striped'
|
||||||
'table table-condensed table-striped table-hover'
|
|
||||||
}
|
}
|
||||||
model = Transaction
|
model = Transaction
|
||||||
exclude = ("id", "polymorphic_ctype", "invalidity_reason", "source_alias", "destination_alias",)
|
exclude = ("id", "polymorphic_ctype", "invalidity_reason", "source_alias", "destination_alias",)
|
||||||
|
@ -123,7 +122,7 @@ DELETE_TEMPLATE = """
|
||||||
class AliasTable(tables.Table):
|
class AliasTable(tables.Table):
|
||||||
class Meta:
|
class Meta:
|
||||||
attrs = {
|
attrs = {
|
||||||
'class': 'table table condensed table-striped table-hover',
|
'class': 'table table condensed table-striped',
|
||||||
'id': "alias_table"
|
'id': "alias_table"
|
||||||
}
|
}
|
||||||
model = Alias
|
model = Alias
|
||||||
|
@ -142,8 +141,7 @@ class AliasTable(tables.Table):
|
||||||
class ButtonTable(tables.Table):
|
class ButtonTable(tables.Table):
|
||||||
class Meta:
|
class Meta:
|
||||||
attrs = {
|
attrs = {
|
||||||
'class':
|
'class': 'table table-bordered condensed'
|
||||||
'table table-bordered condensed table-hover'
|
|
||||||
}
|
}
|
||||||
row_attrs = {
|
row_attrs = {
|
||||||
'class': lambda record: 'table-row ' + ('table-success' if record.display else 'table-danger'),
|
'class': lambda record: 'table-row ' + ('table-success' if record.display else 'table-danger'),
|
||||||
|
|
Loading…
Reference in New Issue