diff --git a/src/elm/Pages/Schedules/Model.elm b/src/elm/Pages/Schedules/Model.elm index 5b4602d2d..74fed989c 100644 --- a/src/elm/Pages/Schedules/Model.elm +++ b/src/elm/Pages/Schedules/Model.elm @@ -74,7 +74,7 @@ type alias ScheduleForm = defaultScheduleUpdate : ScheduleForm defaultScheduleUpdate = - ScheduleForm "Daily" "0 0 * * *" True + ScheduleForm "" "0 0 * * *" True diff --git a/src/elm/Pages/Schedules/View.elm b/src/elm/Pages/Schedules/View.elm index edc344883..3399dff7a 100644 --- a/src/elm/Pages/Schedules/View.elm +++ b/src/elm/Pages/Schedules/View.elm @@ -18,6 +18,7 @@ import Html , a , button , div + , h2 , span , td , text @@ -171,9 +172,10 @@ updateScheduleHref org repo s = -} addSchedule : PartialModel a msg -> Html Msg addSchedule model = - div [ class "add-schedule", Util.testAttribute "add-schedule" ] + div [ class "manage-schedule", Util.testAttribute "manage-schedule" ] [ div [] - [ addForm model.schedulesModel + [ h2 [] [ text "Add Schedule" ] + , addForm model.schedulesModel ] ] @@ -212,7 +214,8 @@ editSchedule model = Success _ -> div [ class "manage-schedule", Util.testAttribute "manage-schedule" ] [ div [] - [ editForm model.schedulesModel + [ h2 [] [ text "View/Edit Schedule" ] + , editForm model.schedulesModel ] ] diff --git a/src/scss/_main.scss b/src/scss/_main.scss index 561a93a9f..7f94f561a 100644 --- a/src/scss/_main.scss +++ b/src/scss/_main.scss @@ -1440,7 +1440,8 @@ details.build-toggle { } .manage-secret .header, -.manage-deployment .header { +.manage-deployment .header, +.manage-schedule .header { display: flex; flex-direction: row; align-items: center; @@ -1451,20 +1452,23 @@ details.build-toggle { } .manage-secret h2, -.manage-deployment h2 { +.manage-deployment h2, +.manage-schedule h2 { margin: 0; border-bottom: 2px solid var(--color-secondary); } .secret-form, -.deployment-form { +.deployment-form, +.schedule-form { margin-bottom: 0.5rem; padding-top: 1rem; } .secret-form section, -.deployment-form section { +.deployment-form section, +.schedule-form section { justify-content: flex-start; margin-bottom: 1rem; } @@ -1547,7 +1551,8 @@ details.build-toggle { .manage-secret textarea, .update-secret textarea, -.manage-deployment textarea { +.manage-deployment textarea, +.manage-schedule textarea { width: 70%; margin-bottom: 0.5rem; padding: 0.5rem; @@ -1567,17 +1572,20 @@ details.build-toggle { } .manage-secret textarea, -.manage-deployment textarea { +.manage-deployment textarea, +.manage-schedule textarea { max-width: 70%; } .secret-form .help, -.deployment-form .help { +.deployment-form .help, +.schedule-form .help { padding-bottom: 1rem; } .secret-form .form-action, -.deployment-form .form-action { +.deployment-form .form-action, +.schedule-form .form-action { padding-left: 1rem; }