X-Git-Url: https://ruin.nu/git/?p=yawbih.git;a=blobdiff_plain;f=Main.hs;fp=Main.hs;h=20ead4304b1beaf8b41fc1ad0f7cc6099c53b855;hp=53ea09d136ceae2f5b56a8de29f2d0f62985e53e;hb=66579a5b5cf49483f40de590f9b3b0527ba5621c;hpb=267658a1fd09986a654a1750eaf3ae995fb7dab4 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