Skip to content

Commit

Permalink
RI-138: [admin/companies] permet la sélection de plusieurs entreprises (
Browse files Browse the repository at this point in the history
#181)

* RI-138: selectionne plusieurs entreprise dans l'admin
  * correction conflit + rebase à un vieux commit + réajoute le code pour selectionner plusieurs entreprises
  • Loading branch information
M3L-DC committed Nov 27, 2021
1 parent cbbd230 commit 965d41a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ <h2 class="panel-title">Toutes les entreprises</h2>
</div>
<p-table
(onLazyLoad)="paginate($event)"
[(selection)]="selectedCompanies"
[lazy]="true"
[loading]="isLoading"
[paginator]="true"
Expand All @@ -24,6 +25,9 @@ <h2 class="panel-title">Toutes les entreprises</h2>
>
<ng-template class="bg-primary" pTemplate="header">
<tr>
<th class="text-center col-1">
<p-tableHeaderCheckbox></p-tableHeaderCheckbox>
</th>
<th class="overflow-ellipsis text-uppercase col-0 col-sm-0 col-md-0 col-lg-1" scope="col"></th>
<th class="overflow-ellipsis text-uppercase col-4 col-sm-4 col-lg-2 px-2" scope="col">Nom</th>
<th class="overflow-ellipsis text-uppercase col-1 col-sm-2 col-lg-2 px-2" scope="col">Url</th>
Expand All @@ -33,6 +37,9 @@ <h2 class="panel-title">Toutes les entreprises</h2>
</ng-template>
<ng-template let-company pTemplate="body">
<tr>
<td class="text-center col-1">
<p-tableCheckbox [value]="company"></p-tableCheckbox>
</td>
<td class="col-0 col-lg-1">
<img
#companyLogo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export class CompaniesTableComponent extends BaseWithPaginationComponent<Company
selectedOrder = CompanySortEnum.NAME_ASC;
selectedOrderCode: string;
subscription: Subscription;
selectedCompanies: Company[] = [];

constructor(
private companyService: CompanyService,
Expand Down

0 comments on commit 965d41a

Please sign in to comment.