Skip to content

Commit

Permalink
feat date
Browse files Browse the repository at this point in the history
  • Loading branch information
sansan88 committed Sep 14, 2023
1 parent 68f252d commit 24be392
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
1 change: 1 addition & 0 deletions src/app/models/training.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ export interface Training {

// Business Logic Fields
status: boolean;
countAttendees: number;
attendees: any;
}
14 changes: 7 additions & 7 deletions src/app/pages/championship/championship/championship.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,16 @@
<h2>{{game.teamHome}} vs.</h2>
<h2>{{game.teamAway}}</h2>
<h3>
<ion-icon slot="icon-only" name="time"></ion-icon> {{game.date}}
{{game.time}}
<ion-icon slot="icon-only" name="location-outline"></ion-icon>
{{game.location}} {{game.city}}
</h3>
<h3>
<ion-icon slot="icon-only" name="home"></ion-icon>:
{{game.location}} {{game.city}}
<ion-icon slot="icon-only" name="calendar-outline"></ion-icon>
{{game.date}} {{game.time}} Uhr
</h3>
<h3>
<ion-icon slot="icon-only" name="trophy"></ion-icon> {{game.liga}}
{{game.teamName}}
<ion-icon slot="icon-only" name="trophy-outline"></ion-icon>
{{game.liga}} {{game.teamName}}
</h3>
</ion-label>
<ion-note slot="end" (click)="openModal(game)">
Expand Down Expand Up @@ -162,7 +162,7 @@ <h3>
</h3>
</ion-label>
<ion-note slot="end" (click)="openModal(game)">
<ion-badge color="primary">{{game.attendees}}</ion-badge>
<ion-badge color="primary">{{game.countAttendees}}</ion-badge>
</ion-note>
</ion-item>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export class TrainingCreatePage implements OnInit {

status: true,
attendees: [],
countAttendees: 0,
};
}

Expand Down
17 changes: 8 additions & 9 deletions src/app/pages/training/trainings/trainings.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,25 +56,24 @@
(click)="toggle(false, training)"
></ion-icon>
<ion-label>
<h2>
{{training.name}}
</h2>
<h3>
<ion-icon slot="icon-only" name="home"></ion-icon>:
<ion-icon slot="icon-only" name="location-outline"></ion-icon>
{{training.streetAndNumber}} {{training.city}}
</h3>
<h3>
<ion-icon slot="icon-only" name="time"></ion-icon>
{{training.date | date:'dd.MM.YYYY '}} {{training.timeFrom | date:'HH:mm'}}
<ion-icon slot="icon-only" name="calendar-outline"></ion-icon>
{{training.date | date:'dd.MM.YYYY '}} {{training.timeFrom | date:'HH:mm'}} Uhr - {{training.timeTo | date:'HH:mm'}} Uhr
</h3>
<h3>
<ion-icon slot="icon-only" name="time"></ion-icon>
{{training.date | date:'dd.MM.YYYY'}} {{training.timeTo | date:'HH:mm'}}
</h3>
<h3>
<ion-icon slot="icon-only" name="trophy"></ion-icon>
<ion-icon slot="icon-only" name="trophy-outline"></ion-icon>
{{training.liga}} {{training.teamName}}
</h3>
</ion-label>
<ion-note slot="end">
<ion-badge color="primary">{{training.attendees}}</ion-badge>
<ion-badge color="primary">{{training.countAttendees}}</ion-badge>
</ion-note>
</ion-item>

Expand Down

0 comments on commit 24be392

Please sign in to comment.