Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div [@fadeInAnimation]="true" *ngIf="items">
- <h2>
- <span jhiTranslate="hamsterApp.scheduler.home.title"></span>
- </h2>
- <jhi-alert-error></jhi-alert-error>
- <div *ngIf="items !== undefined && (!items || !items.length)" class="w-100 alert alert-warning"><span
- jhiTranslate="form.emptyList"></span></div>
- <div class="table-responsive" *ngIf="items?.length">
- <table class="table ing clickable">
- <thead>
- <tr>
- <th><span jhiTranslate="hamsterApp.scheduler.details.name"></span></th>
- <th><span jhiTranslate="hamsterApp.scheduler.details.lastStart"></span></th>
- <th><span jhiTranslate="hamsterApp.scheduler.details.nextStart"></span></th>
- <th><span jhiTranslate="hamsterApp.scheduler.details.status"></span></th>
- <th><span jhiTranslate="form.action"></span></th>
- </tr>
- </thead>
- <tbody>
- <ng-template ngFor let-item [ngForOf]="items" [ngForTrackBy]="trackId">
- <tr [class.selected]="selectedItem === item">
- <td (click)="selectRow(item)">{{item.name}}</td>
- <td (click)="selectRow(item)">{{item.lastStart | datex:'YYYY-MM-DD HH:mm:ss'}}</td>
- <td (click)="selectRow(item)">{{item.nextStart | datex:'YYYY-MM-DD HH:mm:ss'}}</td>
- <td (click)="selectRow(item)">{{item.status}}</td>
- <td>
- <div class="pull-left">
- <button (click)="resumeScheduler(item.name)"
- [disabled]="item.status==='WAITING'"
- class="btn btn-primary btn-sm"
- type ="button"
- data-toggle="tooltip"
- ngbTooltip="{{getLabel('hamsterApp.scheduler.buttons.resume')}}"
- >
- <span jhiTranslate="hamsterApp.scheduler.form.resume"></span>
- </button>
- <button (click)="stopScheduler(item.name)"
- [disabled]="item.status==='ERROR'"
- class="btn btn-secondary btn-sm"
- type ="button"
- data-toggle="tooltip"
- ngbTooltip="{{getLabel('hamsterApp.scheduler.buttons.stop')}}"
- >
- <span jhiTranslate="hamsterApp.scheduler.form.stop"></span>
- </button>
- </div>
- </td>
- </tr>
- </ng-template>
- </tbody>
- </table>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement