destinations
1 year ago
modal
10 months ago
settings
6 days ago
404.htm
1 year ago
alerts.htm
1 year ago
backups.htm
1 year ago
dashboard.htm
1 year ago
destinations.htm
9 months ago
downloads.htm
1 year ago
jobs.htm
1 year ago
main.htm
1 year ago
mfa.htm
1 year ago
queue.htm
1 year ago
schedules.htm
1 year ago
settings.htm
1 year ago
system.htm
11 months ago
schedules.htm
111 lines
| 1 | <div ng-controller="schedules" class="jb-list-backups-container jb-grey-0"> |
| 2 | |
| 3 | <div class="row" navigation active="menuItem"></div> |
| 4 | |
| 5 | <div class="row rounded-4 jb-white-0 jb-panel-row shadow-lg"> |
| 6 | <div class="jb-main-title rounded-3"> |
| 7 | {{ lang.t("Schedules") }} |
| 8 | </div> |
| 9 | <div class="jb-title-description"> |
| 10 | <p>{{ lang.t("Set up recurring schedules to run your backup jobs automatically at regular intervals. Assign schedules to jobs from the Backup Jobs tab to ensure consistent and reliable backups.") }}</p> |
| 11 | </div> |
| 12 | |
| 13 | <div class="row jb-table-row"> |
| 14 | <div class="table-responsive"> |
| 15 | |
| 16 | <div class="row mb-10"> |
| 17 | <div class="col-md-4 d-flex pt-2"> |
| 18 | <search placeholder="{{ lang.t('Search here...') }}" ng-model="metaData.filterValue" ng-change="fetch()"></search> |
| 19 | </div> |
| 20 | <div class="col-md-8 d-flex justify-content-end"> |
| 21 | <a ng-click="manageSchedule()" class="jb-action-button"> |
| 22 | <i class="fa-sharp fa-solid fa-plus"></i> {{ lang.t('Create New Schedule') }} |
| 23 | </a> |
| 24 | </div> |
| 25 | </div> |
| 26 | <div class="snake-line" ng-class="{ 'loading': loading }"></div> |
| 27 | <table class="jb-table table table-hover"> |
| 28 | <thead> |
| 29 | <tr> |
| 30 | <th></th> |
| 31 | <th scope="col"> |
| 32 | <button sort-by sort-meta="meta" sort-field="name" onSort="fetch()" title="{{ lang.t('Sort by %s.', lang.t('Name')) }}">{{ lang.t("Name") }}</button> |
| 33 | </th> |
| 34 | |
| 35 | <th scope="col"> |
| 36 | <button >{{ lang.t("Type") }}</button> |
| 37 | </th> |
| 38 | |
| 39 | <th scope="col"> |
| 40 | <button>{{ lang.t("Jobs Assigned") }}</button> |
| 41 | </th> |
| 42 | </tr> |
| 43 | </thead> |
| 44 | <tbody> |
| 45 | |
| 46 | <tr ng-if="initialLoading"> |
| 47 | <td colspan="8" class="text-center jb-loading-row"> |
| 48 | <div class="jb-loading-screen"> |
| 49 | <p class="jb-loading-text"> |
| 50 | Loading<span class="jb-dots"><span></span><span></span><span></span></span> |
| 51 | </p> |
| 52 | </div> |
| 53 | </td> |
| 54 | </tr> |
| 55 | |
| 56 | <tr ng-show="!initialLoading && !schedules.length && !loading"> |
| 57 | <td><p>{{ lang.t("No Schedules are found.") }}</p></td> |
| 58 | </tr> |
| 59 | |
| 60 | <tr ng-repeat-start="schedule in schedules" |
| 61 | class="jb-table-tr schedules" |
| 62 | ng-click="toggleDetail($index)" |
| 63 | ng-class="{'jb-table-tr-selected': isDetailVisible($index)}"> |
| 64 | |
| 65 | <!-- Default Marker Column --> |
| 66 | <td class="text-center" title="{{ schedule.default ? lang.t('This is a system default schedule.') : '' }}"> |
| 67 | <i class="fa fa-star" ng-class="{'text-warning': schedule.default, 'text-muted': !schedule.default}" aria-hidden="true"></i> |
| 68 | </td> |
| 69 | |
| 70 | <td>{{schedule.name}}</td> |
| 71 | <td>{{schedule.type_name}}</td> |
| 72 | <td> |
| 73 | <span ng-repeat="job_name in schedule.job_names"> |
| 74 | {{job_name}}{{$last ? '' : ', '}} |
| 75 | </span> |
| 76 | </td> |
| 77 | </tr> |
| 78 | <tr ng-repeat-end ng-show="isDetailVisible($index)" |
| 79 | ng-class="{'jb-table-tr-selected': isDetailVisible($index)}"> |
| 80 | <td colspan="4" class="jb-table-elements"> |
| 81 | <div class="d-grid gap-2 d-md-flex justify-content-md-start"> |
| 82 | <div class="row g-2"> |
| 83 | |
| 84 | <!-- buttons start --> |
| 85 | <div class="col-12 col-md-auto" ng-repeat="action in actions"> |
| 86 | <button ng-click="performAction(schedule._id, action.name)" |
| 87 | id="jbid_{{schedule._id}}_{{action.name}}" |
| 88 | name="{{action.name}}" |
| 89 | ng-class="{'jb-red-button': action.name === 'delete'}" |
| 90 | class="btn btn-primary jb-full-restore-button w-100" |
| 91 | type="button"> |
| 92 | <span class="icon"> |
| 93 | <i class="fa-sharp fa-light {{action.icon}}"></i> |
| 94 | </span> |
| 95 | {{ lang.t(action.label) }} |
| 96 | </button> |
| 97 | </div> |
| 98 | <!-- buttons end --> |
| 99 | </div> |
| 100 | </div> |
| 101 | </td> |
| 102 | </tr> |
| 103 | |
| 104 | </tbody> |
| 105 | </table> |
| 106 | <pagination fetch="fetch" meta="meta"></pagination> |
| 107 | |
| 108 | </div> <!-- table row --> |
| 109 | </div> |
| 110 | </div> |
| 111 | </div> |