Last change
on this file since 1583 was
1583,
checked in by s.h.sikkema@…, 11 years ago
|
UI improvements to assay exporter (ticket #159)
|
-
Property svn:keywords set to
Rev Author Date
|
File size:
1.5 KB
|
Line | |
---|
1 | <%-- |
---|
2 | Created by IntelliJ IDEA. |
---|
3 | User: siemensikkema |
---|
4 | Date: Nov 30, 2010 |
---|
5 | Time: 4:07:28 PM |
---|
6 | --%> |
---|
7 | |
---|
8 | <%@ page import="dbnp.studycapturing.Study" contentType="text/html;charset=UTF-8" %> |
---|
9 | <html> |
---|
10 | <head> |
---|
11 | <meta name="layout" content="main" /> |
---|
12 | <title>Select an assay</title> |
---|
13 | <script type="text/javascript"> |
---|
14 | function updateAssay(jsonData, selectID) { |
---|
15 | var a = eval(jsonData); |
---|
16 | var sel = $('#'+selectID).empty(); |
---|
17 | |
---|
18 | $(a).each(function(i, el){ |
---|
19 | sel.append($("<option></option>").attr("value",el.id).text(el.name)) |
---|
20 | }) |
---|
21 | } |
---|
22 | |
---|
23 | $(document).ready(function(){ |
---|
24 | // trigger change event to load assay based on currently selected study. |
---|
25 | // After pressing 'Back', the browser may use last selected study. |
---|
26 | $('#study').change() |
---|
27 | |
---|
28 | }) |
---|
29 | </script> |
---|
30 | </head> |
---|
31 | <body> |
---|
32 | <div style="color:red;"> |
---|
33 | ${flash.errorMessage} |
---|
34 | </div> |
---|
35 | |
---|
36 | <h1>Select the assay you want to export data from</h1> |
---|
37 | |
---|
38 | <g:form name="assaySelect" action="selectFields"> |
---|
39 | <g:select optionKey="id" optionValue="title" name="studyId" from="${userStudies}" id="study" |
---|
40 | onChange="${remoteFunction(controller:'study',action:'ajaxGetAssays',params:'\'id=\'+escape(this.value)',onComplete: 'updateAssay(XMLHttpRequest.responseText, \'assay\')')}"/> |
---|
41 | <g:select optionKey="id" name="assayId" id="assay" from=""/> |
---|
42 | %{--<g:select optionKey="id" name="assayId" id="assay" from="${assays}"/>--}% |
---|
43 | <g:submitButton name="submit" value="Submit"/> |
---|
44 | </g:form> |
---|
45 | </body> |
---|
46 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.