From f6d896edbff0e7aa445d9cf0a5776f0f3e5191d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Memo=20Garc=C3=ADa?= Date: Sat, 28 Nov 2015 18:31:32 +0000 Subject: [PATCH] Improved error messages in action ui Change-Id: I902c7b49697c0fdee9cad38800eee975eab54498 --- disaster_recovery/actions/workflows/action.py | 4 ++-- disaster_recovery/jobs/templates/jobs/_scheduling.html | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/disaster_recovery/actions/workflows/action.py b/disaster_recovery/actions/workflows/action.py index bd9f544..08ff273 100644 --- a/disaster_recovery/actions/workflows/action.py +++ b/disaster_recovery/actions/workflows/action.py @@ -45,7 +45,7 @@ class ActionConfigurationAction(workflows.Action): required=True) backup_name = forms.CharField( - label=_("Job Name"), + label=_("Action Name"), required=False) mysql_conf = forms.CharField( @@ -188,7 +188,7 @@ class ActionConfigurationAction(workflows.Action): def _check_backup_name(self, cleaned_data): if not cleaned_data.get('backup_name'): - msg = _("You must define a job name.") + msg = _("You must define an action name.") self._errors['backup_name'] = self.error_class([msg]) def _check_path_to_backup(self, cleaned_data): diff --git a/disaster_recovery/jobs/templates/jobs/_scheduling.html b/disaster_recovery/jobs/templates/jobs/_scheduling.html index e93ac87..834a87e 100644 --- a/disaster_recovery/jobs/templates/jobs/_scheduling.html +++ b/disaster_recovery/jobs/templates/jobs/_scheduling.html @@ -14,6 +14,8 @@
  • N minutes
  • N seconds
  • +

    {% blocktrans %}If no start date is provided the job will start immediately{% endblocktrans %}

    +