mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 02:48:26 +00:00
Prepare notification form
This commit is contained in:
42
modules/webapp/src/main/elm/Comp/NotificationForm.elm
Normal file
42
modules/webapp/src/main/elm/Comp/NotificationForm.elm
Normal file
@ -0,0 +1,42 @@
|
||||
module Comp.NotificationForm exposing
|
||||
( Model
|
||||
, Msg
|
||||
, init
|
||||
, update
|
||||
, view
|
||||
)
|
||||
|
||||
import Api.Model.NotificationSettings exposing (NotificationSettings)
|
||||
import Data.Flags exposing (Flags)
|
||||
import Html exposing (..)
|
||||
import Html.Attributes exposing (..)
|
||||
|
||||
|
||||
type alias Model =
|
||||
{ settings : NotificationSettings
|
||||
}
|
||||
|
||||
|
||||
type Msg
|
||||
= Submit
|
||||
|
||||
|
||||
init : Model
|
||||
init =
|
||||
{ settings = Api.Model.NotificationSettings.empty
|
||||
}
|
||||
|
||||
|
||||
update : Flags -> Msg -> Model -> ( Model, Cmd Msg )
|
||||
update flags msg model =
|
||||
( model, Cmd.none )
|
||||
|
||||
|
||||
view : Model -> Html Msg
|
||||
view model =
|
||||
div
|
||||
[ classList
|
||||
[ ( "ui form", True )
|
||||
]
|
||||
]
|
||||
[]
|
Reference in New Issue
Block a user