cron: add default text

This commit is contained in:
Girish Ramakrishnan
2021-09-28 10:13:40 -07:00
parent 93e003b31e
commit feea08adee

View File

@@ -905,10 +905,20 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
crontab: '',
crontabDefault: ''
+ '# +---------------- minute (0 - 59)\n'
+ '# | +------------- hour (0 - 23)\n'
+ '# | | +---------- day of month (1 - 31)\n'
+ '# | | | +------- month (1 - 12)\n'
+ '# | | | | +---- day of week (0 - 6) (Sunday=0 or 7)\n'
+ '# | | | | |\n'
+ '# * * * * * command to be executed\n\n',
show: function () {
$scope.cronForm.$setPristine();
$scope.cron.error = {};
$scope.cron.crontab = $scope.app.crontab;
if ($scope.cron.crontab === null) $scope.cron.crontab = $scope.cron.crontabDefault; // only when null, not when ''
},
submit: function () {