allow default text for text input fields
This commit is contained in:
parent
fa350f02bf
commit
e68b320eb0
|
@ -301,11 +301,13 @@
|
|||
(define (make-text-input-field . maybe-further-attributes)
|
||||
(let ((name (generate-input-field-name "text")))
|
||||
(optionals maybe-further-attributes
|
||||
((attributes XML-attribute?))
|
||||
((default-text string?)
|
||||
(attributes XML-attribute?))
|
||||
(make-input-field name
|
||||
identity
|
||||
`(input (@ (type "text")
|
||||
(name ,name)
|
||||
,(and default-text `(value ,default-text))
|
||||
;; this will insert a list, but
|
||||
;; XML->HTML doesn't care about it
|
||||
,(and attributes (cdr attributes))
|
||||
|
|
Loading…
Reference in New Issue