From: Michael Andreen Date: Sun, 6 Feb 2005 21:39:46 +0000 (+0000) Subject: Fixed that ugly search field.. X-Git-Url: https://ruin.nu/git/?p=yawbih.git;a=commitdiff_plain;h=66579a5b5cf49483f40de590f9b3b0527ba5621c Fixed that ugly search field.. --- diff --git a/Main.hs b/Main.hs index 53ea09d..20ead43 100644 --- 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