mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-21 08:56:27 +02:00
add stats about credit in use account and update dates for home graph
This commit is contained in:
parent
03ae69b82a
commit
c3637ab3ab
9 changed files with 90 additions and 31 deletions
|
@ -62,6 +62,9 @@
|
|||
</div>
|
||||
<fieldset>
|
||||
<legend>Quota de SMS</legend>
|
||||
<?php if (($user['quota']['expiration_date'] ?? false) && (new \DateTime() > new \DateTime($user['quota']['expiration_date']))) { ?>
|
||||
<div class="alert alert-danger text-left">Le quota de cet utilisateur est expiré depuis le <b><?php $this->s($user['quota']['expiration_date']); ?></b> est n'as pas été renouvelé, il n'est donc plus appliqué !</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Définir un quota pour cet utilisateur : </label>
|
||||
|
|
|
@ -95,8 +95,11 @@ jQuery(document).ready(function ()
|
|||
{
|
||||
data: 'quota_percentage',
|
||||
render: function (data, type, row, meta) {
|
||||
return jQuery.fn.dataTable.render.text().display(data) + "%";
|
||||
return '<input name="user_ids[]" type="checkbox" value="' + data + '">';
|
||||
var html = jQuery.fn.dataTable.render.text().display(data) + "%";
|
||||
if (row['quota_expired_at'] !== undefined) {
|
||||
html += ' - <span class="danger">Quota expiré le ' + jQuery.fn.dataTable.render.text().display(row['quota_expired_at']) + '</span>';
|
||||
}
|
||||
return html;
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue