blob: 795f3dbee09e48a94d94944db044bb24a0c12c0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
;;;; adventure-page.lisp -- shows a particular adventure
(in-package :dnd)
(defclass adventure-page ()
((adventure :reader adventure :initarg :adventure)
(player :reader player :initarg :player)))
(defrender t ((page adventure-page))
(let ((adventure (adventure page)))
(with-page (:title (title adventure))
(:h1 (title adventure))
(:p (description adventure))
(:h2 "Seers: " (render :list (adventure-seers adventure)))
(:form :method "POST" :action ""
(:label :for "SEER" "Add a seer to this adventure:") (:br)
(:select :name "SEER"
(loop :for p :in (db:store-objects-with-class 'player)
:collect (:option :value (nickname p) (nickname p))))))))
|