datatable sur tableau des groupes rattachables à un user (ref #142)
This commit is contained in:
parent
6baed4dea7
commit
2a1179ae9a
|
@ -295,7 +295,7 @@
|
|||
<table id="tbllistgroup" class="table table-striped table-bordered table-hover" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="70px">Action</th>
|
||||
<th width="70px" class="no-sort">Action</th>
|
||||
<th>Groupe</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -314,7 +314,7 @@
|
|||
{% endif %}
|
||||
|
||||
<tr id="listgroup{{ group.id }}" style="{{ style }}">
|
||||
<td><a style="cursor:pointer"><i class="fa fa-plus fa-fw" onclick="addLinkGroup({{ group.id }})"></i></a></td>
|
||||
<td width="70px"><a style="cursor:pointer"><i class="fa fa-plus fa-fw" onclick="addLinkGroup({{ group.id }})"></i></a></td>
|
||||
<td id="listgrouplabel{{ group.id }}">
|
||||
{{ group.label }}
|
||||
</td>
|
||||
|
@ -480,6 +480,14 @@
|
|||
linkmodos+={{ modo.niveau01.id }}+",";
|
||||
{% endfor %}
|
||||
$("#user_linkmodos").val(linkmodos);
|
||||
|
||||
$('#tbllistgroup').DataTable({
|
||||
columnDefs: [ { "targets": 'no-sort', "orderable": false },{ "targets": 'no-visible', "visible": false } ],
|
||||
responsive: true,
|
||||
iDisplayLength: 100,
|
||||
processing: true,
|
||||
order: [[ 1, "asc" ]],
|
||||
});
|
||||
});
|
||||
|
||||
function removeLinkGroup(id) {
|
||||
|
|
Loading…
Reference in New Issue