Add 'delete-instance' class to delete link when viewing a record

so that JS can watch its click event
This commit is contained in:
Lance Edgar 2018-01-24 13:12:42 -06:00
parent 440cfd0d72
commit 8044039d78

View file

@ -53,7 +53,7 @@
<li>${h.link_to("Edit this {}".format(model_title), action_url('edit', instance))}</li>
% endif
% if master.deletable and instance_deletable and request.has_perm('{}.delete'.format(permission_prefix)):
<li>${h.link_to("Delete this {}".format(model_title), action_url('delete', instance))}</li>
<li>${h.link_to("Delete this {}".format(model_title), action_url('delete', instance), class_='delete-instance')}</li>
% endif
% if master.creatable and request.has_perm('{}.create'.format(permission_prefix)):
% if master.creates_multiple: