CodeNewbie Community 🌱

Discussion on: Django + HTMX CRUD application

Collapse
 
mr_destructive profile image
Meet Rajesh Gor • Edited

Hey thanks for reading and the feedback, it makes sense to render the new page as I want to replace the form with the list in the first place, it's not a good UI but I just experimented with the things I knew. So, we can render the entire page but by sending a hx-request, we want to specify where we want it to be replaced instead of re-loading the page entirely.

Please forgive me in the UI part :(
It's just not my thing. And BTW my name is Meet :)

Collapse
 
jacobvarney profile image
jacobvarney

Hi Meet! Thank you for your reply, and I'm sorry if my comment came of as a critique.

What you did worked great as an example. I was curious about something tangential: what do you consider when deciding whether to open a new page for updated content instead of rendering it in an element marked with an HTMX attribute? I think cards that you can delete and then reorganize on a grid would be a good example of when to use HTMX.

Thread Thread
 
mr_destructive profile image
Meet Rajesh Gor

No not all it's not critique at all, I feel good when someone comments on my articles, It gives a "someone's reading my articles" vibe.
Yes, we can use cards kind of thing, we can embed those whilst keeping the list and replace the form with the new card, ya that's a cool idea.