<script type="text/javascript">
$(document).ready(function() {
$("li#nav-request").addClass("active");
+ $('table.requests').dataTable();
});
function on_click_event() {
var ids = [];
}
</script>
+<div class="container-fluid">
<div class="col-md-12">
<h2>From your authorities</h2>
</div>
{% if my_authorities %}
- <table class="table">
+<div class="col-md-12">
+ <table class="table-responsive requests">
+ <thead>
+ <tr>
+ <th>ID</th>
+ <th></th>
+ <th>Type</th>
+ <th>Authority</th>
+ <th>Info</th>
+ <th>Date</th>
+ <th>Statu</th>
+ </tr>
+ </thead>
+ <tbody>
{% for authority, requests in my_authorities.items %}
{% for request in requests %}
-
- <tr>
+
+ {% if request.type == 'user' %}
+ <tr>
+ {% elif request.type == 'slice' %}
+ <tr class="info">
+ {% else %}
+ <tr class="active">
+ {% endif %}
<td><span class="gray small">{{ request.id }}</span></td>
<td>
{% if request.allowed == 'allowed' %}
{% endfor %}
{% endfor %}
+ </tbody>
</table>
+ </div>
{% else %}
<div class="col-md-12">
<i>There is no pending request waiting for validation.</i>
</div>
{% endif %}
+</div>
+
+
<br />
<div class="col-md-12">
<h2>From your sub-authorities</h2>