1 | <html> |
---|
2 | <head> |
---|
3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
---|
4 | <meta name="layout" content="main" /> |
---|
5 | <title>Simple study wizard</title> |
---|
6 | |
---|
7 | <g:render template="javascripts" /> |
---|
8 | </head> |
---|
9 | <body> |
---|
10 | <div class="simpleWizard assayspage"> |
---|
11 | <h1>Assay</h1> |
---|
12 | |
---|
13 | <g:if test="${error}"> |
---|
14 | <div class="errormessage"> |
---|
15 | ${error.toString().encodeAsHTML()} |
---|
16 | </div> |
---|
17 | </g:if> |
---|
18 | <g:if test="${message}"> |
---|
19 | <div class="message"> |
---|
20 | ${message.toString().encodeAsHTML()} |
---|
21 | </div> |
---|
22 | </g:if> |
---|
23 | |
---|
24 | <span class="info"> |
---|
25 | <span class="title">Enter data about the assay</span> |
---|
26 | Or otherwise press skip to fill in the assay later. |
---|
27 | </span> |
---|
28 | |
---|
29 | <g:if test="${flash.validationErrors}"> |
---|
30 | <div class="errormessage"> |
---|
31 | <g:each var="error" in="${flash.validationErrors}"> |
---|
32 | ${error.value}<br /> |
---|
33 | </g:each> |
---|
34 | </div> |
---|
35 | </g:if> |
---|
36 | |
---|
37 | <g:form class="simpleWizard" name="assays" action="simpleWizard"> |
---|
38 | <input type="hidden" name="_eventId" value="refresh" /> |
---|
39 | |
---|
40 | <af:templateElement name="template" description="Template" |
---|
41 | value="${assay.template}" entity="${dbnp.studycapturing.Assay}" |
---|
42 | addDummy="true" onChange="if(\$( this ).val() != '') { submitForm( 'assays' ); }"> |
---|
43 | Choose the type of assay you would like to perform. |
---|
44 | Depending on the chosen template specific fields can be filled out. If none of the templates contain all the necessary fields, a new template can be defined (based on other templates). |
---|
45 | </af:templateElement> |
---|
46 | |
---|
47 | <g:if test="${assay}"> |
---|
48 | <g:if test="${assay.template?.description}"> |
---|
49 | <div class="element"> |
---|
50 | <div class="templatedescription"> |
---|
51 | ${assay.template?.description?.encodeAsHTML()} |
---|
52 | </div> |
---|
53 | </div> |
---|
54 | </g:if> |
---|
55 | <af:templateElements ignore="externalassayid" entity="${assay}" /> |
---|
56 | </g:if> |
---|
57 | |
---|
58 | <br clear="all" /> |
---|
59 | |
---|
60 | <p class="options"> |
---|
61 | <a class="previous" href="#" onClick="submitForm( 'assays', 'previous' ); return false;">Previous</a> |
---|
62 | <a class="next" href="#" onClick="submitForm( 'assays', 'next' ); return false;">Next</a> |
---|
63 | <a class="skip" href="#" onClick="submitForm( 'assays', 'skip' ); return false;">Skip</a> |
---|
64 | </p> |
---|
65 | |
---|
66 | </g:form> |
---|
67 | </div> |
---|
68 | </body> |
---|
69 | </html> |
---|