Improved error messages in action ui
Change-Id: I902c7b49697c0fdee9cad38800eee975eab54498
This commit is contained in:
parent
2cc46f5886
commit
f6d896edbf
@ -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):
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user