Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.78 KB | None | 0 0
  1. <div class="modal show fade in" [@toggleState]="showModalTest" tabindex="-1" role="dialog" aria-hidden="true" #thisModal>
  2. <div class="modal-dialog modal-md ">
  3. <div class="modal-content">
  4. <div class="modal-header">
  5. <button type="button" class="close" (click)="cancelImageUpload()">
  6. <span aria-hidden="true">&times;</span>
  7. </button>
  8. <h6 class="image-gallery-title">{{'modal_image_gallery.label.image_gallery' | translate }}</h6>
  9. </div>
  10. <div class="modal-body">
  11. <div class="container-fluid">
  12.  
  13. <div *ngIf="loadingPictures && ( dcd['sensorId'] || dcd['sensors'])" class="info-text"> Loading the gallery
  14. <i class="fa fa-spinner fa-spin"></i>
  15. </div>
  16.  
  17. <div *ngIf="(!dcd['sensorId'] && !dcd['sensors'] ) && !previewMode && !loadingPictures" class="info-text"> {{ 'modal_image_gallery.label.please_attach_a_sensor_in_order_to_upload_photos' | translate}}</div>
  18.  
  19. <div *ngIf="(!dcd['sensorId'] && !dcd['sensors']) && previewMode && !loadingPictures" class="info-text"> {{ 'modal_image_gallery.label.please_attach_a_sensor_in_order_to_view_photos' | translate}} </div>
  20.  
  21. <div *ngIf="!loadingPictures && imagesUrlList.length == 0 && (dcd['sensorId'] || dcd['sensors'])" class="info-text"> No images in this gallery! </div>
  22.  
  23. <div class="image-gallery" *ngIf="!loadingPictures && (dcd['sensorId'] || dcd['sensors'])">
  24. <div *ngFor="let imageFile of imagesUrlList; let i = index" class="image-slides" [ngClass]="{'show-picture': slideIndex == i}">
  25. <img src="{{imageFile.imageUrl}}" class="image-slide">
  26. </div>
  27.  
  28. <a class="prev" (click)="changePicture(-1)" *ngIf="imagesUrlList.length != 0" [ngClass]="{'change-slides-preview': !dashboardService.editMode, 'prev-firefox': isFirefox, 'prev-ie': isIE}">&#10094;</a>
  29. <a class="next" (click)="changePicture(1)" *ngIf="imagesUrlList.length != 0" [ngClass]="{'change-slides-preview': !dashboardService.editMode}">&#10095;</a>
  30.  
  31. </div>
  32.  
  33. <div class="image-row" *ngIf="!loadingPictures && imagesUrlList.length != 0" [ngClass]="{'image-row-preview': !dashboardService.editMode}">
  34. <div class="image" *ngFor="let imageFile of imagesUrlList; let i = index">
  35. <div (click)="removeImage(i)" class="remove-selected-image" *ngIf="dashboardService.editMode">
  36. <span aria-hidden="true">&times;</span>
  37. </div>
  38. <img src="{{imageFile.imageUrl}}" (click)="currentSlide(i)" class="hover-shadow cursor demo" [ngClass]="{'select-image': slideIndex == i}">
  39. </div>
  40. </div>
  41.  
  42. <div class="add-image" *ngIf="!loadingPictures && dashboardService.editMode && (dcd['sensorId'] || dcd['sensors'])">
  43. <input #fileInput type="file" name="file" id="{{inputId}}" class="inputfile" (change)="imagesUpload($event)" multiple class="hover-shadow cursor demo"
  44. />
  45. <div class="plus-wrapper">
  46. <label for="{{inputId}}" class="image-plus">
  47. <i class="fa fa-plus plusIcon" aria-hidden="true"></i>
  48. </label>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56.  
  57. <div class="overlay" [@toggleOverlay]="showOverlay"></div>
  58.  
  59. <modal-message #modal></modal-message>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement