Rate (taux) input can now accept decimal value
This commit is contained in:
parent
1066bceea9
commit
85eb25081e
|
@ -848,7 +848,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
var row = '<tr>' +
|
||||
'<td><input type="number" required min="0" class="form-control" name="min" id="min"></td>' +
|
||||
'<td><input type="number" required class="form-control" name="max" id="max"></td>' +
|
||||
'<td><input type="number" required class="form-control" name="taux" id="taux"></td>' +
|
||||
'<td><input type="number" required step="any" class="form-control" name="taux" id="taux"></td>' +
|
||||
'<td><input type="number" min="1" class="form-control" name="plafond" id="plafond"></td>' +
|
||||
'<td> ' + actions3 + '</td>' +
|
||||
'</tr>';
|
||||
|
@ -907,7 +907,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
if (index == 1)
|
||||
$(this).html('<input type="number" required class="form-control" id="max" value="' + $(this).text() + '">');
|
||||
if (index == 2)
|
||||
$(this).html('<input type="number" required class="form-control" min="0" value="' + $(this).text() + '">');
|
||||
$(this).html('<input type="number" required class="form-control" step="any" min="0" value="' + $(this).text() + '">');
|
||||
if (index == 3)
|
||||
$(this).html('<input type="number" class="form-control" min="1" value="' + $(this).text() + '">');
|
||||
});
|
||||
|
@ -934,7 +934,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
var row = '<tr>' +
|
||||
'<td><input type="number" required min="0" class="form-control" name="min" id="min"></td>' +
|
||||
'<td><input type="number" required class="form-control" name="max" id="max"></td>' +
|
||||
'<td><input type="number" required class="form-control" name="taux" id="taux"></td>' +
|
||||
'<td><input type="number" required step="any" class="form-control" name="taux" id="taux"></td>' +
|
||||
'<td><input type="number" min="1" class="form-control" name="plafond" id="plafond"></td>' +
|
||||
'<td> ' + actions4 + '</td>' +
|
||||
'</tr>';
|
||||
|
@ -993,7 +993,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
if (index == 1)
|
||||
$(this).html('<input type="number" required class="form-control" id="max" value="' + $(this).text() + '">');
|
||||
if (index == 2)
|
||||
$(this).html('<input type="number" required class="form-control" min="0" value="' + $(this).text() + '">');
|
||||
$(this).html('<input type="number" required class="form-control" step="any" min="0" value="' + $(this).text() + '">');
|
||||
if (index == 3)
|
||||
$(this).html('<input type="number" class="form-control" min="1" value="' + $(this).text() + '">');
|
||||
});
|
||||
|
@ -1020,7 +1020,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
var row = '<tr>' +
|
||||
'<td><input type="number" required min="0" class="form-control" name="min" id="min"></td>' +
|
||||
'<td><input type="number" required class="form-control" name="max" id="max"></td>' +
|
||||
'<td><input type="number" required class="form-control" name="taux" id="taux"></td>' +
|
||||
'<td><input type="number" required step="any" class="form-control" name="taux" id="taux"></td>' +
|
||||
'<td><input type="number" min="1" class="form-control" name="plafond" id="plafond"></td>' +
|
||||
'<td> ' + actions6 + '</td>' +
|
||||
'</tr>';
|
||||
|
@ -1079,7 +1079,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
if (index == 1)
|
||||
$(this).html('<input type="number" required class="form-control" id="max" value="' + $(this).text() + '">');
|
||||
if (index == 2)
|
||||
$(this).html('<input type="number" required class="form-control" min="0" value="' + $(this).text() + '">');
|
||||
$(this).html('<input type="number" required class="form-control" step="any" min="0" value="' + $(this).text() + '">');
|
||||
if (index == 3)
|
||||
$(this).html('<input type="number" class="form-control" min="1" value="' + $(this).text() + '">');
|
||||
});
|
||||
|
@ -1108,7 +1108,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
var row = '<tr>' +
|
||||
'<td><input type="number" required min="0" class="form-control" name="min" id="min"></td>' +
|
||||
'<td><input type="number" required class="form-control" name="max" id="max"></td>' +
|
||||
'<td><input type="number" required class="form-control" name="taux" id="taux"></td>' +
|
||||
'<td><input type="number" required step="any" class="form-control" name="taux" id="taux"></td>' +
|
||||
'<td><input type="number" min="1" class="form-control" name="plafond" id="plafond"></td>' +
|
||||
'<td> ' + actions9 + '</td>' +
|
||||
'</tr>';
|
||||
|
@ -1167,7 +1167,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
if (index == 1)
|
||||
$(this).html('<input type="number" required class="form-control" id="max" value="' + $(this).text() + '">');
|
||||
if (index == 2)
|
||||
$(this).html('<input type="number" required class="form-control" min="0" value="' + $(this).text() + '">');
|
||||
$(this).html('<input type="number" required class="form-control" step="any" min="0" value="' + $(this).text() + '">');
|
||||
if (index == 3)
|
||||
$(this).html('<input type="number" class="form-control" min="1" value="' + $(this).text() + '">');
|
||||
});
|
||||
|
@ -1194,7 +1194,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
var row = '<tr>' +
|
||||
'<td><input type="number" required min="0" class="form-control" name="min" id="min"></td>' +
|
||||
'<td><input type="number" required class="form-control" name="max" id="max"></td>' +
|
||||
'<td><input type="number" required class="form-control" name="taux" id="taux"></td>' +
|
||||
'<td><input type="number" required step="any" class="form-control" name="taux" id="taux"></td>' +
|
||||
'<td><input type="number" min="1" class="form-control" name="plafond" id="plafond"></td>' +
|
||||
'<td> ' + actions99 + '</td>' +
|
||||
'</tr>';
|
||||
|
@ -1253,7 +1253,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
if (index == 1)
|
||||
$(this).html('<input type="number" required class="form-control" id="max" value="' + $(this).text() + '">');
|
||||
if (index == 2)
|
||||
$(this).html('<input type="number" required class="form-control" min="0" value="' + $(this).text() + '">');
|
||||
$(this).html('<input type="number" required class="form-control" step="any" min="0" value="' + $(this).text() + '">');
|
||||
if (index == 3)
|
||||
$(this).html('<input type="number" class="form-control" min="1" value="' + $(this).text() + '">');
|
||||
});
|
||||
|
@ -1281,7 +1281,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
var row = '<tr>' +
|
||||
'<td><input type="number" required min="0" class="form-control" name="min" id="min"></td>' +
|
||||
'<td><input type="number" required class="form-control" name="max" id="max"></td>' +
|
||||
'<td><input type="number" required class="form-control" name="taux" id="taux"></td>' +
|
||||
'<td><input type="number" required step="any" class="form-control" name="taux" id="taux"></td>' +
|
||||
'<td><input type="number" min="1" class="form-control" name="plafond" id="plafond"></td>' +
|
||||
'<td> ' + actions11 + '</td>' +
|
||||
'</tr>';
|
||||
|
@ -1340,7 +1340,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
if (index == 1)
|
||||
$(this).html('<input type="number" required class="form-control" id="max" value="' + $(this).text() + '">');
|
||||
if (index == 2)
|
||||
$(this).html('<input type="number" required class="form-control" min="0" value="' + $(this).text() + '">');
|
||||
$(this).html('<input type="number" required class="form-control" step="any" min="0" value="' + $(this).text() + '">');
|
||||
if (index == 3)
|
||||
$(this).html('<input type="number" class="form-control" min="0" value="' + $(this).text() + '">');
|
||||
});
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<link rel="stylesheet"
|
||||
href="<?php echo base_url('bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css') ?>">
|
||||
<link rel="stylesheet" href="<?php echo base_url('bower_components/bootstrap-daterangepicker/daterangepicker.css') ?>">
|
||||
href="<?= base_url('bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css') ?>">
|
||||
<link rel="stylesheet" href="<?= base_url('bower_components/bootstrap-daterangepicker/daterangepicker.css') ?>">
|
||||
<link rel="stylesheet"
|
||||
href="<?php echo base_url('bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css') ?>">
|
||||
<link rel="stylesheet" href="<?php echo base_url('bower_components/toastr/toastr.css') ?>">
|
||||
href="<?= base_url('bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css') ?>">
|
||||
<link rel="stylesheet" href="<?= base_url('bower_components/toastr/toastr.css') ?>">
|
||||
|
||||
<link rel="stylesheet" href="<?= base_url('bower_components/google-material-icons/google-material-icons.min.css') ?>">
|
||||
|
||||
|
@ -24,7 +24,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<section class="content-header">
|
||||
|
||||
<h1>
|
||||
<?php echo $this->lang->line('config_user').' - '.$this->lang->line('config_ilink_user_wallet_cash'); ?>
|
||||
<?= $this->lang->line('config_user').' - '.$this->lang->line('config_ilink_user_wallet_cash'); ?>
|
||||
</h1>
|
||||
<?php
|
||||
|
||||
|
@ -36,7 +36,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<div class='alert alert-danger alert-dismissible col-xs-6'>
|
||||
<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>×</button>
|
||||
<h4><i class='icon fa fa-ban'></i> Erreur!</h4>
|
||||
<?php echo $message; ?>
|
||||
<?= $message; ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
@ -45,7 +45,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<div class="alert alert-success alert-dismissible col-xs-6">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<h4><i class="icon fa fa-check"></i> Success!</h4>
|
||||
<?php echo $message; ?>
|
||||
<?= $message; ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
@ -60,7 +60,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<div class="col-lg-12">
|
||||
<div class="margin">
|
||||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modal-update"
|
||||
style="width: 100%"><?php echo $this->lang->line('Modifier la configuration') ?></button>
|
||||
style="width: 100%"><?= $this->lang->line('Modifier la configuration') ?></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -68,7 +68,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<div class="col-lg-6 col-xs-12">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title"><?php echo $this->lang->line('rate_com_user_wallet_cash_international'); ?></h3>
|
||||
<h3 class="box-title"><?= $this->lang->line('rate_com_user_wallet_cash_international'); ?></h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body table-responsive" style="overflow-x:auto;">
|
||||
|
@ -102,7 +102,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<div class="col-lg-6 col-xs-12">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title"><?php echo $this->lang->line('rate_com_user_wallet_cash_national'); ?></h3>
|
||||
<h3 class="box-title"><?= $this->lang->line('rate_com_user_wallet_cash_national'); ?></h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body table-responsive" style="overflow-x:auto;">
|
||||
|
@ -135,7 +135,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
</div>
|
||||
<div class="callout callout-info">
|
||||
<p>Note</p>
|
||||
<h4><?php echo $this->lang->line('config_ilink_note') ?></h4>
|
||||
<h4><?= $this->lang->line('config_ilink_note') ?></h4>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="modal fade" id="modal-update">
|
||||
|
@ -145,7 +145,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<h3 class="modal-title"><?php echo $this->lang->line('Configuration du wallet'); ?></h3>
|
||||
<h3 class="modal-title"><?= $this->lang->line('Configuration du wallet'); ?></h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form id="walletForm">
|
||||
|
@ -156,11 +156,11 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<label for="nom"
|
||||
class="col-form-label"><?php echo $this->lang->line('rate_com_user_wallet_cash_international'); ?></label>
|
||||
class="col-form-label"><?= $this->lang->line('rate_com_user_wallet_cash_international'); ?></label>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<button type="button" class="btn btn-info add-new new2"><i
|
||||
class="fa fa-plus"></i> <?php echo $this->lang->line('new_level'); ?>
|
||||
class="fa fa-plus"></i> <?= $this->lang->line('new_level'); ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -170,7 +170,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<tr>
|
||||
<th>Min</th>
|
||||
<th>Max</th>
|
||||
<th><?php echo $this->lang->line('rate'); ?> (%)</th>
|
||||
<th><?= $this->lang->line('rate'); ?> (%)</th>
|
||||
<th><?= $this->lang->line('ceiling')?></th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
|
@ -203,11 +203,11 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<label for="nom"
|
||||
class="col-form-label"><?php echo $this->lang->line('rate_com_user_wallet_cash_national'); ?></label>
|
||||
class="col-form-label"><?= $this->lang->line('rate_com_user_wallet_cash_national'); ?></label>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<button type="button" class="btn btn-info add-new new8"><i
|
||||
class="fa fa-plus"></i> <?php echo $this->lang->line('new_level'); ?>
|
||||
class="fa fa-plus"></i> <?= $this->lang->line('new_level'); ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -217,7 +217,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<tr>
|
||||
<th>Min</th>
|
||||
<th>Max</th>
|
||||
<th><?php echo $this->lang->line('rate'); ?> (%)</th>
|
||||
<th><?= $this->lang->line('rate'); ?> (%)</th>
|
||||
<th><?= $this->lang->line('ceiling')?></th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
|
@ -249,10 +249,10 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default pull-left"
|
||||
data-dismiss="modal"><?php echo $this->lang->line('Fermer'); ?></button>
|
||||
data-dismiss="modal"><?= $this->lang->line('Fermer'); ?></button>
|
||||
<button type="button" id="updateWallet" data-network-id="<?= $network_id ?>"
|
||||
data-id-config="<?= $idConfig ?>"
|
||||
class="btn btn-primary"><?php echo $this->lang->line('save'); ?></button>
|
||||
class="btn btn-primary"><?= $this->lang->line('save'); ?></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -261,29 +261,29 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
</section>
|
||||
</div>
|
||||
<!-- jQuery 3 -->
|
||||
<script src="<?php echo base_url('bower_components/jquery/dist/jquery.min.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/jquery/dist/jquery.min.js') ?>"></script>
|
||||
<!-- Bootstrap 3.3.7 -->
|
||||
<script src="<?php echo base_url('bower_components/bootstrap/dist/js/bootstrap.min.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/bootstrap/dist/js/bootstrap.min.js') ?>"></script>
|
||||
<!-- DataTables -->
|
||||
<script src="<?php echo base_url('bower_components/datatables.net/js/jquery.dataTables.min.js') ?>"></script>
|
||||
<script src="<?php echo base_url('bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/datatables.net/js/jquery.dataTables.min.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js') ?>"></script>
|
||||
<!-- Slimscroll -->
|
||||
<script src="<?php echo base_url('bower_components/jquery-slimscroll/jquery.slimscroll.min.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/jquery-slimscroll/jquery.slimscroll.min.js') ?>"></script>
|
||||
<!-- FastClick -->
|
||||
<script src="<?php echo base_url('bower_components/fastclick/lib/fastclick.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/fastclick/lib/fastclick.js') ?>"></script>
|
||||
<!-- AdminLTE App -->
|
||||
<script src="<?php echo base_url('dist/js/adminlte.min.js') ?>"></script>
|
||||
<script src="<?= base_url('dist/js/adminlte.min.js') ?>"></script>
|
||||
<!-- AdminLTE for demo purposes -->
|
||||
<script src="<?php echo base_url('dist/js/demo.js') ?>"></script>
|
||||
<script src="<?= base_url('dist/js/demo.js') ?>"></script>
|
||||
|
||||
<script src="<?php echo base_url('bower_components/moment/min/moment.min.js') ?>"></script>
|
||||
<script src="<?php echo base_url('bower_components/bootstrap-daterangepicker/daterangepicker.js') ?>"></script>
|
||||
<script src="<?php echo base_url('bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/moment/min/moment.min.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/bootstrap-daterangepicker/daterangepicker.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js') ?>"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js"></script>
|
||||
<!-- ChartJS -->
|
||||
<script src="<?php echo base_url('bower_components/chart.js/Chart.js') ?>"></script>
|
||||
<script src="<?php echo base_url('bower_components/toastr/toastr.js') ?>"></script>
|
||||
<script src="<?php echo base_url('dist/js/sweetalert2.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/chart.js/Chart.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/toastr/toastr.js') ?>"></script>
|
||||
<script src="<?= base_url('dist/js/sweetalert2.js') ?>"></script>
|
||||
|
||||
<script>
|
||||
toastr.options.closeButton = true;
|
||||
|
@ -324,7 +324,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
});
|
||||
|
||||
$.ajax({
|
||||
url: '<?php echo base_url('Gestion/config_wallet/update')?>',
|
||||
url: '<?= base_url('Gestion/config_wallet/update')?>',
|
||||
type: 'POST',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
|
@ -338,21 +338,21 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
if (data == '200') {
|
||||
Swal.fire({
|
||||
icon: 'success',
|
||||
title: "<?php echo $this->lang->line('wallet_update')?>",
|
||||
text: "<?php echo $this->lang->line('informations_updated')?>",
|
||||
title: "<?= $this->lang->line('wallet_update')?>",
|
||||
text: "<?= $this->lang->line('informations_updated')?>",
|
||||
timer: 3000
|
||||
}).then(() => {
|
||||
location.reload();
|
||||
});
|
||||
// alert("Les informations ont été mises à jour.") ? "" :
|
||||
} else {
|
||||
toastr.error("<?php echo $this->lang->line('error_message')?>", "<?php echo $this->lang->line('request_error')?>");
|
||||
toastr.error("<?= $this->lang->line('error_message')?>", "<?= $this->lang->line('request_error')?>");
|
||||
}
|
||||
},
|
||||
|
||||
error: function (resultat, statut, error) {
|
||||
console.log(resultat + " " + error);
|
||||
toastr.error("<?php echo $this->lang->line('error_message')?>", "<?php echo $this->lang->line('request_error')?>");
|
||||
toastr.error("<?= $this->lang->line('error_message')?>", "<?= $this->lang->line('request_error')?>");
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -381,7 +381,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
var row = '<tr>' +
|
||||
'<td><input type="number" required min="0" class="form-control" name="min" id="min"></td>' +
|
||||
'<td><input type="number" required class="form-control" name="max" id="max"></td>' +
|
||||
'<td><input type="number" required class="form-control" name="taux" id="taux"></td>' +
|
||||
'<td><input type="number" required step="any" class="form-control" name="taux" id="taux"></td>' +
|
||||
'<td><input type="number" min="1" class="form-control" name="plafond" id="plafond"></td>' +
|
||||
'<td> ' + actions2 + '</td>' +
|
||||
'</tr>';
|
||||
|
@ -440,7 +440,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
if (index == 1)
|
||||
$(this).html('<input type="number" required class="form-control" id="max" value="' + $(this).text() + '">');
|
||||
if (index == 2)
|
||||
$(this).html('<input type="number" required class="form-control" min="0" value="' + $(this).text() + '">');
|
||||
$(this).html('<input type="number" required class="form-control" step="any" min="0" value="' + $(this).text() + '">');
|
||||
if (index == 3)
|
||||
$(this).html('<input type="number" class="form-control" min="1" value="' + $(this).text() + '">');
|
||||
});
|
||||
|
@ -468,7 +468,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
var row = '<tr>' +
|
||||
'<td><input type="number" required min="0" class="form-control" name="min" id="min"></td>' +
|
||||
'<td><input type="number" required class="form-control" name="max" id="max"></td>' +
|
||||
'<td><input type="number" required class="form-control" name="taux" id="taux"></td>' +
|
||||
'<td><input type="number" required step="any" class="form-control" name="taux" id="taux"></td>' +
|
||||
'<td><input type="number" min="1" class="form-control" name="plafond" id="plafond"></td>' +
|
||||
'<td> ' + actions8 + '</td>' +
|
||||
'</tr>';
|
||||
|
@ -527,7 +527,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
if (index == 1)
|
||||
$(this).html('<input type="number" required class="form-control" id="max" value="' + $(this).text() + '">');
|
||||
if (index == 2)
|
||||
$(this).html('<input type="number" required class="form-control" min="0" value="' + $(this).text() + '">');
|
||||
$(this).html('<input type="number" required class="form-control" step="any" min="0" value="' + $(this).text() + '">');
|
||||
if (index == 3)
|
||||
$(this).html('<input type="number" class="form-control" min="1" value="' + $(this).text() + '">');
|
||||
});
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<link rel="stylesheet"
|
||||
href="<?php echo base_url('bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css') ?>">
|
||||
<link rel="stylesheet" href="<?php echo base_url('bower_components/bootstrap-daterangepicker/daterangepicker.css') ?>">
|
||||
href="<?= base_url('bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css') ?>">
|
||||
<link rel="stylesheet" href="<?= base_url('bower_components/bootstrap-daterangepicker/daterangepicker.css') ?>">
|
||||
<link rel="stylesheet"
|
||||
href="<?php echo base_url('bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css') ?>">
|
||||
<link rel="stylesheet" href="<?php echo base_url('bower_components/toastr/toastr.css') ?>">
|
||||
href="<?= base_url('bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css') ?>">
|
||||
<link rel="stylesheet" href="<?= base_url('bower_components/toastr/toastr.css') ?>">
|
||||
|
||||
<link rel="stylesheet" href="<?= base_url('bower_components/google-material-icons/google-material-icons.min.css') ?>">
|
||||
|
||||
|
@ -23,7 +23,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<section class="content-header">
|
||||
|
||||
<h1>
|
||||
<?php echo $this->lang->line('config_user').' - '.$this->lang->line('config_ilink_user_wallet_wallet'); ?>
|
||||
<?= $this->lang->line('config_user').' - '.$this->lang->line('config_ilink_user_wallet_wallet'); ?>
|
||||
</h1>
|
||||
<?php
|
||||
|
||||
|
@ -35,7 +35,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<div class='alert alert-danger alert-dismissible col-xs-6'>
|
||||
<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>×</button>
|
||||
<h4><i class='icon fa fa-ban'></i> Erreur!</h4>
|
||||
<?php echo $message; ?>
|
||||
<?= $message; ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
@ -44,7 +44,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<div class="alert alert-success alert-dismissible col-xs-6">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<h4><i class="icon fa fa-check"></i> Success!</h4>
|
||||
<?php echo $message; ?>
|
||||
<?= $message; ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
@ -59,7 +59,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<div class="col-lg-12">
|
||||
<div class="margin">
|
||||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modal-update"
|
||||
style="width: 100%"><?php echo $this->lang->line('Modifier la configuration') ?></button>
|
||||
style="width: 100%"><?= $this->lang->line('Modifier la configuration') ?></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -67,7 +67,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<div class="col-lg-6 col-xs-12">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title"><?php echo $this->lang->line('rate_com_user_wallet_wallet_international'); ?></h3>
|
||||
<h3 class="box-title"><?= $this->lang->line('rate_com_user_wallet_wallet_international'); ?></h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body table-responsive" style="overflow-x:auto;">
|
||||
|
@ -100,7 +100,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<div class="col-lg-6 col-xs-12">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title"><?php echo $this->lang->line('rate_com_user_wallet_wallet_national'); ?></h3>
|
||||
<h3 class="box-title"><?= $this->lang->line('rate_com_user_wallet_wallet_national'); ?></h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body table-responsive" style="overflow-x:auto;">
|
||||
|
@ -133,7 +133,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
</div>
|
||||
<div class="callout callout-info">
|
||||
<p>Note</p>
|
||||
<h4><?php echo $this->lang->line('config_ilink_note') ?></h4>
|
||||
<h4><?= $this->lang->line('config_ilink_note') ?></h4>
|
||||
</div>
|
||||
<div class="modal fade" id="modal-update">
|
||||
<div class="modal-dialog" style="max-width: 1200px; width: 100%;">
|
||||
|
@ -142,7 +142,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<h3 class="modal-title"><?php echo $this->lang->line('Configuration du wallet'); ?></h3>
|
||||
<h3 class="modal-title"><?= $this->lang->line('Configuration du wallet'); ?></h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form id="walletForm">
|
||||
|
@ -153,11 +153,11 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<label for="nom"
|
||||
class="col-form-label"><?php echo $this->lang->line('rate_com_user_wallet_wallet_international'); ?></label>
|
||||
class="col-form-label"><?= $this->lang->line('rate_com_user_wallet_wallet_international'); ?></label>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<button type="button" class="btn btn-info add-new new1"><i
|
||||
class="fa fa-plus"></i> <?php echo $this->lang->line('new_level'); ?>
|
||||
class="fa fa-plus"></i> <?= $this->lang->line('new_level'); ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -167,7 +167,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<tr>
|
||||
<th>Min</th>
|
||||
<th>Max</th>
|
||||
<th><?php echo $this->lang->line('rate'); ?> (%)</th>
|
||||
<th><?= $this->lang->line('rate'); ?> (%)</th>
|
||||
<th><?= $this->lang->line('ceiling')?></th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
|
@ -200,11 +200,11 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<label for="nom"
|
||||
class="col-form-label"><?php echo $this->lang->line('rate_com_user_wallet_wallet_national'); ?></label>
|
||||
class="col-form-label"><?= $this->lang->line('rate_com_user_wallet_wallet_national'); ?></label>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<button type="button" class="btn btn-info add-new new7"><i
|
||||
class="fa fa-plus"></i> <?php echo $this->lang->line('new_level'); ?>
|
||||
class="fa fa-plus"></i> <?= $this->lang->line('new_level'); ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -214,7 +214,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<tr>
|
||||
<th>Min</th>
|
||||
<th>Max</th>
|
||||
<th><?php echo $this->lang->line('rate'); ?> (%)</th>
|
||||
<th><?= $this->lang->line('rate'); ?> (%)</th>
|
||||
<th><?= $this->lang->line('ceiling')?></th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
|
@ -246,10 +246,10 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default pull-left"
|
||||
data-dismiss="modal"><?php echo $this->lang->line('Fermer'); ?></button>
|
||||
data-dismiss="modal"><?= $this->lang->line('Fermer'); ?></button>
|
||||
<button type="button" id="updateWallet" data-network-id="<?= $network_id ?>"
|
||||
data-id-config="<?= $idConfig ?>"
|
||||
class="btn btn-primary"><?php echo $this->lang->line('save'); ?></button>
|
||||
class="btn btn-primary"><?= $this->lang->line('save'); ?></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -257,29 +257,29 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
</section>
|
||||
</div>
|
||||
<!-- jQuery 3 -->
|
||||
<script src="<?php echo base_url('bower_components/jquery/dist/jquery.min.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/jquery/dist/jquery.min.js') ?>"></script>
|
||||
<!-- Bootstrap 3.3.7 -->
|
||||
<script src="<?php echo base_url('bower_components/bootstrap/dist/js/bootstrap.min.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/bootstrap/dist/js/bootstrap.min.js') ?>"></script>
|
||||
<!-- DataTables -->
|
||||
<script src="<?php echo base_url('bower_components/datatables.net/js/jquery.dataTables.min.js') ?>"></script>
|
||||
<script src="<?php echo base_url('bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/datatables.net/js/jquery.dataTables.min.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js') ?>"></script>
|
||||
<!-- Slimscroll -->
|
||||
<script src="<?php echo base_url('bower_components/jquery-slimscroll/jquery.slimscroll.min.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/jquery-slimscroll/jquery.slimscroll.min.js') ?>"></script>
|
||||
<!-- FastClick -->
|
||||
<script src="<?php echo base_url('bower_components/fastclick/lib/fastclick.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/fastclick/lib/fastclick.js') ?>"></script>
|
||||
<!-- AdminLTE App -->
|
||||
<script src="<?php echo base_url('dist/js/adminlte.min.js') ?>"></script>
|
||||
<script src="<?= base_url('dist/js/adminlte.min.js') ?>"></script>
|
||||
<!-- AdminLTE for demo purposes -->
|
||||
<script src="<?php echo base_url('dist/js/demo.js') ?>"></script>
|
||||
<script src="<?= base_url('dist/js/demo.js') ?>"></script>
|
||||
|
||||
<script src="<?php echo base_url('bower_components/moment/min/moment.min.js') ?>"></script>
|
||||
<script src="<?php echo base_url('bower_components/bootstrap-daterangepicker/daterangepicker.js') ?>"></script>
|
||||
<script src="<?php echo base_url('bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/moment/min/moment.min.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/bootstrap-daterangepicker/daterangepicker.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js') ?>"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js"></script>
|
||||
<!-- ChartJS -->
|
||||
<script src="<?php echo base_url('bower_components/chart.js/Chart.js') ?>"></script>
|
||||
<script src="<?php echo base_url('bower_components/toastr/toastr.js') ?>"></script>
|
||||
<script src="<?php echo base_url('dist/js/sweetalert2.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/chart.js/Chart.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/toastr/toastr.js') ?>"></script>
|
||||
<script src="<?= base_url('dist/js/sweetalert2.js') ?>"></script>
|
||||
|
||||
<script>
|
||||
toastr.options.closeButton = true;
|
||||
|
@ -322,7 +322,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
|
||||
|
||||
$.ajax({
|
||||
url: '<?php echo base_url('Gestion/config_wallet/update')?>',
|
||||
url: '<?= base_url('Gestion/config_wallet/update')?>',
|
||||
type: 'POST',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
|
@ -336,21 +336,21 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
if (data == '200') {
|
||||
Swal.fire({
|
||||
icon: 'success',
|
||||
title: "<?php echo $this->lang->line('wallet_update')?>",
|
||||
text: "<?php echo $this->lang->line('informations_updated')?>",
|
||||
title: "<?= $this->lang->line('wallet_update')?>",
|
||||
text: "<?= $this->lang->line('informations_updated')?>",
|
||||
timer: 3000
|
||||
}).then(() => {
|
||||
location.reload();
|
||||
});
|
||||
// alert("Les informations ont été mises à jour.") ? "" :
|
||||
} else {
|
||||
toastr.error("<?php echo $this->lang->line('error_message')?>", "<?php echo $this->lang->line('request_error')?>");
|
||||
toastr.error("<?= $this->lang->line('error_message')?>", "<?= $this->lang->line('request_error')?>");
|
||||
}
|
||||
},
|
||||
|
||||
error: function (resultat, statut, error) {
|
||||
console.log(resultat + " " + error);
|
||||
toastr.error("<?php echo $this->lang->line('error_message')?>", "<?php echo $this->lang->line('request_error')?>");
|
||||
toastr.error("<?= $this->lang->line('error_message')?>", "<?= $this->lang->line('request_error')?>");
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -436,7 +436,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
if (index == 1)
|
||||
$(this).html('<input type="number" required class="form-control" id="max" value="' + $(this).text() + '">');
|
||||
if (index == 2)
|
||||
$(this).html('<input type="number" required class="form-control" min="0" value="' + $(this).text() + '">');
|
||||
$(this).html('<input type="number" required class="form-control" step="any" min="0" value="' + $(this).text() + '">');
|
||||
if (index == 3)
|
||||
$(this).html('<input type="number" class="form-control" min="1" value="' + $(this).text() + '">');
|
||||
});
|
||||
|
@ -466,7 +466,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
var row = '<tr>' +
|
||||
'<td><input type="number" required min="0" class="form-control" name="min" id="min"></td>' +
|
||||
'<td><input type="number" required class="form-control" name="max" id="max"></td>' +
|
||||
'<td><input type="number" required class="form-control" name="taux" id="taux"></td>' +
|
||||
'<td><input type="number" required step="any" class="form-control" name="taux" id="taux"></td>' +
|
||||
'<td><input type="number" min="1" class="form-control" name="plafond" id="plafond"></td>' +
|
||||
'<td> ' + actions7 + '</td>' +
|
||||
'</tr>';
|
||||
|
@ -525,7 +525,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
if (index == 1)
|
||||
$(this).html('<input type="number" required class="form-control" id="max" value="' + $(this).text() + '">');
|
||||
if (index == 2)
|
||||
$(this).html('<input type="number" required class="form-control" min="0" value="' + $(this).text() + '">');
|
||||
$(this).html('<input type="number" required class="form-control" step="any" min="0" value="' + $(this).text() + '">');
|
||||
if (index == 3)
|
||||
$(this).html('<input type="number" class="form-control" min="1" value="' + $(this).text() + '">');
|
||||
});
|
||||
|
|
|
@ -749,7 +749,7 @@ $context = new \Brick\Money\Context\AutoContext();
|
|||
var index = $("#nano_credit_taxes tbody tr:last-child").index();
|
||||
var row = "<tr> <td><input type='text' required class='form-control' name='nom' id='nom'></td> " +
|
||||
"<td> <select class='form-control' id='type' required> <option value='%'> % </option> <option value='fixe'> fixe </option> </select> </td> " +
|
||||
"<td><input type='number' required class='form-control' min='0' name='valeur' id='valeur'></td>" +
|
||||
"<td><input type='number' required class='form-control' step='any' min='0' name='valeur' id='valeur'></td>" +
|
||||
"<td>" + actions51 + "</td>" +
|
||||
"</tr>";
|
||||
$("#nano_credit_taxes").append(row);
|
||||
|
@ -791,7 +791,7 @@ $context = new \Brick\Money\Context\AutoContext();
|
|||
if (index == 1)
|
||||
$(this).html("<select class='form-control' id='type' required> <option value='%' > % </option> <option value='fixe'> fixe </option> </select>");
|
||||
if (index == 2)
|
||||
$(this).html('<input type="number" required class="form-control" min="0" value="' + $(this).text() + '">');
|
||||
$(this).html('<input type="number" required class="form-control" step="any" min="0" value="' + $(this).text() + '">');
|
||||
});
|
||||
$(this).parents("tr").find(".add, .edit").toggle();
|
||||
$(".new51").attr("disabled", "disabled");
|
||||
|
|
|
@ -507,7 +507,7 @@ $context = new \Brick\Money\Context\AutoContext();
|
|||
var index = $("#nano_credit_taxes tbody tr:last-child").index();
|
||||
var row = "<tr> <td><input type='text' required class='form-control' name='nom' id='nom'></td> " +
|
||||
"<td> <select class='form-control' id='type' required> <option value='%'> % </option> <option value='fixe'> fixe </option> </select> </td> " +
|
||||
"<td><input type='number' required class='form-control' min='0' name='valeur' id='valeur'></td>" +
|
||||
"<td><input type='number' required class='form-control' step='any' min='0' name='valeur' id='valeur'></td>" +
|
||||
"<td>" + actions51 + "</td>" +
|
||||
"</tr>";
|
||||
$("#nano_credit_taxes").append(row);
|
||||
|
@ -549,7 +549,7 @@ $context = new \Brick\Money\Context\AutoContext();
|
|||
if (index == 1)
|
||||
$(this).html("<select class='form-control' id='type' required> <option value='%' > % </option> <option value='fixe'> fixe </option> </select>");
|
||||
if (index == 2)
|
||||
$(this).html('<input type="number" required class="form-control" min="0" value="' + $(this).text() + '">');
|
||||
$(this).html('<input type="number" required class="form-control" step="any" min="0" value="' + $(this).text() + '">');
|
||||
});
|
||||
$(this).parents("tr").find(".add, .edit").toggle();
|
||||
$(".new51").attr("disabled", "disabled");
|
||||
|
|
Loading…
Reference in New Issue