3 <div id="select-platform" class="list-group">
6 <ul class="list-group">
7 <li class="list-group-item">Authority:<b> {{user_details.parent_authority}}</b>
8 <!--<select id="auth_list">
9 <option value="ple.upmc">UPMC</option>
10 <option value="ple.inria">INRIA</option>
11 <option value="ple.nitos">NITOS</option>
12 <option value="ple.iminds">iMinds</option>
15 <li class="list-group-item">Filter: slice</li>
20 <div class="col-md-10">
21 <div id="user-tab-loading"><img src="{{ STATIC_URL }}img/loading.gif" alt="Loading Useres" /></div>
22 <div id="user-tab-loaded" style="display:none;">
23 <table id="user-tab" class="table">
34 $(document).ready(function() {
35 //console.log("the value you selected: " + selectedValue);
36 $.post("/rest/user/",{'filters':{'parent_authority': "{{user_details.parent_authority}}"}}, function( data ) {
40 user_gid, user_enabled, slices, pi_authorities, keys, parent_authority, user_first_name,
41 user_urn, user_last_name, user_phone, user_hrn, user_email, user_type
43 $.each( data, function( key, val ) {
44 //list_users.push( "<li><a href=\"portal/user/"+val.user_email+"\">" + val.user_email + "</a></li>" );
46 // checking the box for the users that belong to the selected slice
47 var flag_checkbox = 0;
48 for(var data in val.slices) {
49 var element = val.slices[data];
50 if (element == "{{slice}}"){
51 //console.log("the slice is: "+ element);
53 user_row += "<td><input type='checkbox' checked='True'></td>";
56 if(flag_checkbox != 1){
57 user_row += "<td><input type='checkbox'></td>";
59 user_row += "<td>"+val.user_email+"</td>";
60 user_row += "<td>"+val.user_hrn+"</td>";
61 user_row += "<td>"+val.user_enabled+"</td>";
63 table_users.push(user_row);
66 $("table#user-tab tr:last").after(table_users.join( "" ));
67 $("div#user-tab-loaded").css("display","block");
68 $("div#user-tab-loading").css("display","none");