Set an organization to a person in webapp

This commit is contained in:
Eike Kettner
2020-11-30 22:07:16 +01:00
parent 2e28c8e57b
commit a6dd71af9f
8 changed files with 215 additions and 65 deletions

View File

@ -53,8 +53,9 @@ view model =
[ thead []
[ tr []
[ th [ class "collapsing" ] []
, th [ class "collapsing" ] [ text "Name" ]
, th [ class "collapsing center aligned" ] [ text "Concerning" ]
, th [] [ text "Name" ]
, th [] [ text "Organization" ]
, th [] [ text "Address" ]
, th [] [ text "Contact" ]
]
@ -79,9 +80,6 @@ renderPersonLine model person =
, text "Edit"
]
]
, td [ class "collapsing" ]
[ text person.name
]
, td [ class "center aligned" ]
[ if person.concerning then
i [ class "check square outline icon" ] []
@ -89,6 +87,14 @@ renderPersonLine model person =
else
i [ class "minus square outline icon" ] []
]
, td []
[ text person.name
]
, td []
[ Maybe.map .name person.organization
|> Maybe.withDefault "-"
|> text
]
, td []
[ Util.Address.toString person.address |> text
]