Before a few renames

This commit is contained in:
Jason Jordan
2026-03-19 00:42:27 -04:00
parent 011ee91707
commit 3300819ed5
46 changed files with 994 additions and 467 deletions
@@ -0,0 +1,16 @@
import { Controller } from "@hotwired/stimulus"
export default class extends Controller {
static targets = [ "selector", "link" ]
static values = { urlTemplate: String } // Pass template like "/users/:id/edit"
update() {
console.log("## ## %%")
const selectedId = this.selectorTarget.value
// Replace placeholder with selected ID
const newUrl = this.urlTemplateValue.replace(":id", selectedId)
// Update the link href
this.linkTarget.href = newUrl
}
}