Advertisement
Guest User

Scheduler HTML

a guest
Nov 23rd, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div [@fadeInAnimation]="true" *ngIf="items">
  2.  
  3.     <h2>
  4.         <span jhiTranslate="hamsterApp.scheduler.home.title"></span>
  5.     </h2>
  6.     <jhi-alert-error></jhi-alert-error>
  7.  
  8.     <div *ngIf="items !== undefined && (!items || !items.length)" class="w-100 alert alert-warning"><span
  9.         jhiTranslate="form.emptyList"></span></div>
  10.     <div class="table-responsive" *ngIf="items?.length">
  11.         <table class="table ing clickable">
  12.             <thead>
  13.             <tr>
  14.                 <th><span jhiTranslate="hamsterApp.scheduler.details.name"></span></th>
  15.                 <th><span jhiTranslate="hamsterApp.scheduler.details.lastStart"></span></th>
  16.                  <th><span jhiTranslate="hamsterApp.scheduler.details.nextStart"></span></th>
  17.                 <th><span jhiTranslate="hamsterApp.scheduler.details.status"></span></th>    
  18.                 <th><span jhiTranslate="form.action"></span></th>
  19.                                
  20.             </tr>
  21.             </thead>
  22.             <tbody>
  23.             <ng-template ngFor let-item [ngForOf]="items" [ngForTrackBy]="trackId">
  24.                 <tr  [class.selected]="selectedItem === item">
  25.                     <td (click)="selectRow(item)">{{item.name}}</td>
  26.                     <td (click)="selectRow(item)">{{item.lastStart | datex:'YYYY-MM-DD HH:mm:ss'}}</td>
  27.                     <td (click)="selectRow(item)">{{item.nextStart | datex:'YYYY-MM-DD HH:mm:ss'}}</td>
  28.                     <td (click)="selectRow(item)">{{item.status}}</td>  
  29.                     <td>
  30.                         <div class="pull-left">
  31.                             <button (click)="resumeScheduler(item.name)"
  32.                             [disabled]="item.status==='WAITING'"
  33.                             class="btn btn-primary btn-sm"
  34.                             type ="button"
  35.                             data-toggle="tooltip"
  36.                             ngbTooltip="{{getLabel('hamsterApp.scheduler.buttons.resume')}}"                            
  37.                             >
  38.                         <span jhiTranslate="hamsterApp.scheduler.form.resume"></span>
  39.                     </button>
  40.                     <button (click)="stopScheduler(item.name)"
  41.                             [disabled]="item.status==='ERROR'"
  42.                             class="btn btn-secondary btn-sm"
  43.                             type ="button"
  44.                             data-toggle="tooltip"
  45.                             ngbTooltip="{{getLabel('hamsterApp.scheduler.buttons.stop')}}"
  46.                             >
  47.                         <span jhiTranslate="hamsterApp.scheduler.form.stop"></span>
  48.                     </button>
  49.                         </div>
  50.  
  51.                     </td>                  
  52.                 </tr>
  53.             </ng-template>
  54.             </tbody>
  55.         </table>
  56.     </div>
  57. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement