mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 19:08:26 +00:00
Set an organization to a person in webapp
This commit is contained in:
@ -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
|
||||
]
|
||||
|
Reference in New Issue
Block a user