| summaryrefslogtreecommitdiff | 
diff options
| author | nsensfel <SpamShield0@noot-noot.org> | 2018-09-14 18:57:42 +0200 | 
|---|---|---|
| committer | nsensfel <SpamShield0@noot-noot.org> | 2018-09-14 18:57:42 +0200 | 
| commit | 2aa0c12b6a193d16681a0179a067664390af7aee (patch) | |
| tree | ca2e2533c3a9947ba5ef9d5e1d646b964ba82eb6 /src/ElmModule/View.elm | |
| parent | ac5b50e4a622ee0885678a96c69af7f49290bcee (diff) | |
...
Diffstat (limited to 'src/ElmModule/View.elm')
| -rw-r--r-- | src/ElmModule/View.elm | 34 | 
1 files changed, 30 insertions, 4 deletions
| diff --git a/src/ElmModule/View.elm b/src/ElmModule/View.elm index 3f0a16f..946bf8e 100644 --- a/src/ElmModule/View.elm +++ b/src/ElmModule/View.elm @@ -4,6 +4,7 @@ module ElmModule.View exposing (view)  import Array  import Html +import Html.Events  import Html.Attributes  -- Extension ------------------------------------------------------------------- @@ -27,7 +28,7 @@ view model =        [           (Html.Attributes.class "fullscreen-module")        ] -      ( +      [           (              case model.error of                 Nothing -> (Util.Html.nothing) @@ -38,8 +39,33 @@ view model =                          (Html.text (Struct.Error.to_string err))                       ]                    ) +         ), +         (Html.div +            [ +            ] +            (List.map (View.Player.get_html) (Array.toList model.players)) +         ), +         (Html.div +            [ +            ] +            [ +               (Html.button +                  [ +                     (Html.Events.onClick Struct.Event.AddPlayer) +                  ] +                  [ +                     (Html.text "Add Player") +                  ] +               ), +               (Html.button +                  [ +                     (Html.Events.onClick Struct.Event.StoreParams) +                  ] +                  [ +                     (Html.text "Save Params") +                  ] +               ) +            ]           ) -         :: -         (List.map (View.Player.get_html) (Array.toList model.players)) -      ) +      ]     ) | 


