Safe Haskell | None |
---|
Common page components and rendering helpers. For global page layout, see Application.hs.
- topbar :: ViewData -> HtmlUrl AppRoute
- sidebar :: ViewData -> HtmlUrl AppRoute
- searchform :: ViewData -> HtmlUrl AppRoute
- addform :: Text -> ViewData -> HtmlUrl AppRoute
- editform :: ViewData -> HtmlUrl AppRoute
- importform :: HtmlUrl AppRoute
- journalselect :: [(FilePath, String)] -> HtmlUrl AppRoute
- helplink :: String -> String -> HtmlUrl AppRoute
- nulltemplate :: HtmlUrl AppRoute
- accountsReportAsHtml :: WebOpts -> ViewData -> AccountsReport -> HtmlUrl AppRoute
- accountQuery :: AccountName -> String
- accountOnlyQuery :: AccountName -> String
- accountUrl :: AppRoute -> AccountName -> (AppRoute, [(Text, Text)])
- entriesReportAsHtml :: WebOpts -> ViewData -> EntriesReport -> HtmlUrl AppRoute
- journalTransactionsReportAsHtml :: WebOpts -> ViewData -> TransactionsReport -> HtmlUrl AppRoute
- registerReportHtml :: WebOpts -> ViewData -> TransactionsReport -> HtmlUrl AppRoute
- registerItemsHtml :: WebOpts -> ViewData -> TransactionsReport -> HtmlUrl AppRoute
- registerChartHtml :: [TransactionsReportItem] -> HtmlUrl AppRoute
- numberTransactionsReportItems :: [TransactionsReportItem] -> [(Int, Bool, Bool, Bool, TransactionsReportItem)]
- mixedAmountAsHtml :: MixedAmount -> Html
Documentation
searchform :: ViewData -> HtmlUrl AppRouteSource
] where u' = (dest, if null q then [] else [(q, pack q)]) style | dest == here = navlinkcurrent | otherwise = navlink :: Text
]
Search form for entering custom queries to filter journal data.
importform :: HtmlUrl AppRouteSource
Import journal form.
accountsReportAsHtml :: WebOpts -> ViewData -> AccountsReport -> HtmlUrl AppRouteSource
Render an AccountsReport as html.
accountUrl :: AppRoute -> AccountName -> (AppRoute, [(Text, Text)])Source
entriesReportAsHtml :: WebOpts -> ViewData -> EntriesReport -> HtmlUrl AppRouteSource
Render an EntriesReport as html for the journal entries view.
journalTransactionsReportAsHtml :: WebOpts -> ViewData -> TransactionsReport -> HtmlUrl AppRouteSource
Render a TransactionsReport as html for the formatted journal view.
registerReportHtml :: WebOpts -> ViewData -> TransactionsReport -> HtmlUrl AppRouteSource
registerItemsHtml :: WebOpts -> ViewData -> TransactionsReport -> HtmlUrl AppRouteSource
registerChartHtml :: [TransactionsReportItem] -> HtmlUrl AppRouteSource
Generate javascript/html for a register balance line chart based on the provided TransactionsReportItems. registerChartHtml :: forall t (t1 :: * -> *) t2 t3 t4 t5. Data.Foldable.Foldable t1 => t1 (Transaction, t2, t3, t4, t5, MixedAmount) -> t -> Text.Blaze.Internal.HtmlM ()