Skip to content

Commit

Permalink
Merge pull request #477 from AgenceBio/style/texte_import
Browse files Browse the repository at this point in the history
style: Mise en forme du paragraphe de l'import parcellaire
  • Loading branch information
GregoireDucharme authored Dec 18, 2024
2 parents 0fc90ca + a6b1720 commit 511885d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions src/components/setup/Flow/Preview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@
Vous pouvez récupérer les informations renseignées dans une version de votre choix : dates et niveaux de
conversion, parcelles ajoutées manuellement, variété (si la culture est identique), notes de certification
et noms de parcelles modifiés.
<br />
<br />
<span class="carriage-return"></span>
Pour plus d’information :
<a
class="fr-link"
Expand All @@ -114,7 +113,8 @@
@click.stop.prevent="showDetails = !showDetails"
>
Quelles informations sont reprises ?<span
:class="showDetails ? 'fr-icon-arrow-down-s-line' : 'fr-icon-arrow-up-s-line'"
class="icon-info"
:class="showDetails ? 'fr-icon-arrow-up-s-line' : 'fr-icon-arrow-down-s-line'"
/>
</button>
</div>
Expand Down Expand Up @@ -292,5 +292,16 @@ const getShortVersionName = (name) => {
.more-infos-text {
margin-bottom: 1em;
}
.icon-info::before {
font-size: 1em;
width: 1.2rem;
margin-left: 0.5em;
}
.carriage-return {
height: 1rem;
display: block;
}
}
</style>
2 changes: 1 addition & 1 deletion src/pages/exploitations/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ async function loadOperators() {
//Date de début de conversion : 2024-12-10
function getDateDemarrage(operator) {
const array = operator.certificats ?? operator.notifications;
const array = operator.certificats ?? operator.notifications ?? [];
array.sort((a, b) => new Date(b.dateSignatureContrat) - new Date(a.dateSignatureContrat));
let dateDemarrage;
Expand Down

0 comments on commit 511885d

Please sign in to comment.