aboutsummaryrefslogtreecommitdiff
path: root/haunt/pages/rsvp.sxml
diff options
context:
space:
mode:
authorJakob L. Kreuze2022-04-12 20:05:58 -0400
committerJakob L. Kreuze2022-05-08 19:10:19 -0400
commitc3ef51bc753f48607032e77d0b344453c7142141 (patch)
tree67dcba87051ad42d67393e3f63886ea3954a722c /haunt/pages/rsvp.sxml
parentf6bd35e8e10faf4db80d6c8ccb45a5beae44c2be (diff)
[scheme] Initial RSVP implementation
Diffstat (limited to 'haunt/pages/rsvp.sxml')
-rw-r--r--haunt/pages/rsvp.sxml37
1 files changed, 37 insertions, 0 deletions
diff --git a/haunt/pages/rsvp.sxml b/haunt/pages/rsvp.sxml
new file mode 100644
index 0000000..617350f
--- /dev/null
+++ b/haunt/pages/rsvp.sxml
@@ -0,0 +1,37 @@
+(use-modules (jakob theme)
+ (jakob utils sxml))
+
+(theme
+ #:title "You've Been Invited to an Event!"
+ #:content
+ `((div (@ (id "rsvp"))
+ (div (@ (id "loading"))
+ ,(image "hourglass.gif")
+ (p "Loading..."))
+ (div (@ (id "event-info")))
+ (form (@ (id "rsvp-input") (hidden #t))
+ (fieldset
+ (legend "Your Info")
+ (label (@ (for "name")) "Name:")
+ (input (@ (type "text") (id "name") (name "name") (required #t) (size 24)))
+ (label (@ (for "email")) "Email:")
+ (input (@ (type "text") (id "email") (name "email") (required #t) (size 24))))
+ (fieldset
+ (legend "RSVP Status")
+ (input (@ (type "radio") (id "attending") (name "rsvp")))
+ (label (@ (for "attending")) "Attending")
+ (input (@ (type "radio") (id "tentative") (name "rsvp")))
+ (label (@ (for "tentative")) "Tentative")
+ (input (@ (type "radio") (id "not-attending") (name "rsvp")))
+ (label (@ (for "not-attending")) "Not Attending"))
+ (fieldset
+ (legend "Guests")
+ (div (@ (id "guest-view")))
+ (input (@ (type "button") (id "add-entry") (value "+")))
+ (input (@ (type "button") (id "remove-entry") (value "-"))))
+ (fieldset
+ (legend "All Set?")
+ (input (@ (type "button") (id "submit-form") (value "Submit")))))
+ (div (@ (id "rsvp-global"))))
+
+ ,(script "rsvp.js")))

© 2015 - 2026 Jakob L. Kreuze