summaryrefslogtreecommitdiff
path: root/src/pages
diff options
context:
space:
mode:
authorcolin <colin@cicadas.surf>2023-03-07 19:15:12 -0800
committercolin <colin@cicadas.surf>2023-03-07 19:15:12 -0800
commitefa771e3cc363dae68b57dfcc5c67c511a1d3331 (patch)
tree99dc6c2b8770a6e0ae87fedf2ba99ac21bf83b7d /src/pages
parente2a60e8d2b8e41bcd2c9a39d8e2210f701b92353 (diff)
Add: reporting rumors
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/spymaster.lisp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/pages/spymaster.lisp b/src/pages/spymaster.lisp
new file mode 100644
index 0000000..01deef2
--- /dev/null
+++ b/src/pages/spymaster.lisp
@@ -0,0 +1,22 @@
+;;;; spymaster.lisp
+
+(in-package :dnd)
+
+(defclass spymaster ()
+ ((player :reader player :initarg :player)
+ (adventures :reader adventures :initarg :adventures)))
+
+
+(defrender t ((page spymaster))
+ (with-page (:title "spymaster - report a rumor")
+ (:h1 "Of what hazards have ye heard rumor?")
+ (:form :method "POST" :action "/spymaster"
+ (:label :for "ADVENTURE" "What adventure did ye hear a rumor about?")
+ (:br)
+ (render :select (adventures page) :name "ADVENTURE")
+ (:br)
+ (:label :for "REPORTED" "And what did ye have to report?")
+ (:br)
+ (:textarea :name "REPORTED" :rows "5" :cols "60")
+ (:br)
+ (:button :type "submit" "Report!"))))