Merge "Add visual clues for mandatory fields in actions"

This commit is contained in:
Jenkins 2016-01-13 11:05:01 +00:00 committed by Gerrit Code Review
commit fc5d38a483
1 changed files with 11 additions and 11 deletions

View File

@ -45,34 +45,34 @@ class ActionConfigurationAction(workflows.Action):
required=True) required=True)
backup_name = forms.CharField( backup_name = forms.CharField(
label=_("Action Name"), label=_("Action Name *"),
required=False) required=False)
mysql_conf = forms.CharField( mysql_conf = forms.CharField(
label=_("MySQL Configuration File"), label=_("MySQL Configuration File *"),
help_text=_("Set the path where the MySQL configuration file " help_text=_("Set the path where the MySQL configuration file "
"is on the file system "), "is on the file system "),
required=False) required=False)
sql_server_conf = forms.CharField( sql_server_conf = forms.CharField(
label=_("SQL Server Configuration File"), label=_("SQL Server Configuration File *"),
help_text=_("Set the path where the SQL Server configuration file" help_text=_("Set the path where the SQL Server configuration file"
" is on the file system"), " is on the file system"),
required=False) required=False)
path_to_backup = forms.CharField( path_to_backup = forms.CharField(
label=_("Source File/Directory"), label=_("Source File/Directory *"),
help_text=_("The file or directory you want to back up."), help_text=_("The file or directory you want to back up."),
required=False) required=False)
container = forms.CharField( container = forms.CharField(
label=_("Container Name or Path"), label=_("Container Name or Path *"),
help_text=_("Swift container for swift backend or " help_text=_("Swift container for swift backend or "
"path for ssh or local backend"), "path for ssh or local backend"),
required=False) required=False)
restore_abs_path = forms.CharField( restore_abs_path = forms.CharField(
label=_("Restore Absolute Path"), label=_("Restore Absolute Path *"),
help_text=_("Set the absolute path where you" help_text=_("Set the absolute path where you"
" want your data restored."), " want your data restored."),
required=False) required=False)
@ -99,12 +99,12 @@ class ActionConfigurationAction(workflows.Action):
required=False) required=False)
cinder_vol_id = forms.CharField( cinder_vol_id = forms.CharField(
label=_("Cinder Volume ID"), label=_("Cinder Volume ID *"),
help_text=_("Id of cinder volume for backup"), help_text=_("Id of cinder volume for backup"),
required=False) required=False)
nova_inst_id = forms.CharField( nova_inst_id = forms.CharField(
label=_("Nova Volume ID"), label=_("Nova Volume ID *"),
help_text=_("Id of nova instance for backup"), help_text=_("Id of nova instance for backup"),
required=False) required=False)
@ -141,17 +141,17 @@ class ActionConfigurationAction(workflows.Action):
required=False) required=False)
ssh_key = forms.CharField( ssh_key = forms.CharField(
label=_("SSH Private Key"), label=_("SSH Private Key *"),
help_text=_("Path for ssh private key"), help_text=_("Path for ssh private key"),
required=False) required=False)
ssh_username = forms.CharField( ssh_username = forms.CharField(
label=_("SSH Username"), label=_("SSH Username *"),
help_text=_("Path for ssh private key"), help_text=_("Path for ssh private key"),
required=False) required=False)
ssh_host = forms.CharField( ssh_host = forms.CharField(
label=_("SSH Host"), label=_("SSH Host *"),
help_text=_("IP address or dns name of host to connect through ssh"), help_text=_("IP address or dns name of host to connect through ssh"),
required=False) required=False)