package components import ( "context" "fmt" "github.com/starfleetcptn/gomft/internal/db" ) type JobsData struct { Jobs []db.Job } templ Jobs(ctx context.Context, data JobsData) { @LayoutWithContext("Transfer Jobs", ctx) {

Transfer Jobs

New Job
if len(data.Jobs) == 0 {

No jobs

Get started by creating a new transfer job.

} else {
    for _, job := range data.Jobs {
  • if job.Name != "" { { job.Name } } else { { job.Config.Name } }

    if job.Enabled { Active } else { Inactive }
    Edit

    Config: { job.Config.Name }

    Schedule: { job.Schedule }

    if job.LastRun != nil {

    Last Run: { job.LastRun.Format("2006-01-02 15:04:05") }

    }
    if job.NextRun != nil {

    Next Run: { job.NextRun.Format("2006-01-02 15:04:05") }

    }
  • }
}

Transfer jobs run according to their schedule and transfer files between configured sources and destinations

} }