Add common cron pattern dropdown
This commit is contained in:
@@ -1015,7 +1015,17 @@
|
||||
<div class="col-md-12">
|
||||
<form role="form" name="cronForm" ng-submit="cron.submit()" autocomplete="off">
|
||||
<div class="form-group" ng-class="{ 'has-error': cron.error.crontab }">
|
||||
<label class="control-label" style="width: 100%">{{ 'app.cron.title' | tr }} <sup><a ng-href="https://docs.cloudron.io/apps/#cron" class="help" target="_blank"><i class="fa fa-question-circle"></i></a></sup></label>
|
||||
<label class="control-label" style="width: 100%">{{ 'app.cron.title' | tr }} <sup><a ng-href="https://docs.cloudron.io/apps/#cron" class="help" target="_blank"><i class="fa fa-question-circle"></i></a></sup>
|
||||
<div class="dropdown pull-right">
|
||||
<a class="dropdown-toggle hand" style="font-weight: normal;" id="commonCronPatternDropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
||||
Add common pattern
|
||||
<span class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu" aria-labelledby="commonCronPatternDropdown">
|
||||
<li ng-repeat="pattern in cron.commonPatterns"><a class="hand" ng-click="cron.addCommonPattern(pattern.value)">{{ pattern.label }}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</label>
|
||||
<div ng-show="cron.error.crontab"><small>{{ cron.error.crontab }}</small></div>
|
||||
<textarea ng-trim="false" style="white-space: pre-wrap" ng-model="cron.crontab" class="form-control text-monospace" rows="10"></textarea>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user