X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Fonelab%2Fonelab_institution.html;h=bd361de2848de4e4d5088ff2951a9de2951ef484;hb=6dcca4d4a7f11dff9962a1a3fc14ea1969e334f2;hp=c8a668f1f299631d6c9afab9790559605313b938;hpb=2a9dee0af498110faec36675bbd08c84e02b479c;p=myslice.git diff --git a/portal/templates/onelab/onelab_institution.html b/portal/templates/onelab/onelab_institution.html index c8a668f1..bd361de2 100644 --- a/portal/templates/onelab/onelab_institution.html +++ b/portal/templates/onelab/onelab_institution.html @@ -39,9 +39,11 @@ +/- Email User hrn + @@ -65,7 +67,7 @@ Users Url - Expiration + Creation @@ -90,7 +92,7 @@ $(document).ready(function() { {% if person %} {% if user_details.parent_authority %} - $.post("/rest/slice/",{'filters':{'parent_authority':'{{user_details.parent_authority}}'}}, function( data ) { + $.post("/rest/slice/",{'fields':['slice_hrn','users','url','slice_date_created'],'filters':{'parent_authority':'{{user_details.parent_authority}}'}}, function( data ) { var list_slices = []; var table_slices = []; /* "slice_hrn", "slice_description", "slice_type", "parent_authority", "created", "nodes", "slice_url", "slice_last_updated", "users", "slice_urn", "slice_expires" */ @@ -108,10 +110,10 @@ $(document).ready(function() { users_length=val.users.length; } - if(val.slice_url=="undefined" || val.slice_url==null){ + if(val.url=="undefined" || val.url==null){ slice_url=""; }else{ - slice_url=""+val.slice_url+""; + slice_url=""+val.url+""; } slice_row = ""; @@ -120,7 +122,7 @@ $(document).ready(function() { slice_row += ""+users_length+""; slice_row += ""+slice_url+""; //slice_row += ""+nodes_length+""; - slice_row += ""+val.slice_expires+""; + slice_row += ""+val.slice_date_created+""; slice_row += ""; table_slices.push(slice_row); @@ -133,7 +135,7 @@ $(document).ready(function() { }); - $.post("/rest/user/",{'filters':{'parent_authority':'{{user_details.parent_authority}}'}}, function( data ) { + $.post("/rest/user/",{'fields':['user_hrn','user_email'],'filters':{'parent_authority':'{{user_details.parent_authority}}'}}, function( data ) { var list_users = []; var table_users = []; /* Available fields @@ -146,9 +148,11 @@ $(document).ready(function() { user_row += ""; user_row += ""+val.user_email+""; user_row += ""+val.user_hrn+""; + /* user_row += ""+val.user_first_name+""; user_row += ""+val.user_last_name+""; user_row += ""+val.user_enabled+""; + */ user_row += ""; table_users.push(user_row); });