delete_local_user available from rest, check if user is a pi of the authority for...
[unfold.git] / portal / templates / institution.html
index 26fdf0a..0494855 100644 (file)
@@ -28,6 +28,9 @@
 </div>
 <div class="container tab-content">
        <div class="tab-pane active row" id="about">
+        <div class="col-md-12 el">
+        <h2>{{user_details.parent_authority}}</h2>
+        </div>
        </div>
        
        <div class="tab-pane row" id="users" data-authority="{{user_details.parent_authority}}">
@@ -50,8 +53,8 @@
                        </div>
                        {%if  pi %}     
                        <div>
-                               <button id="makepi" type="button" class="btn btn-primary"><span class="glyphicon glyphicon-plus"></span> Upgrade to PI</button>
-                               <button id="removepi" type="button" class="btn btn-danger"><span class="glyphicon glyphicon-remove"></span> Downgrade to  user</button>
+                               <button id="makepi" type="button" class="btn btn-primary"><span class="glyphicon glyphicon-arrow-up"></span> Upgrade to PI</button>
+                               <button id="removepi" type="button" class="btn"><span class="glyphicon glyphicon-arrow-down"></span> Downgrade to  user</button>
                                <button id="deleteusers" type="button" class="btn btn-danger"><span class="glyphicon glyphicon-remove"></span> Delete selected users</button>
                        </div>
                        {% endif %}
@@ -166,7 +169,7 @@ $(document).ready(function() {
             $.each( data, function( key, val ) {
                 list_users.push( "<li><a href=\"portal/user/"+val.user_email+"\">" + val.user_email + "</a></li>" );
                 user_row = "<tr id='"+val.user_hrn+"'>";
-                user_row += "<td><input type='checkbox' class='user' id='"+val.user_hrn+"'></td>";
+                user_row += "<td><input type='checkbox' class='user' id='"+val.user_hrn+"' data-email='"+val.user_email+"'></td>";
                 user_row += "<td>"+val.user_email+"</td>";
                 user_row += "<td>"+val.user_hrn+"</td>";
                 /*
@@ -193,13 +196,13 @@ $(document).ready(function() {
                e.preventDefault();
                $(this).tab('show');
        var id = $(this).attr('href').substr(1);
-        /*
        if ((id == 'requests')){
                $("#" + id).load('/management/' + id);
         }
-        */
+        /*
        if ((id == 'requests') || (id == 'about'))
                $("#" + id).load('/management/' + id);
+        */
        });
        var hash = window.location.hash;
        if (hash) {