Loading config/merged/signature.config.php +11 Changes for config/merged/signature.config.php: 11 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -37,6 +37,7 @@ return [ 'signatures', 'signatureflows', 'signatureflowsUi', 'triggerProcess', ], 'privileges' => [ SignaturePrivileges::SIGNATURE_INDEX, Loading Loading @@ -136,6 +137,16 @@ return [ ] ] ], 'trigger-process' => [ 'type' => Segment::class, 'options' => [ 'route' => '/trigger-process', 'defaults' => [ 'action' => 'triggerProcess' ] ] ], //triggerProcess 'delete' => [ 'type' => Segment::class, 'options' => [ Loading public/dist/assets/signatureflows-0fb20351.js −1 File deleted. Show changes public/dist/assets/signatureflows-eabf111b.js +1 File added.Preview size limit exceeded, changes collapsed. Show changes public/dist/manifest.json +1 −1 Changes for public/dist/manifest.json: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ "css": [ "assets/SignatureFlows-8341230d.css" ], "file": "assets/signatureflows-0fb20351.js", "file": "assets/signatureflows-eabf111b.js", "imports": [ "_vendor.js" ], Loading public/src/views/SignatureFlows.vue +44 −7 Changes for public/src/views/SignatureFlows.vue: 44 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -97,6 +97,7 @@ <article v-for="s in editSignatureFlow.steps" class="step"> <h4> <i class="icon-location"></i> Etape {{ s.order }} - {{ s.label }}</h4> <div> Niveau de validation : <strong>{{ getLevelsLabel(s) }}</strong><br> Loading @@ -106,6 +107,8 @@ <nav class="buttons-bar"> <button class="btn btn-default btn-xs" @click="handlerEditStep(s)">Modifier</button> <button class="btn btn-default btn-xs" @click="handlerDeleteStep(s)">Supprimer</button> <button @click="handlerUp(s)">up</button> <button @click="handlerDown(s)">down</button> </nav> </article> <nav class="buttons-bar"> Loading @@ -116,10 +119,11 @@ </nav> </section> <nav class="buttons-bar"> <button @click="handlerEditSignatureFlowSave" class="btn btn-large btn-success">Enregistrer la procédure <button @click="handlerEditSignatureFlowSave" class="btn btn-large btn-success"> Enregistrer la procédure </button> <button @click="handlerEditSignatureFlowCancel" class="btn btn-danger">Annuler les modifications <button @click="handlerEditSignatureFlowCancel" class="btn btn-danger"> Annuler les modifications </button> </nav> </section> Loading @@ -133,7 +137,7 @@ <p><small>{{ sf.description }}</small></p> <section class="steps" v-if="sf.steps.length"> <article v-for="s in sf.steps" class="step"> <h4>{{ s.label }}</h4> <h4>Etape {{ s.order }} - {{ s.label }}</h4> <small> Parapheur : <strong>{{ getLetterfileLabel(s.letterfile) }}</strong> - Niveau de validation : <strong>{{ getLevelsLabel(s) }}</strong> - Loading Loading @@ -192,6 +196,37 @@ export default { handlerRecipientsChange(evt) { console.log('handlerRecipientsChange', evt) }, handlerUp(step) { console.log("handlerUp"); this.moveStep(step, -1); }, handlerDown(step) { console.log("handlerDown"); this.moveStep(step, 1); }, moveStep(step, direction) { let index = this.editSignatureFlow.steps.indexOf(step); if( (index == this.editSignatureFlow.steps.length && direction == 1) || (index == 0 && direction == -1) ){ return; } let moved = this.editSignatureFlow.steps[index]; this.editSignatureFlow.steps.splice(index, 1); this.editSignatureFlow.steps.splice(index+direction, 0, moved); this.updateOrder(); }, updateOrder(){ console.log("Update order"); let order = 1; this.editSignatureFlow.steps.forEach( i => { i.order = order++; }); }, //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // PROCESSUS Loading Loading @@ -239,7 +274,7 @@ export default { //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // ETAPES handlerNewStep() { let autoOrder = this.editSignatureFlow.steps.length; let autoOrder = this.editSignatureFlow.steps.length+1; this.editSignatureFlow.steps.push({ id: null, label: "Nouvelle étape", Loading Loading @@ -270,6 +305,7 @@ export default { handlerDeleteStep(step) { let i = this.editSignatureFlow.steps.indexOf(step); this.editSignatureFlow.steps.splice(i, 1); this.updateOrder(); }, Loading Loading @@ -424,10 +460,11 @@ export default { this.loading = ""; this.fetch(); }, ko => { console.log(ko); this.loading = ""; try { if( ko.response.data.error ){ this.error = ko.response.data.error; } catch (err) { } else { this.error = "Une erreur inconnue est survenue côté serveur"; } }) Loading Loading
config/merged/signature.config.php +11 Changes for config/merged/signature.config.php: 11 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -37,6 +37,7 @@ return [ 'signatures', 'signatureflows', 'signatureflowsUi', 'triggerProcess', ], 'privileges' => [ SignaturePrivileges::SIGNATURE_INDEX, Loading Loading @@ -136,6 +137,16 @@ return [ ] ] ], 'trigger-process' => [ 'type' => Segment::class, 'options' => [ 'route' => '/trigger-process', 'defaults' => [ 'action' => 'triggerProcess' ] ] ], //triggerProcess 'delete' => [ 'type' => Segment::class, 'options' => [ Loading
public/dist/assets/signatureflows-eabf111b.js +1 File added.Preview size limit exceeded, changes collapsed. Show changes
public/dist/manifest.json +1 −1 Changes for public/dist/manifest.json: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ "css": [ "assets/SignatureFlows-8341230d.css" ], "file": "assets/signatureflows-0fb20351.js", "file": "assets/signatureflows-eabf111b.js", "imports": [ "_vendor.js" ], Loading
public/src/views/SignatureFlows.vue +44 −7 Changes for public/src/views/SignatureFlows.vue: 44 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -97,6 +97,7 @@ <article v-for="s in editSignatureFlow.steps" class="step"> <h4> <i class="icon-location"></i> Etape {{ s.order }} - {{ s.label }}</h4> <div> Niveau de validation : <strong>{{ getLevelsLabel(s) }}</strong><br> Loading @@ -106,6 +107,8 @@ <nav class="buttons-bar"> <button class="btn btn-default btn-xs" @click="handlerEditStep(s)">Modifier</button> <button class="btn btn-default btn-xs" @click="handlerDeleteStep(s)">Supprimer</button> <button @click="handlerUp(s)">up</button> <button @click="handlerDown(s)">down</button> </nav> </article> <nav class="buttons-bar"> Loading @@ -116,10 +119,11 @@ </nav> </section> <nav class="buttons-bar"> <button @click="handlerEditSignatureFlowSave" class="btn btn-large btn-success">Enregistrer la procédure <button @click="handlerEditSignatureFlowSave" class="btn btn-large btn-success"> Enregistrer la procédure </button> <button @click="handlerEditSignatureFlowCancel" class="btn btn-danger">Annuler les modifications <button @click="handlerEditSignatureFlowCancel" class="btn btn-danger"> Annuler les modifications </button> </nav> </section> Loading @@ -133,7 +137,7 @@ <p><small>{{ sf.description }}</small></p> <section class="steps" v-if="sf.steps.length"> <article v-for="s in sf.steps" class="step"> <h4>{{ s.label }}</h4> <h4>Etape {{ s.order }} - {{ s.label }}</h4> <small> Parapheur : <strong>{{ getLetterfileLabel(s.letterfile) }}</strong> - Niveau de validation : <strong>{{ getLevelsLabel(s) }}</strong> - Loading Loading @@ -192,6 +196,37 @@ export default { handlerRecipientsChange(evt) { console.log('handlerRecipientsChange', evt) }, handlerUp(step) { console.log("handlerUp"); this.moveStep(step, -1); }, handlerDown(step) { console.log("handlerDown"); this.moveStep(step, 1); }, moveStep(step, direction) { let index = this.editSignatureFlow.steps.indexOf(step); if( (index == this.editSignatureFlow.steps.length && direction == 1) || (index == 0 && direction == -1) ){ return; } let moved = this.editSignatureFlow.steps[index]; this.editSignatureFlow.steps.splice(index, 1); this.editSignatureFlow.steps.splice(index+direction, 0, moved); this.updateOrder(); }, updateOrder(){ console.log("Update order"); let order = 1; this.editSignatureFlow.steps.forEach( i => { i.order = order++; }); }, //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // PROCESSUS Loading Loading @@ -239,7 +274,7 @@ export default { //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // ETAPES handlerNewStep() { let autoOrder = this.editSignatureFlow.steps.length; let autoOrder = this.editSignatureFlow.steps.length+1; this.editSignatureFlow.steps.push({ id: null, label: "Nouvelle étape", Loading Loading @@ -270,6 +305,7 @@ export default { handlerDeleteStep(step) { let i = this.editSignatureFlow.steps.indexOf(step); this.editSignatureFlow.steps.splice(i, 1); this.updateOrder(); }, Loading Loading @@ -424,10 +460,11 @@ export default { this.loading = ""; this.fetch(); }, ko => { console.log(ko); this.loading = ""; try { if( ko.response.data.error ){ this.error = ko.response.data.error; } catch (err) { } else { this.error = "Une erreur inconnue est survenue côté serveur"; } }) Loading