1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-20 17:41:55 +02:00

Dynamic search of buttons

This commit is contained in:
Pierre-antoine Comby
2020-03-24 00:07:25 +01:00
parent 7cd8a37aec
commit 33139bdbde
2 changed files with 40 additions and 7 deletions

View File

@ -80,10 +80,11 @@ class ButtonTable(tables.Table):
class Meta:
attrs = {
'class':
'table table condensed table-striped table-hover'
'table table-bordered condensed table-striped table-hover'
}
row_attrs = {
'class': 'table-row',
'id': lambda record: "row-"+str(record.pk),
'data-href': lambda record: record.pk
}