Created
March 8, 2009 17:36
-
-
Save abuiles/75837 to your computer and use it in GitHub Desktop.
This file contains 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
-- getViewDataValue_u return the data which was stored in the controller with the name of "save-url" -- | |
-- in this case we saved the url of the action which create a new post. | |
markup = <div> | |
<h1>New Post </h1> | |
<form action=(getViewDataValue_u "save-url" :: View String) method="post"> | |
Title : | |
<input type="text" id="title" name="title"></input><br /><br /> | |
<textarea name="content" id="content" cols="40" rows="5"> | |
</textarea> | |
<br /> | |
<input type="submit" value="Save" /> | |
</form> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment