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

Transfer Configurations

New Configuration
if len(data.Configs) == 0 {

No configurations

Get started by creating a new transfer configuration.

} else {
    for _, config := range data.Configs {
  • { config.Name }

    Edit

    Source: { config.SourceType }: { config.SourcePath }

    Destination: { config.DestinationType }: { config.DestinationPath }

    Updated: { config.UpdatedAt.Format("2006-01-02 15:04:05") }

  • }
}

Configurations define how files are transferred between systems

} }