-
Notifications
You must be signed in to change notification settings - Fork 11
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 #3823 from betagouv/badge-accordeons
Affiche : utiliser des accordéons pour les badges
- Loading branch information
Showing
12 changed files
with
372 additions
and
205 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
...end/src/components/CanteenPublication/ResultsComponents/DiversificationMeasureResults.vue
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,17 @@ | ||
<template> | ||
<GenericMeasureResults :badge="badge" :canteen="canteen" :diagnosticSet="diagnosticSet" /> | ||
</template> | ||
|
||
<script> | ||
import GenericMeasureResults from "./GenericMeasureResults" | ||
export default { | ||
name: "DiversificationMeasureResults", | ||
props: { | ||
badge: Object, | ||
canteen: Object, | ||
diagnosticSet: Array, | ||
}, | ||
components: { GenericMeasureResults }, | ||
} | ||
</script> |
15 changes: 15 additions & 0 deletions
15
frontend/src/components/CanteenPublication/ResultsComponents/GenericMeasureResults.vue
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,15 @@ | ||
<template> | ||
<div> | ||
<p v-if="badge.earned">{{ badge.subtitle }}</p> | ||
<p v-else>Cet établissement ne respecte pas encore la loi EGAlim pour cette mesure.</p> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "GenericMeasureResults", | ||
props: { | ||
badge: Object, | ||
}, | ||
} | ||
</script> |
30 changes: 30 additions & 0 deletions
30
frontend/src/components/CanteenPublication/ResultsComponents/InformationMeasureResults.vue
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,30 @@ | ||
<template> | ||
<div> | ||
<GenericMeasureResults :badge="badge" :canteen="canteen" :diagnosticSet="diagnosticSet" /> | ||
<p v-if="diagnostic && diagnostic.communicationSupportUrl" class="fr-text"> | ||
Cette cantine communique aux usagers sur | ||
<a :href="diagnostic.communicationSupportUrl">{{ diagnostic.communicationSupportUrl }}</a> | ||
</p> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import GenericMeasureResults from "./GenericMeasureResults" | ||
import { latestCreatedDiagnostic } from "@/utils" | ||
export default { | ||
name: "InformationMeasureResults", | ||
props: { | ||
badge: Object, | ||
canteen: Object, | ||
diagnosticSet: Array, | ||
}, | ||
components: { GenericMeasureResults }, | ||
computed: { | ||
diagnostic() { | ||
if (!this.diagnosticSet) return | ||
return latestCreatedDiagnostic(this.diagnosticSet) | ||
}, | ||
}, | ||
} | ||
</script> |
17 changes: 17 additions & 0 deletions
17
frontend/src/components/CanteenPublication/ResultsComponents/NoPlasticMeasureResults.vue
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,17 @@ | ||
<template> | ||
<GenericMeasureResults :badge="badge" :canteen="canteen" :diagnosticSet="diagnosticSet" /> | ||
</template> | ||
|
||
<script> | ||
import GenericMeasureResults from "./GenericMeasureResults" | ||
export default { | ||
name: "NoPlasticMeasureResults", | ||
props: { | ||
badge: Object, | ||
canteen: Object, | ||
diagnosticSet: Array, | ||
}, | ||
components: { GenericMeasureResults }, | ||
} | ||
</script> |
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
17 changes: 17 additions & 0 deletions
17
frontend/src/components/CanteenPublication/ResultsComponents/WasteMeasureResults.vue
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,17 @@ | ||
<template> | ||
<GenericMeasureResults :badge="badge" :canteen="canteen" :diagnosticSet="diagnosticSet" /> | ||
</template> | ||
|
||
<script> | ||
import GenericMeasureResults from "./GenericMeasureResults" | ||
export default { | ||
name: "WasteMeasureResults", | ||
props: { | ||
badge: Object, | ||
canteen: Object, | ||
diagnosticSet: Array, | ||
}, | ||
components: { GenericMeasureResults }, | ||
} | ||
</script> |
Oops, something went wrong.