backend: microservices-oriented architecture, clean-architecture design pattern, spring-boot, spring cloud gateway, spring cloud eureka et spring cloud config. - frontend: angular, observer rxjs

sub-compo-address-printer.component.html 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <div class="container mt-3">
  2. <p-table
  3. [value]="addressesList"
  4. responsiveLayout="scroll"
  5. styleClass="p-datatable-striped"
  6. *ngIf="addressesList"
  7. [paginator]="true"
  8. [rows]="10"
  9. [showCurrentPageReport]="true"
  10. currentPageReportTemplate="{first} - {last} of {totalRecords} entries"
  11. [rowsPerPageOptions]="[10, 20, 30]"
  12. class="p-3"
  13. >
  14. <ng-template pTemplate="body" let-address>
  15. <tr>
  16. <td>{{ address.num }}</td>
  17. <td>{{ address.street }}</td>
  18. <td>{{ address.pb }}</td>
  19. <td>{{ address.city }}</td>
  20. <td>{{ address.country }}</td>
  21. <td>
  22. <button class="btn">
  23. <i
  24. class="fa fa-pencil"
  25. style="color: mediumturquoise"
  26. (click)="onAddressUpdate(address)"
  27. ></i>
  28. </button>
  29. </td>
  30. <td>
  31. <button class="btn">
  32. <i
  33. class="fa fa-trash"
  34. style="color: red"
  35. (click)="onAddressDelete(address.addressID)"
  36. ></i>
  37. </button>
  38. </td>
  39. <td>
  40. <button class="btn">
  41. <i
  42. class="fa fa-search"
  43. style="color: mediumturquoise"
  44. (click)="onPrintEmployeesLivigOnThisAddress(address.addressID)"
  45. > employees </i>
  46. </button>
  47. </td>
  48. </tr>
  49. </ng-template>
  50. </p-table>

Powered by TurnKey Linux.