Loading ui/src/views/AdminTypeDocument.vue +5 −3 Original line number Diff line number Diff line Loading @@ -20,9 +20,9 @@ </div> <div class="form-group"> <label for="typedoc_default"> <label for="typedoc_active"> Actif <input id='typedoc_default' type="checkbox" class="form-control" v-model="form.active" name="default"/> <input id='typedoc_active' type="checkbox" class="form-control" v-model="form.active" name="active"/> </label> </div> Loading Loading @@ -192,7 +192,8 @@ export default { 'label': this.form.label, 'signatureflow_id': this.form.signatureflow_id, 'description': this.form.description, 'default': this.form.default ? 'on' : '' 'default': this.form.default ? 'on' : '', 'active': this.form.active ? 'on' : '' }; axios.put(this.url + "", json).then( Loading @@ -213,6 +214,7 @@ export default { datas.append('label', this.form.label); datas.append('description', this.form.description); datas.append('default', this.form.default ? 'on' : ''); datas.append('active', this.form.active ? 'on' : ''); axios.post(this.url, datas).then( (res) => { Loading Loading
ui/src/views/AdminTypeDocument.vue +5 −3 Original line number Diff line number Diff line Loading @@ -20,9 +20,9 @@ </div> <div class="form-group"> <label for="typedoc_default"> <label for="typedoc_active"> Actif <input id='typedoc_default' type="checkbox" class="form-control" v-model="form.active" name="default"/> <input id='typedoc_active' type="checkbox" class="form-control" v-model="form.active" name="active"/> </label> </div> Loading Loading @@ -192,7 +192,8 @@ export default { 'label': this.form.label, 'signatureflow_id': this.form.signatureflow_id, 'description': this.form.description, 'default': this.form.default ? 'on' : '' 'default': this.form.default ? 'on' : '', 'active': this.form.active ? 'on' : '' }; axios.put(this.url + "", json).then( Loading @@ -213,6 +214,7 @@ export default { datas.append('label', this.form.label); datas.append('description', this.form.description); datas.append('default', this.form.default ? 'on' : ''); datas.append('active', this.form.active ? 'on' : ''); axios.post(this.url, datas).then( (res) => { Loading