Merge pull request #442 from eikek/fix-tables

Fix table layout and notification form
This commit is contained in:
mergify[bot] 2020-11-14 23:19:46 +00:00 committed by GitHub
commit 8173a26985
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 44 additions and 32 deletions

View File

@ -46,10 +46,12 @@ view : Model -> Html Msg
view model = view model =
table [ class "ui selectable pointer table" ] table [ class "ui selectable pointer table" ]
[ thead [] [ thead []
[ tr []
[ th [ class "collapsible" ] [ text "Name" ] [ th [ class "collapsible" ] [ text "Name" ]
, th [] [ text "Host/Port" ] , th [] [ text "Host/Port" ]
, th [] [ text "From" ] , th [] [ text "From" ]
] ]
]
, tbody [] , tbody []
(List.map (renderLine model) model.emailSettings) (List.map (renderLine model) model.emailSettings)
] ]

View File

@ -45,6 +45,7 @@ view _ items =
div [] div []
[ table [ class "ui very basic center aligned table" ] [ table [ class "ui very basic center aligned table" ]
[ thead [] [ thead []
[ tr []
[ th [ class "collapsing" ] [] [ th [ class "collapsing" ] []
, th [] [ text "Name" ] , th [] [ text "Name" ]
, th [] [ text "Owner" ] , th [] [ text "Owner" ]
@ -52,6 +53,7 @@ view _ items =
, th [] [ text "#Member" ] , th [] [ text "#Member" ]
, th [] [ text "Created" ] , th [] [ text "Created" ]
] ]
]
, tbody [] , tbody []
(List.map viewItem items) (List.map viewItem items)
] ]

View File

@ -46,9 +46,11 @@ view : Model -> Html Msg
view model = view model =
table [ class "ui selectable pointer table" ] table [ class "ui selectable pointer table" ]
[ thead [] [ thead []
[ tr []
[ th [ class "collapsible" ] [ text "Name" ] [ th [ class "collapsible" ] [ text "Name" ]
, th [] [ text "Host/Port" ] , th [] [ text "Host/Port" ]
] ]
]
, tbody [] , tbody []
(List.map (renderLine model) model.emailSettings) (List.map (renderLine model) model.emailSettings)
] ]

View File

@ -131,7 +131,7 @@ init : Flags -> ( Model, Cmd Msg )
init flags = init flags =
let let
initialSchedule = initialSchedule =
Data.Validated.Unknown Data.CalEvent.everyMonth Data.Validated.Valid Data.CalEvent.everyMonth
sm = sm =
Comp.CalEventInput.initDefault Comp.CalEventInput.initDefault

View File

@ -44,6 +44,7 @@ view _ items =
div [] div []
[ table [ class "ui very basic center aligned table" ] [ table [ class "ui very basic center aligned table" ]
[ thead [] [ thead []
[ tr []
[ th [ class "collapsing" ] [] [ th [ class "collapsing" ] []
, th [ class "collapsing" ] , th [ class "collapsing" ]
[ i [ class "check icon" ] [] [ i [ class "check icon" ] []
@ -53,6 +54,7 @@ view _ items =
, th [] [ text "Recipients" ] , th [] [ text "Recipients" ]
, th [] [ text "Remind Days" ] , th [] [ text "Remind Days" ]
] ]
]
, tbody [] , tbody []
(List.map viewItem items) (List.map viewItem items)
] ]

View File

@ -44,6 +44,7 @@ view _ items =
div [] div []
[ table [ class "ui very basic center aligned table" ] [ table [ class "ui very basic center aligned table" ]
[ thead [] [ thead []
[ tr []
[ th [ class "collapsing" ] [] [ th [ class "collapsing" ] []
, th [ class "collapsing" ] , th [ class "collapsing" ]
[ i [ class "check icon" ] [] [ i [ class "check icon" ] []
@ -55,6 +56,7 @@ view _ items =
, th [] [ text "Target" ] , th [] [ text "Target" ]
, th [] [ text "Delete" ] , th [] [ text "Delete" ]
] ]
]
, tbody [] , tbody []
(List.map viewItem items) (List.map viewItem items)
] ]

View File

@ -103,11 +103,13 @@ view model =
Nothing -> Nothing ->
table [ class "ui selectable pointer very basic table" ] table [ class "ui selectable pointer very basic table" ]
[ thead [] [ thead []
[ tr []
[ th [ class "collapsing" ] [ text "Recipients" ] [ th [ class "collapsing" ] [ text "Recipients" ]
, th [] [ text "Subject" ] , th [] [ text "Subject" ]
, th [ class "collapsible" ] [ text "Sent" ] , th [ class "collapsible" ] [ text "Sent" ]
, th [ class "collapsible" ] [ text "Sender" ] , th [ class "collapsible" ] [ text "Sender" ]
] ]
]
, tbody [] <| , tbody [] <|
List.map List.map
renderLine renderLine