-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from PnEcrins/offline
Offline
- Loading branch information
Showing
29 changed files
with
897 additions
and
3,640 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
button { | ||
width: 240px; | ||
border-radius: 0%; | ||
background-color: var(--mdc-fab-container-color); | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<div | ||
*ngIf="myOfflineObservations.length > 0" | ||
class="offline-observations-container" | ||
> | ||
<div class="mat-title-medium">Mes observations à envoyer</div> | ||
<div class="send-observations-container"> | ||
<button mat-flat-button color="primary" (click)="sendObservations()"> | ||
Envoyer toutes mes observations | ||
</button> | ||
</div> | ||
<mat-list class="mat-expansion-panel-body-visible"> | ||
@for (observation of myOfflineObservations; track observation.uuid) { | ||
<mat-list-item> | ||
<span matListItemTitle>{{ | ||
observation.name && observation.name !== "" | ||
? observation.name | ||
: getEventType(observation.category)!.label | ||
}}</span> | ||
<span matListItemLine>{{ | ||
observation.event_date | date: "dd/MM/yyyy" | ||
}}</span> | ||
<span matListItemMeta> | ||
<button | ||
mat-icon-button | ||
class="mt-16" | ||
(click)="sendObservation(observation)" | ||
> | ||
<mat-icon>send</mat-icon> | ||
</button> | ||
</span> | ||
</mat-list-item> | ||
} | ||
</mat-list> | ||
</div> | ||
|
||
<div *ngIf="myObservations.length > 0" class="observations-container"> | ||
<div class="mat-title-medium">Mes observations</div> | ||
<mat-list class="mat-expansion-panel-body-visible"> | ||
@for (observation of myObservations; track observation.uuid) { | ||
<mat-list-item> | ||
<span matListItemTitle>{{ | ||
observation.name && observation.name !== "" | ||
? observation.name | ||
: getEventType(observation.category)!.label | ||
}}</span> | ||
<span matListItemLine>{{ | ||
observation.event_date | date: "dd/MM/yyyy" | ||
}}</span> | ||
<span matListItemMeta> | ||
<button | ||
mat-icon-button | ||
class="mt-16" | ||
[routerLink]="[ | ||
'/detail-d-une-observation', | ||
slugify( | ||
observation.uuid | ||
.toString() | ||
.concat(observation.name ? '-'.concat(observation.name) : '') | ||
), | ||
]" | ||
> | ||
<mat-icon>arrow_forward</mat-icon> | ||
</button> | ||
</span> | ||
</mat-list-item> | ||
} | ||
</mat-list> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.offline-observations-container, | ||
.observations-container { | ||
padding: 0px 16px 16px 16px; | ||
} | ||
|
||
.send-observations-container { | ||
margin-top: 16px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} |
Oops, something went wrong.