- Timestamp:
- 12/28/21 08:56:55 (3 years ago)
- Branches:
- master
- Children:
- b738035
- Parents:
- 84d0fbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/src/app/planner/planner.component.html
r84d0fbb rbdd6491 1 <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous"> 1 <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" 2 integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous"> 2 3 3 4 <p-toast></p-toast> 4 <button pButton pRipple type="button" label="Create initial planner" class="p-button-help " (click)="show()"></button> 5 6 7 <nav class="navbar navbar-light bg-light justify-content-between"> 8 <button pButton pRipple type="button" label="Create initial planner" class="p-button-help " (click)="show()"></button> 9 <form class="form-inline"> 10 <span>Hello, {{userDisplayName}}</span> 11 <button class="btn btn-outline-success my-2 my-sm-0" type="submit" (click)="onClickLogout()">Log out</button> 12 </form> 13 </nav> 14 15 5 16 <br> 6 17 <br> 7 18 <p-table [value]="planners" [paginator]="true" [rows]="3" [responsive]="true"> 8 19 9 20 <ng-template pTemplate="body" let-planner> 10 <td > 11 <p-card header="{{planner.name}}" subheader="Card Subheader" [style]="{width: '360px'}" styleClass="p-card-shadow"> 12 <ng-template pTemplate="header"> 13 </ng-template> 14 <p>{{planner.description}}</p> 15 <ng-template pTemplate="footer"> 16 <button pButton pRipple type="button" label="Edit" class="p-button-outlined p-button-rounded p-button-help" (click)="onClickEditPlannerGet(planner.id)"></button> 17 <button pButton pRipple type="button" icon="pi pi-times" class="p-button-rounded p-button-danger p-button-outlined" label="Delete" [style]="{'margin-left': '.5em'}"></button> 18 </ng-template> 19 </p-card> 20 </td> 21 <td> 22 <p-card header="{{planner.name}}" subheader="Card Subheader" [style]="{width: '360px'}" 23 styleClass="p-card-shadow"> 24 <ng-template pTemplate="header"> 25 </ng-template> 26 <p>{{planner.description}}</p> 27 <ng-template pTemplate="footer"> 28 <button pButton pRipple type="button" label="Edit" class="p-button-outlined p-button-rounded p-button-help" 29 (click)="onClickEditPlannerGet(planner.id)"></button> 30 <button pButton pRipple type="button" icon="pi pi-times" 31 class="p-button-rounded p-button-danger p-button-outlined" label="Delete" 32 [style]="{'margin-left': '.5em'}" (click)="onDeletePlanner(planner.id)"></button> 33 </ng-template> 34 </p-card> 35 </td> 21 36 </ng-template> 22 37 </p-table> 23 24
Note:
See TracChangeset
for help on using the changeset viewer.