dynamically delete buttons
This commit is contained in:
parent
8ab142c122
commit
ba04a6555f
3 changed files with 31 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue