Hi all,
I would like to create list with my custom actions. I mean something like:
<form method="post" action="...">
<li>Task 1 <input type="submit" data-value="1">Delete</input></li>
<li>Task 2 <input type="submit" data-value="2">Delete</input></li>
<li>Task 3 <input type="submit" data-value="3">Delete</input></li>
<li>Task 4 <input type="submit" data-value="4">Delete</input></li>
</form>
I want that delete method will be defined in controller as php function which will parse data-value of selected button and then delete record.
Could you please give me a hint how to do it in SilverStripe?
Or is there any better way how to delete items?
Btw, I want to have this list in front-end, not in CMS.