]> ruin.nu Git - yawbih.git/blobdiff - Main.hs
Fixed that ugly search field..
[yawbih.git] / Main.hs
diff --git a/Main.hs b/Main.hs
index 53ea09d136ceae2f5b56a8de29f2d0f62985e53e..20ead4304b1beaf8b41fc1ad0f7cc6099c53b855 100644 (file)
--- a/Main.hs
+++ b/Main.hs
@@ -81,14 +81,18 @@ parseLatex full = case parse wikiParser "" full of
 
 footer db key = do
        hr empty
-       table $ tr $ do
+       table $ do
+       tr $ do
+               td $ text "Keyword: " 
+               searchKey <- td $  textInputField empty
+               td $ defaultSubmit (F1 searchKey) (\(F1 sk) -> showPage db (value sk)) (attr "value" "Go")
+       tr $ do
                td $ submitLink0 (showPage db "itproj3") (text "Back to main page")
                when (e key) $ td $ submitLink0 (editPage db key) (text "Edit this keyword")
                when (e key) $ td $ submitLink0 (listRevs db key) (text "List old versions")
                when (e key) $ td $ submitLink0 (showLatex db key) (text "Output latex")
                td $ submitLink0 (listKeywords db) (text "List all keywords")
-               td $ text "Keyword: " 
-               td $ activate (showPage db) textInputField empty
+               --td $ activate (showPage db) textInputField empty
 
 e "" = False
 e _ = True