This commit is contained in:
afornerot 2019-06-17 17:39:35 +02:00
parent 047652dded
commit f417f86684
1 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,49 @@
{% extends '@CadolesCore/base.html.twig' %}
{% block pagewrapper %}
<form>
<h1 class="page-header">Modération</h1>
<div class="panel panel-primary">
<div class="panel-heading">
<i class="fa fa-table fa-fw"></i> Permissions Modérateur
</div>
<div class="panel-body">
<div class="dataTable_wrapper">
<table class="table table-striped table-bordered table-hover" id="dataTables" style="width:100%">
<thead>
<tr>
<th width="70px">Action</th>
<th width="200px">Permission</th>
</tr>
</thead>
{% for permmodo in permmodos %}
<tr>
<td>{{ permmodo.label}}</td>
<td>
{% if permmodo.visible %} oui {%else%} non {%endif %}
</td>
</tr>
{% endfor %}
</table>
</div>
</div>
</div>
</form>
{% endblock %}
{% block localjavascript %}
function showInfo(id) {
$("#modalinfo #modalinfotext").html($("#"+id).attr("data").replace(/\n/g, "<br />"));
}
$(document).ready(function() {
$('#dataTables').DataTable({
responsive: true,
});
});
{% endblock %}