completed the Conference Members function by adding the "Update" functionality
This commit is contained in:
@@ -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: "/",
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user