css
[myslice.git] / portal / templates / management-tab-requests.html
index 6fe0e99..dad0e6e 100644 (file)
@@ -1,8 +1,8 @@
 <script type="text/javascript">
        $(document).ready(function() {
                $("li#nav-request").addClass("active");
-               $('table.requests').dataTable( {
-            "sDom": "frtiS",
+               $('table.requests').dataTable({
+                   "sDom": "frtiS",
             "bScrollCollapse": true,
             "bStateSave": true,
             "bPaginate": false,
@@ -12,7 +12,7 @@
             "bInfo": false,
             "bAutoWidth": true,
             "bAutoHeight": false,
-        );
+               });
        });
        function on_click_event() {
                var ids = []; 
        <h2>From your authorities</h2>
 </div>
 {% if my_authorities %}
-       <table class="table-responsive requests">
+<div class="col-md-12">
+       <table class="table requests">
+           <thead>
+        <tr>
+            <th>ID</th>
+            <th></th>
+            <th>Type</th>
+            <th>Authority</th>
+            <th>Info</th>
+            <th>Date</th>
+            <th>Status</th>
+        </tr>
+        </thead>
+        <tbody>
        {% for authority, requests in my_authorities.items %}
        
         {% for request in requests %}
         {% endfor %}
        
        {% endfor %}
+          </tbody>
     </table>
+   </div>
 {% else %}
        <div class="col-md-12">
                <i>There is no pending request waiting for validation.</i>
 {% endif %}
 </div>
 
-
+{% if sub_authorities %}
 <br />
 <div class="col-md-12">
        <h2>From your sub-authorities</h2>
 </div>
-{% if sub_authorities %}
-       
+
        {% for authority, requests in sub_authorities.items %}
        <div class="col-md-12">
        <h3>{{authority}}</h3>
            </table>
        </div>
        {% endfor %}
-{% else %}
-<div class="col-md-12">
-       <i>There is no pending request waiting for validation.</i>
-</div>
 {% endif %}
+{% if delegation_authorities %}
 <br />
 <div class="col-md-12">
        <h2>From your authorities with delegation</h2>
 </div>
 
-{% if delegation_authorities %}
-       
        {% for authority, requests in delegation_authorities.items %}
        <div class="col-md-12">
                <h3>{{authority}}</h3>
                    </table>
                </div>
                {% endfor %}
-{% else %}
-<div class="col-md-12">
-       <i>There is no pending request waiting for validation.</i>
-</div>
 {% endif %}
 <br />
 <div class="col-md-12">