Initial commit
This commit is contained in:
25
src/app/admin-view/groups/groups.component.html
Normal file
25
src/app/admin-view/groups/groups.component.html
Normal file
@@ -0,0 +1,25 @@
|
||||
<button mat-raised-button color="accent" (click)="newGroup()">Nowa grupa</button>
|
||||
<mat-card *ngFor="let item of groups">
|
||||
<mat-card-header>
|
||||
<mat-card-title contenteditable appCe (edit)="nameEdit(item._id, $event)">{{item.name}}</mat-card-title>
|
||||
</mat-card-header>
|
||||
<mat-card-content>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Pokoje</th>
|
||||
<th>Użytkownicy</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><app-list-editor [converter]="item.rooms" (edit)="editRooms(item._id, $event)"/></td>
|
||||
<td><app-list-editor [converter]="item.unames"/></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</mat-card-content>
|
||||
<mat-card-actions>
|
||||
<button mat-button color="warn" (click)="remove(item._id)">Usuń</button>
|
||||
</mat-card-actions>
|
||||
</mat-card>
|
||||
Reference in New Issue
Block a user