Dynamic search of buttons
This commit is contained in:
parent
7cd8a37aec
commit
33139bdbde
2 changed files with 40 additions and 7 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue