mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-10-22 13:20:12 +00:00
Render edit-modals above the menu and not the whole page
This commit is contained in:
@@ -6,6 +6,7 @@ module Comp.PersonForm exposing
|
||||
, isValid
|
||||
, update
|
||||
, view
|
||||
, view1
|
||||
)
|
||||
|
||||
import Api.Model.Person exposing (Person)
|
||||
@@ -123,6 +124,11 @@ update flags msg model =
|
||||
|
||||
view : UiSettings -> Model -> Html Msg
|
||||
view settings model =
|
||||
view1 settings False model
|
||||
|
||||
|
||||
view1 : UiSettings -> Bool -> Model -> Html Msg
|
||||
view1 settings compact model =
|
||||
div [ class "ui form" ]
|
||||
[ div
|
||||
[ classList
|
||||
@@ -157,7 +163,7 @@ view settings model =
|
||||
, h3 [ class "ui dividing header" ]
|
||||
[ text "Contacts"
|
||||
]
|
||||
, Html.map ContactMsg (Comp.ContactField.view settings model.contactModel)
|
||||
, Html.map ContactMsg (Comp.ContactField.view1 settings compact model.contactModel)
|
||||
, h3 [ class "ui dividing header" ]
|
||||
[ text "Notes"
|
||||
]
|
||||
|
Reference in New Issue
Block a user