Improved error messages in action ui

Change-Id: I902c7b49697c0fdee9cad38800eee975eab54498
This commit is contained in:
Memo García 2015-11-28 18:31:32 +00:00
parent 2cc46f5886
commit f6d896edbf
2 changed files with 4 additions and 2 deletions

View File

@ -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):

View File

@ -14,6 +14,8 @@
<li>N minutes</li>
<li>N seconds</li>
</ul>
<p>{% blocktrans %}If no start date is provided the job will start immediately{% endblocktrans %}</p>
<script type='text/javascript' src='{{ STATIC_URL }}freezer/js/vendor/moment.js'></script>
<script type='text/javascript' src='{{ STATIC_URL }}freezer/js/vendor/bootstrap-datetimepicker.js'></script>