mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 19:08:26 +00:00
Render edit-modals above the menu and not the whole page
This commit is contained in:
@ -6,6 +6,7 @@ module Comp.OrgForm exposing
|
||||
, isValid
|
||||
, update
|
||||
, view
|
||||
, view1
|
||||
)
|
||||
|
||||
import Api.Model.Organization exposing (Organization)
|
||||
@ -109,6 +110,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
|
||||
@ -132,7 +138,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