Advertisement
Guest User

Untitled

a guest
Apr 26th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.92 KB | None | 0 0
  1. <tbody *ngFor="let category of categories">
  2. <tr (click)="collapse(category)">
  3. <td>
  4. <i *ngIf="!category.expanded" style="width: 15px;height: 15px;"
  5. class="material-icons">keyboard_arrow_right</i>
  6. <i *ngIf="category.expanded" style="width: 15px;height: 15px;"
  7. class="material-icons">keyboard_arrow_down</i>
  8. </td>
  9. <td>Catégorie : {{category.category.categoryCode}}</td>
  10. <td>{{category.category.categoryWording}}</td>
  11. <td>
  12. <div id="Action" class="btn-group dropright" role="group">
  13. <button id="btnGroupDrop1" type="button" data-toggle="dropdown" aria-haspopup="true"
  14. aria-expanded="false">
  15. <i class="material-icons">more_vert</i>
  16. </button>
  17. <div class="dropdown-menu" aria-labelledby="btnGroupDrop1">
  18. <a class="dropdown-item"
  19. routerLink="/../contractTypes/detail/create/subcategory/{{category?.category.category_Id}}">Ajouter
  20. une sous-catégorie</a>
  21. <a class="dropdown-item"
  22. routerLink="/contractTypes/detail/{{category?.contractType_Id}}/category/update/{{category?.category.category_Id}}">Modifier
  23. la catégorie</a>
  24. <a class="dropdown-item" (click)="AffecterDelete(category.category_Id)" data-toggle="modal"
  25. data-target="#Modal" data-placement="top" title="Supression">Supprimer</a>
  26. </div>
  27. </div>
  28. </td>
  29. </tr>
  30. <ng-container *ngFor="let subcategory of subcategories">
  31. <tr *ngIf="subcategory.category_Id === category.category.category_Id && category.expanded"
  32. style="background-color:#ECF1F6;">
  33. <td colspan="3" style="padding-left: 50px;">
  34. Sous-catégorie : {{subcategory.subCategory.subCategoryWording}}
  35. ({{subcategory.subCategory.subCategoryType}}) id :{{subcategory.subCategory.subCategory_Id}}
  36. </td>
  37. <td>
  38. <div id="Action" class="btn-group dropright" role="group">
  39. <button id="btnGroupDrop1" type="button" data-toggle="dropdown" aria-haspopup="true"
  40. aria-expanded="false">
  41. <i class="material-icons">more_vert</i>
  42. </button>
  43. <div class="dropdown-menu" aria-labelledby="btnGroupDrop1">
  44. <a class="dropdown-item"
  45. routerLink="/contractTypes/detail/{{category?.contractType_Id}}/category/update/{{category?.category.category_Id}}">Modifier
  46. la sous-catégorie</a>
  47. <a class="dropdown-item" (click)="AffecterDelete(category.category_Id)"
  48. data-toggle="modal" data-target="#Modal" data-placement="top"
  49. title="Supression">Supprimer</a>
  50. </div>
  51. </div>
  52. </td>
  53. </tr>
  54. <ng-container *ngFor="let valuelist of valuesList">
  55. <tr *ngIf="valuelist.subCategory_Id === subcategory.subCategory.subCategory_Id && category.expanded">
  56. <td>
  57. {{valuelist.subCategory_Id}} et {{subcategory.subCategory_Id}}
  58. </td>
  59. </tr>
  60. </ng-container>
  61. </ng-container>
  62. </tbody>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement