git://git.onelab.eu
/
unfold.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8819a6d
)
Institution: added filter in html for user list
author
Yasin
<mohammed-yasin.rahman@lip6.fr>
Thu, 27 Feb 2014 10:01:03 +0000
(11:01 +0100)
committer
Yasin
<mohammed-yasin.rahman@lip6.fr>
Thu, 27 Feb 2014 10:01:03 +0000
(11:01 +0100)
portal/templates/institution.html
patch
|
blob
|
history
diff --git
a/portal/templates/institution.html
b/portal/templates/institution.html
index
6026b71
..
a0f6510
100644
(file)
--- a/
portal/templates/institution.html
+++ b/
portal/templates/institution.html
@@
-134,7
+134,7
@@
});
{% endif %}
{% if person %}
});
{% endif %}
{% if person %}
- $.getJSON("/rest/user/", function( data ) {
+ $.getJSON("/rest/user/",
{'filters':{'parent_authority':'ple.upmc'}},
function( data ) {
var list_users = [];
var table_users = [];
/*
var list_users = [];
var table_users = [];
/*
@@
-142,25
+142,8
@@
*/
$.each( data, function( key, val ) {
list_users.push( "<li><a href=\"portal/user/"+val.user_email+"\">" + val.user_email + "</a></li>" );
*/
$.each( data, function( key, val ) {
list_users.push( "<li><a href=\"portal/user/"+val.user_email+"\">" + val.user_email + "</a></li>" );
- /*if(val.nodes=="undefined" || val.nodes==null){
- nodes_length=0;
- }else{
- nodes_length=val.nodes.length;
- }
-
- if(val.user=="undefined" || val.user==null){
- user_length=0;
- }else{
- user_length=val.user.length;
- }
-
- if(val.slice_url=="undefined" || val.slice_url==null){
- slice_url="";
- }else{
- slice_url="<a href='"+val.slice_url+"' target='_blank'>"+val.slice_url+"</a>";
- }*/
- user_row = "<tr>";
+
user_row = "<tr>";
user_row += "<td><input type='checkbox'></td>";
user_row += "<td>"+val.user_email+"</td>";
user_row += "<td>"+val.user_hrn+"</td>";
user_row += "<td><input type='checkbox'></td>";
user_row += "<td>"+val.user_email+"</td>";
user_row += "<td>"+val.user_hrn+"</td>";