diff --git a/plinth/modules/backups/forms.py b/plinth/modules/backups/forms.py index 3ccb62956..e118b7eeb 100644 --- a/plinth/modules/backups/forms.py +++ b/plinth/modules/backups/forms.py @@ -184,7 +184,7 @@ class EncryptedBackupsMixin(forms.Form): choices=[('repokey', _('Key in Repository')), ('none', _('None'))]) encryption_passphrase = forms.CharField( label=_('Passphrase'), - help_text=_('Passphrase; Only needed when using encryption.'), + help_text=_('Only needed when using encryption.'), widget=forms.PasswordInput(), required=False) confirm_encryption_passphrase = forms.CharField( label=_('Confirm Passphrase'), help_text=_('Repeat the passphrase.'), @@ -264,9 +264,9 @@ class AddRemoteRepositoryForm(EncryptedBackupsMixin, forms.Form): ('password_auth', _('Password-based Authentication'))]) ssh_password = forms.CharField( label=_('SSH server password'), widget=forms.PasswordInput(), - strip=True, help_text=_( - 'Password of the SSH Server. Required only for Password-based ' - 'Authentication.'), required=False) + strip=True, + help_text=_('Required only for password-based authentication.'), + required=False) field_order = ['repository', 'ssh_auth_type', 'ssh_password' ] + encryption_fields diff --git a/plinth/modules/backups/static/backups_add_remote_repository.js b/plinth/modules/backups/static/backups_add_remote_repository.js index 3377259e3..720a247e9 100644 --- a/plinth/modules/backups/static/backups_add_remote_repository.js +++ b/plinth/modules/backups/static/backups_add_remote_repository.js @@ -23,8 +23,8 @@ */ document.addEventListener('DOMContentLoaded', () => { - const keyAuth = document.getElementById('id_ssh_auth_type_0'); - const passwordAuth = document.getElementById('id_ssh_auth_type_1'); + const keyAuth = document.getElementById('id_ssh_auth_type_key'); + const passwordAuth = document.getElementById('id_ssh_auth_type_password'); const sshPasswordField = document.getElementById('id_ssh_password'); const encryptionType = document.getElementById('id_encryption'); const encryptionPassphraseField = document.getElementById('id_encryption_passphrase'); diff --git a/plinth/modules/backups/templates/backups_add_remote_repository.html b/plinth/modules/backups/templates/backups_add_remote_repository.html index 939195d3c..79754d225 100644 --- a/plinth/modules/backups/templates/backups_add_remote_repository.html +++ b/plinth/modules/backups/templates/backups_add_remote_repository.html @@ -17,36 +17,157 @@