mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 19:08:26 +00:00
Remove old ui code in frontend
This commit is contained in:
@ -5,8 +5,6 @@ module Comp.OrgForm exposing
|
||||
, getOrg
|
||||
, isValid
|
||||
, update
|
||||
, view
|
||||
, view1
|
||||
, view2
|
||||
)
|
||||
|
||||
@ -121,50 +119,6 @@ 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
|
||||
[ ( "field", True )
|
||||
, ( "error", not (isValid model) )
|
||||
]
|
||||
]
|
||||
[ label [] [ text "Name*" ]
|
||||
, input
|
||||
[ type_ "text"
|
||||
, onInput SetName
|
||||
, placeholder "Name"
|
||||
, value model.name
|
||||
]
|
||||
[]
|
||||
]
|
||||
, h3 [ class "ui dividing header" ]
|
||||
[ text "Address"
|
||||
]
|
||||
, Html.map AddressMsg (Comp.AddressForm.view settings model.addressModel)
|
||||
, h3 [ class "ui dividing header" ]
|
||||
[ text "Contacts"
|
||||
]
|
||||
, Html.map ContactMsg (Comp.ContactField.view1 settings compact model.contactModel)
|
||||
, h3 [ class "ui dividing header" ]
|
||||
[ text "Notes"
|
||||
]
|
||||
, div [ class "field" ]
|
||||
[ textarea
|
||||
[ onInput SetNotes
|
||||
, Maybe.withDefault "" model.notes |> value
|
||||
]
|
||||
[]
|
||||
]
|
||||
]
|
||||
|
||||
|
||||
|
||||
--- View2
|
||||
|
||||
|
Reference in New Issue
Block a user