completed the Conference Members function by adding the "Update" functionality

This commit is contained in:
2026-02-10 11:12:50 -07:00
parent d0ec70cb48
commit 3e22429678
4 changed files with 59 additions and 20 deletions
+10
View File
@@ -75,6 +75,7 @@ type AmContext interface {
URLParamInt(string) (int, error)
URLPath() string
VarMap() jet.VarMap
Verb() string
}
/*----------------------------------------------------------------------------
@@ -435,6 +436,15 @@ func (c *amContext) VarMap() jet.VarMap {
return c.rendervars
}
// Verb returns the HTTP method (verb) for this request.
func (c *amContext) Verb() string {
rc := c.echoContext.Request().Method
if rc == "" {
rc = "GET"
}
return rc
}
// defoptions is the default options for the HTTP session.
var defoptions *AmSessionOptions = &AmSessionOptions{
Path: "/",
+3
View File
@@ -133,6 +133,9 @@
<div class="flex items-start gap-3">
<button type="submit" name="update"
class="bg-blue-600 hover:bg-blue-700 text-white px-8 py-2 rounded font-medium transition-colors">Update</button>
{{ if isset(updated) }}
<span class="text-lg text-green font-bold">✅ Updated!</span>
{{ end }}
</div>
</div>
</div>