<li><a href="#users">Users</a></li>
{% if not project %}
<li><a href="#projects">Projects</a></li>
- {% endif %}
+ {% else %}
<li><a href="#slices">Slices</a></li>
+ {% endif %}
<li><a href="#requests">Requests</a></li>
</ul>
</div>
{% if person %}
{% if user_details.parent_authority %}
$('#spinner').spin();
+ $('#loading').spin();
$.post("/rest/myslice:slice/",{'fields':['slice_hrn','users','url','slice_date_created'],'filters':{'parent_authority':'{{user_details.parent_authority}}'}}, function( data ) {
var list_slices = [];
}
slice_row = "<tr id='"+val.slice_hrn+"'>";
- slice_row += "<td><input type='checkbox' class='slice' id='"+val.slice_hrn+"'></td>";
+ slice_row += "<td><input type='checkbox' class='slice' id='"+val.slice_hrn+"'><div id='loading' style='float: right;'></div></td>";
// filter links to slices, only those that the user has credentials for
s = myslice.user.slices;
if(this.checked){
var record_id = this.id;
pi_users.push(record_id)
+ $.post("/credentials/clear/",{'emails':[this.dataset['email']]}, function(data) {
+ }); // post credentials clear
flag = true;
}
});
for (var i=pi_users.length-1; i>=0; i--) {
if (pi_users[i] === record_id) {
pi_users.splice(i, 1);
+ $.post("/credentials/clear/",{'emails':[this.dataset['email']]}, function(data) {
+ }); // post credentials clear
+ flag = true;
}
}
- flag = true;
}
});
if(flag == true){
//alert("Rest Error for "+record_id+": "+data.error);
}
});
+ }else{
+ mysliceAlert('No action: User had no rights on: {{user_details.parent_authority}}','success', true);
}
});
});