Extract common pattern from perform_site_reorder/4 and perform_device_reorder/4 into a single perform_reorder/4 helper function. Both reorder handlers now delegate to the shared helper, reducing duplication and making the reload/regroup/flash pattern consistent. - Reduces code from 40 lines to 28 lines - Maintains identical behavior (all tests pass) - Uses static gettext strings to satisfy compile-time requirements |
||
|---|---|---|
| .. | ||
| form.ex | ||
| form.html.heex | ||
| index.ex | ||
| index.html.heex | ||
| show.ex | ||
| show.html.heex | ||