Commit d37e18a2 authored by THEO GUILLON's avatar THEO GUILLON
Browse files

Merge branch '68-rajouter-un-bouton-annuler-dans-la-modification-d-un-formulaire' into '2.0.0'

Resolve "rajouter un bouton 'annuler' dans la modification d'un formulaire"

See merge request libriciel/pole-citoyens/web-DPO/web-DPO!407
parents f8b299ce 19142195
......@@ -180,16 +180,10 @@ echo $this->WebcilForm->create('Formulaire', [
?>
</div>
<div class="row">
<!-- Groupe bouton -->
<div class="col-md-12 top17 text-center">
<div class="btn-group">
<?php
// Groupe de boutons
echo $this->WebcilForm->buttons(['Cancel', 'Save']);
?>
</div>
</div>
<div style="clear: both">
<?php
echo $this->WebcilForm->buttons(['Cancel', 'Save']);
?>
</div>
</div>
......
$(document).ready(function () {
$('#container').on('submit', function() {
$('#container').on('click', ':submit', function() {
if ($(this).val() === 'Cancel') {
return ;
}
let success = true,
dynamicFields = [];
......
Supports Markdown
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