Check types for view
This commit is contained in:
parent
2a314583d6
commit
cdb8381dfe
1 changed files with 21 additions and 21 deletions
|
@ -1,9 +1,9 @@
|
||||||
(in-package :ml-survey/views)
|
(in-package :ml-survey/views)
|
||||||
|
|
||||||
(defun survey (survey)
|
(defun survey (id properties)
|
||||||
"Generates the view to show the survey created."
|
"Generates the view to show the survey created."
|
||||||
(let ((id (format nil "~a" (first survey)))
|
(check-type id string)
|
||||||
(properties (first (rest survey))))
|
(check-type properties list)
|
||||||
(with-page (:title "Surveys")
|
(with-page (:title "Surveys")
|
||||||
(navbar-en)
|
(navbar-en)
|
||||||
(:section :class "container"
|
(:section :class "container"
|
||||||
|
@ -21,4 +21,4 @@
|
||||||
(:td (if (string= key "questionnaire")
|
(:td (if (string= key "questionnaire")
|
||||||
(:a :href (concatenate 'string "/survey/" id value)
|
(:a :href (concatenate 'string "/survey/" id value)
|
||||||
value)
|
value)
|
||||||
value))))))))))
|
value)))))))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue