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)
|
(define (make-text-input-field . maybe-further-attributes)
|
||||||
(let ((name (generate-input-field-name "text")))
|
(let ((name (generate-input-field-name "text")))
|
||||||
(optionals maybe-further-attributes
|
(optionals maybe-further-attributes
|
||||||
((attributes XML-attribute?))
|
((default-text string?)
|
||||||
|
(attributes XML-attribute?))
|
||||||
(make-input-field name
|
(make-input-field name
|
||||||
identity
|
identity
|
||||||
`(input (@ (type "text")
|
`(input (@ (type "text")
|
||||||
(name ,name)
|
(name ,name)
|
||||||
|
,(and default-text `(value ,default-text))
|
||||||
;; this will insert a list, but
|
;; this will insert a list, but
|
||||||
;; XML->HTML doesn't care about it
|
;; XML->HTML doesn't care about it
|
||||||
,(and attributes (cdr attributes))
|
,(and attributes (cdr attributes))
|
||||||
|
|
Loading…
Reference in New Issue