Commit 5bdaeaab authored by David Foucher's avatar David Foucher

Add form input for auth code request to update a rule

parent 502a7fca
......@@ -34,6 +34,10 @@
<label for="comment" class="mb-2"><u>Résumé de la modification</u></label>
<textarea v-model="comment" rows="3"></textarea>
</div>
<div class="row mb-3">
<label for="auth" class="mb-2"><u>Code pour soumettre le modification</u></label>
<input type="text" v-model="auth" />
</div>
<div class="row mb-3">
<div class="col-md-6 pl-0">
<input @click="closeEdit" type="button" class="btn btn-outline-danger pull-left" value="Annuler"/>
......@@ -67,6 +71,7 @@
ruleData: this.data,
content: '',
comment: '',
auth: '',
isEditMode: false,
}
},
......@@ -86,6 +91,7 @@
closeEdit: function () {
this.content = this.ruleToEdit;
this.comment = "";
this.auth = "";
this.isEditMode=!this.isEditMode;
},
save: function() {
......@@ -93,6 +99,7 @@
const postData = {
title: this.name,
comment: this.comment,
auth: this.auth,
content: this.content,
filename: 'trefle/config/rules/' + this.path
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment