Created
January 20, 2010 06:02
-
-
Save felideon/281649 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defmethod render :around ((form form-component)) | |
(<:form :method "post" | |
:action "mailto:[email protected]" | |
(call-next-method))) | |
(defmethod render :before ((form form-component)) | |
(<:h1 (<:as-html "Book Order Form"))) | |
(defmethod render ((form form-component)) | |
(<:as-html "Name: ") (<:text :name "Name") (<:br) | |
(<:as-html "Address: ") (<:text :name "Address") (<:br) | |
(<:as-html "Phone: ") (<:text :name "Phone") (<:br) | |
(<:p) (render (make-instance 'products-dropdown)) | |
(<:p)) | |
(defmethod render :after ((form form-component)) | |
(<:submit :value "Place Order")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment