X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Fslicerequest_view.html;h=07a054396bb3c601444216e969636fafd5c008bb;hb=b1a9b7fca4ddd0a9abe86e362b4b85fbec95a38c;hp=a9e536d65d49f7d6aeed58c7cad122024a7bbb1a;hpb=a5d8ec473bf69cbb0540e3afadd66e1b57ebeff4;p=unfold.git diff --git a/portal/templates/slicerequest_view.html b/portal/templates/slicerequest_view.html index a9e536d6..07a05439 100644 --- a/portal/templates/slicerequest_view.html +++ b/portal/templates/slicerequest_view.html @@ -3,14 +3,14 @@ {% block content %}
-
-

Request a Slice Request a new Slice

+
+

Request a Slice Request a new slice

{% if errors %}
-
+
    {% for error in errors %}
  • {{ error }}
  • @@ -21,37 +21,32 @@ {% endif %}
    -
    +
    {% csrf_token %} -
    - - +
    - - -

    +
    - {%if 'is_pi' in pi %} - -

    An authority responsible for vetting your slice

    + {%else%} - -

    An authority responsible for vetting your slice

    + {%endif%}
    - - -

    Number of nodes you expect to request (informative)

    +
    - - -

    Purpose of your experiment (informative)

    +
    @@ -63,7 +58,7 @@ jQuery(document).ready(function(){ $("#authority_hrn").load("/rest/user/", {"fields" : ["parent_authority"], "filters": {"user_hrn": "{{ user_hrn }}"}}, function(data) { - var jsonData = JSON.parse(data) + var jsonData = JSON.parse(data); $(this).attr("value", jsonData[0]['parent_authority']); }); var availableTags = [ @@ -82,7 +77,7 @@ jQuery(document).ready(function(){ $( "#authority_hrn" ).autocomplete({ source: availableTags, minLength: 0, - select: function( event, ui ) {console.log(jQuery(this))} + select: function( event, ui ) {console.log(jQuery(this));} }); });