chore (debt): cleanup tech debt

This commit is contained in:
MickaelK
2024-03-19 07:54:49 +11:00
parent 4244c9c604
commit 3d4aa9c785

View File

@ -188,45 +188,45 @@ func (f Ftp) Init(params map[string]string, app *App) (IBackend, error) {
func (f Ftp) LoginForm() Form { func (f Ftp) LoginForm() Form {
return Form{ return Form{
Elmnts: []FormElement{ Elmnts: []FormElement{
FormElement{ {
Name: "type", Name: "type",
Type: "hidden", Type: "hidden",
Value: "ftp", Value: "ftp",
}, },
FormElement{ {
Name: "hostname", Name: "hostname",
Type: "text", Type: "text",
Placeholder: "Hostname*", Placeholder: "Hostname*",
}, },
FormElement{ {
Name: "username", Name: "username",
Type: "text", Type: "text",
Placeholder: "Username", Placeholder: "Username",
}, },
FormElement{ {
Name: "password", Name: "password",
Type: "password", Type: "password",
Placeholder: "Password", Placeholder: "Password",
}, },
FormElement{ {
Name: "advanced", Name: "advanced",
Type: "enable", Type: "enable",
Placeholder: "Advanced", Placeholder: "Advanced",
Target: []string{"ftp_path", "ftp_port", "ftp_conn"}, Target: []string{"ftp_path", "ftp_port", "ftp_conn"},
}, },
FormElement{ {
Id: "ftp_path", Id: "ftp_path",
Name: "path", Name: "path",
Type: "text", Type: "text",
Placeholder: "Path", Placeholder: "Path",
}, },
FormElement{ {
Id: "ftp_port", Id: "ftp_port",
Name: "port", Name: "port",
Type: "number", Type: "number",
Placeholder: "Port", Placeholder: "Port",
}, },
FormElement{ {
Id: "ftp_conn", Id: "ftp_conn",
Name: "conn", Name: "conn",
Type: "number", Type: "number",