Reorder user task table columns

This commit is contained in:
Eike Kettner 2020-06-13 14:48:12 +02:00
parent bdfc151272
commit 1f9f09ba6f
2 changed files with 15 additions and 14 deletions

View File

@ -42,15 +42,15 @@ update msg model =
view : Model -> List NotificationSettings -> Html Msg
view _ items =
div []
[ table [ class "ui very basic table" ]
[ table [ class "ui very basic center aligned table" ]
[ thead []
[ th [ class "collapsing" ] []
, th [ class "collapsing" ]
[ i [ class "check icon" ] []
]
, th [] [ text "Schedule" ]
, th [] [ text "Connection" ]
, th [] [ text "Recipients" ]
, th [] [ text "Schedule" ]
, th [] [ text "Remind Days" ]
]
, tbody []
@ -75,17 +75,17 @@ viewItem item =
, td [ class "collapsing" ]
[ Util.Html.checkbox item.enabled
]
, td []
[ code []
[ text item.schedule
]
]
, td []
[ text item.smtpConnection
]
, td []
[ String.join ", " item.recipients |> text
]
, td []
[ code []
[ text item.schedule
]
]
, td []
[ String.fromInt item.remindDays
|> text

View File

@ -42,15 +42,15 @@ update msg model =
view : Model -> List ScanMailboxSettings -> Html Msg
view _ items =
div []
[ table [ class "ui very basic table" ]
[ table [ class "ui very basic center aligned table" ]
[ thead []
[ th [ class "collapsing" ] []
, th [ class "collapsing" ]
[ i [ class "check icon" ] []
]
, th [] [ text "Schedule" ]
, th [] [ text "Connection" ]
, th [] [ text "Folders" ]
, th [] [ text "Schedule" ]
, th [] [ text "Received Since" ]
, th [] [ text "Target" ]
, th [] [ text "Delete" ]
@ -77,21 +77,22 @@ viewItem item =
, td [ class "collapsing" ]
[ Util.Html.checkbox item.enabled
]
, td []
[ code []
[ text item.schedule
]
]
, td []
[ text item.imapConnection
]
, td []
[ String.join ", " item.folders |> text
]
, td []
[ code []
[ text item.schedule
]
]
, td []
[ Maybe.map String.fromInt item.receivedSinceHours
|> Maybe.withDefault "-"
|> text
, text " h"
]
, td []
[ Maybe.withDefault "-" item.targetFolder