mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-28 04:32:26 +02:00
use django_tables2 for transactionTemplate
This commit is contained in:
@ -54,3 +54,14 @@ class AliasTable(tables.Table):
|
||||
'td': {'class': 'col-sm-2'},
|
||||
'a': {'class': 'btn btn-danger'}},
|
||||
text='delete', accessor='pk')
|
||||
|
||||
class ButtonTable(tables.Table):
|
||||
class Meta:
|
||||
attrs = {
|
||||
'class':
|
||||
'table table condensed table-striped table-hover'
|
||||
}
|
||||
model = TransactionTemplate
|
||||
|
||||
def render_amount(self, value):
|
||||
return pretty_money(value)
|
||||
|
Reference in New Issue
Block a user