Angular app for CAC desktop
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

table.component.html 5.1 KiB

il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <div class="subpage">
  2. <header class="main-header">
  3. <h2> All Partners <ng-container *ngIf="userData">({{ userData.length }})</ng-container> </h2>
  4. </header>
  5. <div class="card">
  6. <div class="shadow" *ngIf="showExportOptions" (click)="showExportOptions = false"></div>
  7. <div class="table-actions">
  8. <div class="input-holder side-label">
  9. <input type="text" placeholder="Partner name" [(ngModel)]="searchText" (input)="getFilteredData()">
  10. <label> Search </label>
  11. </div>
  12. <button class="button" (click)="shouldHaveImplementationData = !shouldHaveImplementationData; getFilteredData()">
  13. <ng-container *ngIf="!shouldHaveImplementationData">
  14. Partners with implmentation data
  15. </ng-container>
  16. <ng-container *ngIf="shouldHaveImplementationData">
  17. Show all Partners
  18. </ng-container>
  19. </button>
  20. <button [disabled]="selectedPartnerList.length === 0" class="button" (click)="showExportOptions = true"> <img src="assets/export.svg" alt=""> Export </button>
  21. <button class="button"> <img src="assets/filter.svg" alt=""> Filter </button>
  22. </div>
  23. <ng-container *ngIf="showExportOptions">
  24. <div class="export-options">
  25. <div class="sub-options" *ngIf="shouldHaveImplementationData">
  26. <header>
  27. <h5>Select Data Type</h5>
  28. </header>
  29. <div>
  30. <span>Profile Data</span>
  31. <div class="radioButton" [ngClass]="{'active' : isProfileData}" (click) = "isProfileData = true; isImplementationData=false; isBothData=false" ></div>
  32. </div>
  33. <div>
  34. <span>Implementation Data</span>
  35. <div class="radioButton" [ngClass]="{'active' : isImplementationData}" (click) = "isImplementationData= true; isProfileData=false; isBothData=false" ></div>
  36. </div>
  37. <div>
  38. <span>Both</span>
  39. <div class="radioButton" [ngClass]="{'active' : isBothData}" (click)="isBothData = true; isProfileData = false; isImplementationData=false"></div>
  40. </div>
  41. </div>
  42. <header>
  43. <h5> Export as </h5>
  44. </header>
  45. <div class="options">
  46. <button (click) ="exportProfileData('CSV')" class="button"> CSV </button>
  47. <button (click) ="exportProfileData('XLSX')" class="button"> Excel </button>
  48. </div>
  49. </div>
  50. </ng-container>
  51. <section class="table">
  52. <header>
  53. <div class="col"> <input type="checkbox" [checked]="isAllInputChecked()" (change)="selectAllPartner()"> Select </div>
  54. <div class="col"> Name </div>
  55. <div class="col"> Primary Disctrict &amp; State </div>
  56. <div class="col"> Type </div>
  57. <div class="col"> Total Reach </div>
  58. <div class="col"> Website </div>
  59. <div class="col"> Primary Contact </div>
  60. </header>
  61. <section class="data">
  62. <div class="row" *ngFor="let partner of tempUserData">
  63. <div class="col"> <input type="checkbox" [checked]="isInputChecked(partner)" (change)="selectPartner(partner)"> </div>
  64. <div class="col" (click)="showPartnerDetails(partner)">
  65. {{ partner.organizationBasicInfo.name }}
  66. </div>
  67. <div class="col" (click)="showPartnerDetails(partner)">
  68. {{ partner.detailedProfile.district }}, {{ partner.detailedProfile.state }}
  69. </div>
  70. <div class="col" (click)="showPartnerDetails(partner)">
  71. {{ partner.organizationBasicInfo.type }}
  72. </div>
  73. <div class="col">
  74. {{ partner.detailedProfile.totalReachOfOrganization }}
  75. </div>
  76. <div class="col">
  77. <a target="_blank" [href]="partner.organizationBasicInfo.website">{{
  78. partner.organizationBasicInfo.website }}</a>
  79. </div>
  80. <div class="col">
  81. <div> {{ partner.primaryContact.name }} </div>
  82. <a href="mailTo:{{partner.primaryContact.email}}"> {{ partner.primaryContact.email }} </a>
  83. <a href="tel:{{partner.primaryContact.contactNumber}}"> {{ partner.primaryContact.contactNumber }} </a>
  84. </div>
  85. </div>
  86. <div class="row" *ngIf="userData.length > tempUserData.length">
  87. <button class="button" (click)="loadMore()"> Load More </button>
  88. </div>
  89. </section>
  90. </section>
  91. </div>
  92. </div>