git://git.onelab.eu
/
myslice.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
31b87e7
)
Slice request pre-select authority
author
Pierre Vigreux
<root@Portable>
Mon, 14 Apr 2014 14:45:25 +0000
(16:45 +0200)
committer
Pierre Vigreux
<root@Portable>
Mon, 14 Apr 2014 14:45:25 +0000
(16:45 +0200)
portal/templates/slicerequest_view.html
patch
|
blob
|
history
diff --git
a/portal/templates/slicerequest_view.html
b/portal/templates/slicerequest_view.html
index
0f895b7
..
e70a9a9
100644
(file)
--- a/
portal/templates/slicerequest_view.html
+++ b/
portal/templates/slicerequest_view.html
@@
-55,6
+55,11
@@
<script>
jQuery(document).ready(function(){
<script>
jQuery(document).ready(function(){
+
+ $("#authority_hrn").load("/rest/user/", {"fields" : ["parent_authority"], "filters": {"user_hrn": "{{ user_hrn }}"}}, function(data) {
+ var jsonData = JSON.parse(data)
+ $(this).attr("value", jsonData[0]['parent_authority']);
+ });
var availableTags = [
{% if authorities %}
{% for authority in authorities %}
var availableTags = [
{% if authorities %}
{% for authority in authorities %}