Closed boonebgorges closed 1 week ago
I've built a version of this. I wanted to avoid using a secondary plugin for drag-and-drop: too much overhead, too many features, too much potential for breakage. So I built my own drag-and-drop implementation. It's not extremely polished, but I added a few little transition effects that I think make it usable. See gif:
Thanks Boone! Drag-and-drop looks good, and the order that templates appear on the front end are changed based on the order determined in the Dashboard.
There's just one minor quirk I've found. Sometimes after I drag a template, the title of the template remains light blue. I can't reliably reproduce it, and it goes away after I reload the page.
The light-blue issue appears to happen when you grab by the link text rather than elsewhere in the row. I've just pushed up a fix.
Thanks Boone. Currently, I'm not able to grab the title or any other part of an element. I tested using Chrome and Firefox.
This was caused by some interference caused by #472. It should now be fixed.
This looks good, thanks!
After some discussion with the City Tech team, we think the most obvious place to do this by making the elements on Dashboard > Site Templates sortable via drag-and-drop.