mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-21 01:48:21 +02:00
dynamically delete buttons
This commit is contained in:
@ -90,5 +90,10 @@ class ButtonTable(tables.Table):
|
||||
|
||||
model = TransactionTemplate
|
||||
|
||||
|
||||
delete = tables.TemplateColumn(template_code="""
|
||||
<button id="{{ record.pk }}" class="btn btn-danger" onclick="delete_button(this.id)"> delete </a>
|
||||
""")
|
||||
|
||||
def render_amount(self, value):
|
||||
return pretty_money(value)
|
||||
|
Reference in New Issue
Block a user