-
Notifications
You must be signed in to change notification settings - Fork 3
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 #259 from AgenceBio/maud/login_agri
Connexion agriculteur (v0)
- Loading branch information
Showing
11 changed files
with
122 additions
and
257 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<template> | ||
<div> | ||
<h2 class="fr-h3"> | ||
Sélectionner mon exploitation | ||
</h2> | ||
|
||
<section class="fr-grid-row fr-grid-row--gutters" v-if="hasOperators"> | ||
<article class="fr-col-12 fr-col-md-4" v-for="operator in operators" :key="operator.id"> | ||
<div class="fr-card fr-card--horizontal"> | ||
<div class="fr-card__body"> | ||
<div class="fr-card__content"> | ||
<h4 class="fr-card__title">{{ operator.nom }}</h4> | ||
<div class="fr-card__desc"> | ||
<ul class="list-unstyled"> | ||
<li v-if="operator.commune"><strong>Siège</strong> : {{ operator.commune }} ({{ operator.departement }})</li> | ||
<li v-if="operator.denominationCourante && operator.denominationCourante !== operator.nom"><b>Dénomination courante</b> : {{ operator.denominationCourante }}</li> | ||
<li v-if="operator.siret"><b>SIRET</b> : {{ operator.siret }}</li> | ||
<li v-if="operator.numeroPacage"><b>PACAGE</b> : {{ operator.numeroPacage }}</li> | ||
<li><b>Numéro Bio</b> : {{ operator.numeroBio }}</li> | ||
<li><b>Date d'engagement</b> : {{ operator.dateEngagement }}</li> | ||
</ul> | ||
</div> | ||
<div class="fr-card__start"> | ||
<ul class="fr-tags-group"> | ||
<li> | ||
<p class="fr-badge fr-badge--success fr-icon-medal-fill">vérifié</p> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<div class="fr-card__footer"> | ||
<ul class="fr-btns-group fr-btns-group--inline-lg"> | ||
<li> | ||
<router-link class="fr-btn" :to="`/exploitations/${operator.id}`"> | ||
Voir cette exploitation | ||
</router-link> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</article> | ||
</section> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
import { computed, ref } from 'vue' | ||
import { getUserOperators } from "@/cartobio-api.js" | ||
const operators = ref((await getUserOperators()).operators) | ||
const hasOperators = computed(() => Boolean(operators.value.length)) | ||
</script> | ||
|
||
<style scoped> | ||
span[aria-selected="true"] { | ||
font-weight: bold; | ||
} | ||
.help span:not(:last-of-type)::after { | ||
content: ", "; | ||
} | ||
.list-unstyled { | ||
--ul-type: none; | ||
--ul-start: 0; | ||
} | ||
.fr-alert--waiting::before { | ||
mask-image: url(@gouvfr/dsfr/icons/system/time-fill.svg); | ||
} | ||
</style> |
This file was deleted.
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
File renamed without changes.
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,20 @@ | ||
<route lang="yaml"> | ||
meta: | ||
requiredRoles: ['agri'] | ||
seo: | ||
title: Mes exploitations | ||
</route> | ||
|
||
<template> | ||
<div class="fr-container fr-my-5w"> | ||
<div class="fr-grid-row"> | ||
<div class="fr-col-12"> | ||
<Exploitations /> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
import Exploitations from '@/components/Operator/Exploitations.vue' | ||
</script> |
Oops, something went wrong.