source: trunk/grails-app/views/assay/_addRunDialog.gsp @ 2

Last change on this file since 2 was 2, checked in by robert@…, 12 years ago

Initial import of basic functionality

File size: 1.9 KB
Line 
1<div id="addRunDialog" class="tabbedDialog">
2        <div id="runTabs">
3                <ul>
4                        <li><a href="#newRun">New</a></li>
5                        <li><a href="#existingRun">Existing</a></li>
6                </ul>
7                <div id="newRun">
8                        <h2>Add a new run</h2>
9                        <p>
10                                Enter data about the new run below. Only the name is required.
11                        </p>
12                        <g:form name="addRun" controller="run" action="create" id="${assay.id}">
13                                <label for="name">Name</label><g:textField name="run.name" value="" id="add_run_name" /><br />
14                                <label for="date">Date</label><g:textField name="run_date" value="" /><br />
15                                <label for="supplier">Supplier</label><g:textField name="run.supplier" value="" /><br />
16                                <label for="machine">Machine</label><g:textField name="run.machine" value="" /><br />
17                                <label for="parameters">Parameters</label><g:fileUpload name="parameterFile" value="" /><br />
18                        </g:form>
19                </div>
20                <div id="existingRun">
21                        <h2>Choose existing run to associate with this study</h2>
22                        <p>
23                                Choose one of the runs below to associate with this study.
24                        </p>           
25                        <g:form name="addExistingRuns" action="addExistingRuns" id="${assay.id}">
26                                <table class="paginate">
27                                        <thead>
28                                                <tr>
29                                                        <th class="nonsortable"></th>
30                                                        <th nowrap>name</th>
31                                                        <th nowrap>date</th>
32                                                        <th nowrap>other assays</th>
33                                                </tr>
34                                        </thead>                               
35                                        <tbody>
36                                                <g:each in="${otherRuns}" var="run">
37                                                        <tr>
38                                                                <td><g:checkBox name="runs" value="${run.id}" checked="${false}"/></td>
39                                                                <td>${run.name}</td>
40                                                                <td><g:formatDate format="dd-MM-yyyy" date="${run.date}"/></td>
41                                                                <td>
42                                                                        <g:if test="${run.assays?.size() == 0}">
43                                                                                -
44                                                                        </g:if>
45                                                                        <g:else>
46                                                                                <g:each in="${run.assays}" var="otherAssay">
47                                                                                        <g:link action="show" id="${otherAssay.id}">${otherAssay.name}</g:link><br />
48                                                                                </g:each>
49                                                                        </g:else>
50                                                                </td>
51                                                        </tr>
52                                                </g:each>
53                                        </tbody>
54                                </table>               
55                        </g:form>       
56                </div>
57        </div>
58</div>
Note: See TracBrowser for help on using the repository browser.