ajout colonne Actions

front
Gwenael PLANCHON 1 year ago
parent 996d2949de
commit 94fbb8faad

@ -64,6 +64,7 @@ export default{
<thead>
<tr>
<th scope="col" v-for="nomColonne in Object.keys(scientifiques[0]??{})">{{nomColonne}}</th>
<th scope="col">Actions</th>
</tr>
</thead>
<tbody>

@ -35,16 +35,19 @@ export default {
<td v-for="item in champs">
<p>{{ item }}</p>
</td>
<td>
<button class="btn-outline-secondary btn" v-on:click="changerModeEdition()">Modifier</button>
</td>
</tr>
<tr v-if="this.modeEdition">
<td v-for="item in champs">
<!--input class="form-control" type="text" v-model="item"-->
</td>
<td>
<!-- TODO : aussi faire this.modeEdition=!this.modeEdition dans sauverScientifique -->
<button class="btn btn-success" v-on:click="sauverScientifique()">Sauvegarder</button>
<button class="btn btn-secondary" v-on:click="annuler()">Annuler</button>
</td>
</tr>
</template>
Loading…
Cancel
Save