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))
|
||||
nil)
|
||||
|
||||
(defun sus-form (survey-id &optional action)
|
||||
(let ((action (if action
|
||||
action
|
||||
(format nil "/survey/~a/questionnaire/sus" survey-id))))
|
||||
(defun sus-form ()
|
||||
(with-page (:title "SUS Form")
|
||||
(:section :class "container my-5"
|
||||
(:h2 "Usability Feedback Form")
|
||||
(:p "Please fill out the following forms and press the submit button.")
|
||||
(:form :action action
|
||||
(:form :action (hunchentoot:request-uri*)
|
||||
:method "post"
|
||||
:class (spacing :property "m" :side "y" :size 5)
|
||||
;; load the multi-form from disk
|
||||
(load-form *html-lang* "sus.lisp")
|
||||
(btn-primary (:type "submit")
|
||||
(find-l10n "submit" *html-lang* *l10n*)))))))
|
||||
(find-l10n "submit" *html-lang* *l10n*))))))
|
||||
|
|
Loading…
Add table
Reference in a new issue