definition: |
toListView :: ToHtmlGenerator toListView erdname (Entity entityName attrlist) _ _ = cmtfunc ("The list view of a " ++ entityName ++ " entity in HTML format.\n" ++ "This view is used in a row of a table of all entities.") (thisModuleName erdname, lowEntity ++ "ToListView") 2 Public (withHTMLContext (baseType (model erdname, entityName) ~> listType (listType htmlTVar))) [simpleRule [CPVar envar] (list2ac (map (\a@(Attribute _ domain key _) -> let attref = applyF (model erdname, lowEntity ++ attributeName a) [CVar envar] in list2ac [if key == Unique then applyF hrefSmallButtonName [applyF (spiceyModule,"showRoute") [CVar envar], list2ac [applyF (attributeToConverter a) [attref]]] else applyF (attributeToConverter a) [attref] ] ) attrlist))] where lowEntity = lowerFirst entityName envar = (1, lowEntity) |
demand: |
argument 2 |
deterministic: |
deterministic operation |
failfree: |
(_, _, _, _) |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{(_,{Entity},_,_) |-> _} |
name: |
toListView |
precedence: |
no precedence defined |
result-values: |
_ |
signature: |
String -> Database.ERD.Entity -> [Database.ERD.Relationship] -> [Database.ERD.Entity] -> AbstractCurry.Types.CFuncDecl |
solution-complete: |
operation might suspend on free variables |
terminating: |
possibly non-terminating |
totally-defined: |
possibly non-reducible on same data term |