aspnetcorehero / Boilerplate

Clean Architecture Solution Template for ASP.NET Core 5.0. Built with Onion/Hexagonal Architecture and incorporates the most essential Packages your projects will ever need. Includes both WebApi and Web(MVC) Projects.
https://codewithmukesh.com/project/aspnet-core-hero-boilerplate/
MIT License
582 stars 148 forks source link

Change the delete a:link with a submit button #18

Open has-oumar opened 3 years ago

has-oumar commented 3 years ago

I'm suggesting that you change the a:href link inside the the delete forms <a href="javascript:$('#form_delete_@brand.Id').submit();" class="dropdown-item"><i class="fas fa-trash-alt"></i> Delete</a>with a submit button <button type="submit" class="dropdown-item"><i class="fas fa-trash-alt"></i> Delete</button>, because what we have now does show the confirm dialog indeed but when you click any of the confirmation dialog buttons the result is just a redirection to empty content.