1 | <% |
---|
2 | /** |
---|
3 | * Assays page |
---|
4 | * |
---|
5 | * @author Jeroen Wesbeek |
---|
6 | * @since 20100817 |
---|
7 | * @package wizard |
---|
8 | * @see dbnp.studycapturing.WizardTagLib::previousNext |
---|
9 | * @see dbnp.studycapturing.WizardController |
---|
10 | * |
---|
11 | * Revision information: |
---|
12 | * $Rev: 1461 $ |
---|
13 | * $Author: work@osx.eu $ |
---|
14 | * $Date: 2011-02-01 13:36:57 +0000 (di, 01 feb 2011) $ |
---|
15 | */ |
---|
16 | %> |
---|
17 | <af:page> |
---|
18 | <span class="info"> |
---|
19 | <span class="title">Add assays to your study</span> |
---|
20 | In this step you can define the various assays that were performed within this study. |
---|
21 | The actual (omics) data for these assays should reside in one of the assay modules that is coupled to this database (see Assay Modules). |
---|
22 | </span> |
---|
23 | |
---|
24 | <% /* wizard:textFieldElement name="addNumber" description="Number of assays to add" error="addNumber" value="${values?.addNumber}" size="4" maxlength="4"> |
---|
25 | The number of assays to add to your study |
---|
26 | </af:textFieldElement */ %> |
---|
27 | <af:templateElement name="template" description="Template" value="${assay?.template}" entity="${dbnp.studycapturing.Assay}" addDummy="true" ajaxOnChange="switchTemplate" afterSuccess="onPage()" > |
---|
28 | Choose the type of assay you would like to add |
---|
29 | </af:templateElement> |
---|
30 | <g:if test="${assay}"> |
---|
31 | <af:templateElements entity="${assay}" /> |
---|
32 | <af:ajaxButtonElement name="add" value="Add" afterSuccess="onPage()"> |
---|
33 | </af:ajaxButtonElement> |
---|
34 | </g:if> |
---|
35 | |
---|
36 | <g:if test="${study.assays}"> |
---|
37 | <g:each var="template" in="${study.giveAllAssayTemplates()}"> |
---|
38 | <g:set var="showHeader" value="${true}" /> |
---|
39 | <h1>${template}</h1> |
---|
40 | <div class="tableEditor"> |
---|
41 | <g:each var="assay" in="${study.giveAssaysForTemplate(template)}"> |
---|
42 | <g:if test="${showHeader}"> |
---|
43 | <g:set var="showHeader" value="${false}" /> |
---|
44 | <div class="header"> |
---|
45 | <div class="firstColumn"></div> |
---|
46 | <af:templateColumnHeaders class="column" entity="${assay}" /> |
---|
47 | </div> |
---|
48 | </g:if> |
---|
49 | |
---|
50 | <div class="row"> |
---|
51 | <div class="firstColumn"> |
---|
52 | <af:ajaxButton name="deleteAssay" src="${resource(dir: 'images/icons', file: 'delete.png', plugin: 'famfamfam')}" alt="delete this assay" class="famfamfam" value="-" before="\$(\'input[name=do]\').val(${assay.getIdentifier()});" afterSuccess="onPage()"/> |
---|
53 | </div> |
---|
54 | <af:templateColumns class="column" entity="${assay}" name="assay_${assay.getIdentifier()}" /> |
---|
55 | </div> |
---|
56 | </g:each> |
---|
57 | </div> |
---|
58 | <div class="sliderContainer"> |
---|
59 | <div class="slider"></div> |
---|
60 | </div> |
---|
61 | </g:each> |
---|
62 | </g:if> |
---|
63 | </af:page> |
---|