module Web.View.DecisionRecords.Index where import Web.Types import Generated.Types import IHP.Prelude import IHP.ViewPrelude import Web.Routes () data IndexView = IndexView { records :: ![DecisionRecord] , requirements :: ![Requirement] , users :: ![User] , mOutcomeFilter :: !(Maybe Text) } allOutcomes :: [Text] allOutcomes = ["accepted", "rejected", "deferred", "split", "merged", "reframed"] instance View IndexView where html IndexView { .. } = [hsx|
No decision records found.
|] renderOutcomeTab :: Maybe Text -> Text -> Html renderOutcomeTab mOutcomeFilter o = [hsx| {o} |] decisionFilterUrl :: Text -> Text decisionFilterUrl o = "/DecisionRecords?outcome=" <> o renderTable :: [DecisionRecord] -> [Requirement] -> [User] -> Html renderTable records reqs users = [hsx|| Title | Outcome | Requirement | Decided By | Decided At |
|---|