|
11 | 11 | <h5 class="fr-text--md fr-mb-0">Représentant n°{{ idx + 1 }}</h5> |
12 | 12 | <div class="container-flex-between"> |
13 | 13 | <template v-if="props.modifiable"> |
14 | | - <!-- Boutons d'édition d'un existant --> |
15 | | - <div |
16 | | - v-if="representant.isEditing && representant._backup" |
17 | | - class="container-flex-column" |
18 | | - > |
19 | | - <DsfrLinkV2 |
20 | | - as="button" |
21 | | - icon-name="icon-save-line" |
22 | | - @click="saveRepresentant(idx)" |
23 | | - > |
24 | | - Enregistrer les modifications |
25 | | - </DsfrLinkV2> |
26 | | - <DsfrLinkV2 |
27 | | - as="button" |
28 | | - icon-name="icon-close-line" |
29 | | - @click="cancelEditRepresentant(idx)" |
30 | | - > |
31 | | - Annuler les modifications |
32 | | - </DsfrLinkV2> |
33 | | - </div> |
34 | 14 | <DsfrLinkV2 |
35 | 15 | v-if="!representant.isEditing" |
36 | 16 | as="button" |
37 | 17 | icon-name="icon-edit-line" |
38 | 18 | @click="editRepresentant(idx)" |
39 | 19 | > |
40 | | - modifier |
| 20 | + Modifier le représentant {{ idx + 1 }} |
41 | 21 | </DsfrLinkV2> |
42 | 22 | </template> |
43 | 23 | <DsfrButton |
44 | 24 | v-if="props.modifiable" |
45 | 25 | secondary |
46 | 26 | @click="removeRepresentant(idx)" |
47 | 27 | > |
48 | | - Supprimer ce représentant |
| 28 | + Supprimer le représentant {{ idx + 1 }} |
49 | 29 | </DsfrButton> |
50 | 30 | </div> |
51 | 31 | </div> |
| 32 | + <!-- Boutons d'édition d'un existant --> |
| 33 | + <div |
| 34 | + v-if="representant.isEditing && representant._backup" |
| 35 | + class="container-flex-end fr-mt-2w" |
| 36 | + > |
| 37 | + <DsfrLinkV2 |
| 38 | + as="button" |
| 39 | + icon-name="icon-save-line" |
| 40 | + @click="saveRepresentant(idx)" |
| 41 | + > |
| 42 | + <span class="fr-sr-only" |
| 43 | + >Enregistrer les modifications du représentant {{ idx + 1 }}</span |
| 44 | + > |
| 45 | + </DsfrLinkV2> |
| 46 | + <DsfrLinkV2 |
| 47 | + as="button" |
| 48 | + icon-name="icon-close-line" |
| 49 | + @click="cancelEditRepresentant(idx)" |
| 50 | + > |
| 51 | + <span class="fr-sr-only" |
| 52 | + >Annuler les modifications du représentant {{ idx + 1 }}</span |
| 53 | + > |
| 54 | + </DsfrLinkV2> |
| 55 | + </div> |
52 | 56 | </div> |
53 | 57 | <template v-if="representant.isEditing"> |
54 | 58 | <form @submit.prevent> |
@@ -365,6 +369,11 @@ defineExpose({ |
365 | 369 | justify-content: flex-start; |
366 | 370 | gap: 1rem; |
367 | 371 | } |
| 372 | +.container-flex-end { |
| 373 | + display: flex; |
| 374 | + justify-content: flex-end; |
| 375 | + gap: 1rem; |
| 376 | +} |
368 | 377 | .container-flex-column { |
369 | 378 | display: flex; |
370 | 379 | flex-direction: column; |
|
0 commit comments