- commented out things I won't have the time to think about

This commit is contained in:
Alexis
2020-06-17 20:42:27 +02:00
parent 0fd933ba99
commit 86ce421725
2 changed files with 5 additions and 4 deletions

View File

@@ -13,7 +13,7 @@
</template>
<template v-slot:default>
<form id="update-spell" @submit="updateSpell">
<form id="update-spell" ref="update-spell" @submit="updateSpell">
<div class="form-group">
<label for="spell_name" class="font-weight-bold col-form-label">Nom&nbsp;:</label>
<input type="text" class="form-control" name="spell_name" id="spell_name" placeholder="(256 caractères max.)" v-model="spell.name">
@@ -60,7 +60,8 @@
</template>
<template v-slot:modal-footer="{ close }">
<button type="button" class="btn btn-secondary" data-dismiss="modal" @click="close()">Fermer</button>
<button type="button" class="btn btn-danger" data-dismiss="modal" @click="close()">Fermer</button>
<!-- <input type="button" class="btn btn-success" value="Enregistrer comme nouveau" @click="cloneSpell()"> -->
<input type="submit" class="btn btn-primary" value="Enregistrer" form="update-spell">
</template>
</b-modal>
@@ -160,6 +161,8 @@ export default {
}
},
methods: {
cloneSpell() {
},
updateSpell(e) {
e.preventDefault()