forked from brmlab/brmelect-github
fix again
This commit is contained in:
parent
2c0c4a1a5a
commit
356b0d955e
1 changed files with 3 additions and 3 deletions
|
|
@ -179,15 +179,15 @@ ORDER BY vote_id" id)))
|
||||||
;; /admin/meeting/:id/vote
|
;; /admin/meeting/:id/vote
|
||||||
(define-resource (create-meeting-vote "admin" "meeting" id "vote" params)
|
(define-resource (create-meeting-vote "admin" "meeting" id "vote" params)
|
||||||
(if (string=? (resource-context-method (current-resource-context)) "POST")
|
(if (string=? (resource-context-method (current-resource-context)) "POST")
|
||||||
(let ((title (hash-ref params 'vote-title)))
|
(let ((title (param params 'vote-title)))
|
||||||
(query-db "SELECT brm.create_vote_and_init_status($1, $2)" id title)
|
(query-db "SELECT brm.create_vote_and_init_status($1, $2)" id title)
|
||||||
(make-html-response
|
(make-html-response
|
||||||
200
|
200
|
||||||
(layout
|
(layout
|
||||||
"Vote Created"
|
"Vote Created"
|
||||||
`@div{
|
`@div{
|
||||||
@p{"Vote successfully created for meeting " (number->string id) "."}
|
@p{Vote successfully created for meeting @,(identity id).}
|
||||||
@a[(href (string-append "/admin/meeting/" (number->string id)))]{Back to Meeting}
|
@a[(href @,(string-append "/admin/meeting/" id))]{Back to Meeting}
|
||||||
})))
|
})))
|
||||||
(make-error-response
|
(make-error-response
|
||||||
405 "The access method used to request the document is not supported."
|
405 "The access method used to request the document is not supported."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue