fix(web/panettone): Fix more calls to (id nil) in new issue form
Change-Id: Id514d80e00005b7b7eb2f305e92af33ca70d6964 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1594 Tested-by: BuildkiteCI Reviewed-by: lukegb <lukegb@tvl.fyi>
This commit is contained in:
parent
708e94532d
commit
117e7316a0
1 changed files with 33 additions and 30 deletions
|
@ -224,16 +224,16 @@
|
|||
(render/issue-list :issues issues))))
|
||||
|
||||
(defun render/issue-form (&optional issue message)
|
||||
(let ((editing (and issue (id issue))))
|
||||
(render ()
|
||||
(:header
|
||||
(:h1
|
||||
(who:esc
|
||||
(if (and issue (id issue))
|
||||
"Edit Issue" "New Issue"))))
|
||||
(if editing "Edit Issue" "New Issue"))))
|
||||
(:main
|
||||
(render/alert message)
|
||||
(:form :method "post"
|
||||
:action (if (id issue)
|
||||
:action (if editing
|
||||
(format nil "/issues/~A"
|
||||
(id issue))
|
||||
"/issues")
|
||||
|
@ -243,19 +243,22 @@
|
|||
:id "subject"
|
||||
:name "subject"
|
||||
:placeholder "Subject"
|
||||
:value (subject issue)))
|
||||
:value (when editing
|
||||
(subject issue))))
|
||||
|
||||
(:div
|
||||
(:textarea :name "body"
|
||||
:placeholder "Description"
|
||||
:rows 10
|
||||
(who:esc (body issue))))
|
||||
(who:esc
|
||||
(when editing
|
||||
(body issue)))))
|
||||
|
||||
(:input :type "submit"
|
||||
:value
|
||||
(if (id issue)
|
||||
(if editing
|
||||
"Save Issue"
|
||||
"Create Issue"))))))
|
||||
"Create Issue")))))))
|
||||
|
||||
(defun render/new-comment (issue-id)
|
||||
(who:with-html-output (*standard-output*)
|
||||
|
|
Loading…
Reference in a new issue