git://git.onelab.eu
/
unfold.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Templates: Account generic, rm specifics
[unfold.git]
/
portal
/
templates
/
slice-tab-users-view.html
diff --git
a/portal/templates/slice-tab-users-view.html
b/portal/templates/slice-tab-users-view.html
index
29a4f57
..
d64fdee
100644
(file)
--- a/
portal/templates/slice-tab-users-view.html
+++ b/
portal/templates/slice-tab-users-view.html
@@
-9,7
+9,7
@@
var slice_users_removed = [];
var slice_users_emails = [];
var slice_users_emails_removed = [];
var slice_users_removed = [];
var slice_users_emails = [];
var slice_users_emails_removed = [];
- $.post("/rest/user/",{'filters':{'parent_authority': authority_hrn}}, function( data ) {
+ $.post("/rest/
myslice:
user/",{'filters':{'parent_authority': authority_hrn}}, function( data ) {
var list_users = [];
var table_users = [];
/* Available fields
var list_users = [];
var table_users = [];
/* Available fields
@@
-68,7
+68,7
@@
}); // post rest/use
$('button#addusers').click(function() {
}); // post rest/use
$('button#addusers').click(function() {
- $.post("/update/slice/",{'filters':{'slice_hrn':'{{slice}}'},'params':{'users':slice_users}}, function(data) {
+ $.post("/update/
myslice:
slice/",{'filters':{'slice_hrn':'{{slice}}'},'params':{'users':slice_users}}, function(data) {
if(data.success){
// TODO: highlight row after success
//$('tr[id="'+record_id+'"]').highlight();
if(data.success){
// TODO: highlight row after success
//$('tr[id="'+record_id+'"]').highlight();
@@
-87,7
+87,7
@@
$(document).ready(function() {
// TODO: Add a filter based on the list of authorities
$(document).ready(function() {
// TODO: Add a filter based on the list of authorities
- $.post("/rest/authority/",{'fields':['authority_hrn']}, function( data ) {
+ $.post("/rest/
myslice:
authority/",{'fields':['authority_hrn']}, function( data ) {
var list_authorities = [];
$.each( data, function( key, val ) {
auth_hrn = val.authority_hrn;
var list_authorities = [];
$.each( data, function( key, val ) {
auth_hrn = val.authority_hrn;
@@
-138,9
+138,6
@@
<div id="user-tab-loaded" style="display:none;">
<table id="user-tab" class="table">
</table>
<div id="user-tab-loaded" style="display:none;">
<table id="user-tab" class="table">
</table>
-
- <!-- XXX TODO: for the moment only PIs have access to Update but users that have slice credentials should also have access to that -->
-
<button id="addusers" type="button" class="btn btn-default"><span class="glyphicon glyphicon-ok"></span> Update users</button>
</div>
<button id="addusers" type="button" class="btn btn-default"><span class="glyphicon glyphicon-ok"></span> Update users</button>
</div>