Get URI from request-uri function
This commit is contained in:
parent
7284785def
commit
cb40b08625
1 changed files with 3 additions and 6 deletions
|
@ -12,18 +12,15 @@
|
||||||
(load form-path))
|
(load form-path))
|
||||||
nil)
|
nil)
|
||||||
|
|
||||||
(defun sus-form (survey-id &optional action)
|
(defun sus-form ()
|
||||||
(let ((action (if action
|
|
||||||
action
|
|
||||||
(format nil "/survey/~a/questionnaire/sus" survey-id))))
|
|
||||||
(with-page (:title "SUS Form")
|
(with-page (:title "SUS Form")
|
||||||
(:section :class "container my-5"
|
(:section :class "container my-5"
|
||||||
(:h2 "Usability Feedback Form")
|
(:h2 "Usability Feedback Form")
|
||||||
(:p "Please fill out the following forms and press the submit button.")
|
(:p "Please fill out the following forms and press the submit button.")
|
||||||
(:form :action action
|
(:form :action (hunchentoot:request-uri*)
|
||||||
:method "post"
|
:method "post"
|
||||||
:class (spacing :property "m" :side "y" :size 5)
|
:class (spacing :property "m" :side "y" :size 5)
|
||||||
;; load the multi-form from disk
|
;; load the multi-form from disk
|
||||||
(load-form *html-lang* "sus.lisp")
|
(load-form *html-lang* "sus.lisp")
|
||||||
(btn-primary (:type "submit")
|
(btn-primary (:type "submit")
|
||||||
(find-l10n "submit" *html-lang* *l10n*)))))))
|
(find-l10n "submit" *html-lang* *l10n*))))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue