source: trunk/grails-app/views/studyWizard/pages/_assays.gsp @ 1353

Last change on this file since 1353 was 1353, checked in by work@…, 12 years ago
  • fixed some issues with ajaxbuttons that were still left unworking after refactoring into ajaxflows (improvement #183)
  • updated ajaxflow to 0.1.15
File size: 2.4 KB
Line 
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: 998 $
13 * $Author: j.a.m.wesbeek@umail.leidenuniv.nl $
14 * $Date: 2010-10-26 17:03:37 +0200 (Tue, 26 Oct 2010) $
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        </wizard:textFieldElement */ %>
27        <wizard: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        </wizard:templateElement>
30        <g:if test="${assay}">
31        <wizard:templateElements entity="${assay}" />
32        <wizard:ajaxButtonElement name="add" value="Add" afterSuccess="onPage()">
33        </wizard: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                                        <wizard: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                                        <wizard: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>
Note: See TracBrowser for help on using the repository browser.