Use lists instead of tables
This commit is contained in:
parent
242da4e070
commit
37217905df
1 changed files with 7 additions and 13 deletions
|
@ -40,16 +40,10 @@
|
||||||
|
|
||||||
(defmethod survey-html ((survey survey))
|
(defmethod survey-html ((survey survey))
|
||||||
(spinneret:with-html
|
(spinneret:with-html
|
||||||
(:table :class "table"
|
(:dl (loop for property in (survey-properties survey)
|
||||||
(:thead :class "thead-dark"
|
|
||||||
(:tr (:th :scope "col"
|
|
||||||
"Key")
|
|
||||||
(:th :scope "col"
|
|
||||||
"Value")))
|
|
||||||
(:tbody (loop for property in (survey-properties survey)
|
|
||||||
for key = (car property)
|
for key = (car property)
|
||||||
for value = (cdr property) do
|
for value = (cdr property) do
|
||||||
(:tr (:td key)
|
(:dt key)
|
||||||
(cond ((string= key "questionnaire")
|
(cond ((string= key "questionnaire")
|
||||||
(:td (:a :href (build-questionnaire-link (survey-id survey) value) value)))
|
(:dd (:a :href (build-questionnaire-link (survey-id survey) value) value)))
|
||||||
(t (:td value)))))))))
|
(t (:dd value)))))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue