source: trunk/grails-app/views/simpleWizard/simpleWizard/samples.gsp @ 1654

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

Fixed a bug in uploading files. The bug appeared in the simple wizard, but probably also in other places

File size: 3.2 KB
Line 
1<%@ page import="org.dbnp.gdt.GdtService" %>
2<html>
3<head>
4        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
5        <meta name="layout" content="main"/>
6        <title>Simple study wizard</title>
7       
8        <g:render template="javascripts" />
9       
10</head>
11<body>
12        <div class="simpleWizard">
13                <h1>Samples</h1>
14
15                <g:if test="${flash.error}">
16                        <div class="errormessage">
17                                ${flash.error.toString().encodeAsHTML()}
18                        </div>
19                </g:if>
20                <g:if test="${flash.message}">
21                        <div class="message">
22                                ${flash.message.toString().encodeAsHTML()}
23                        </div>
24                </g:if>
25               
26                <g:form class="simpleWizard" name="samples" action="simpleWizard">
27                        <input type="hidden" name="_eventId" value="refresh" />
28
29                        <div id="samplesDialog">
30                        <span class="info">
31                                        <span class="title">Import sample data</span>
32                                        You can import your Excel data to the server by choosing a file from your local harddisk in the form below. The excel sheet should contain
33                                        data on the first sheet, and the sheet should contain one row with headers.
34                                </span>
35                   
36                                <table border="0">
37                                <tr>
38                                    <td width="100px">
39                                                Choose your Excel file to import:
40                                    </td>
41                                    <td width="100px">
42                                        ${sampleForm?.importFile}
43                                                <af:fileField name="importfile" value="${sampleForm?.importFile}"/>
44                                    </td>
45                                        </tr>
46                                        <tr>
47                                            <td>
48                                                <div id="datatemplate">Choose type of sample template:</div>
49                                            </td>
50                                            <td>
51                                                        <g:select rel="template" entity="${encodedEntity.Sample}" name="sample_template_id" optionKey="id" optionValue="name" from="${templates.Sample}" value="${sampleForm?.templateId?.Sample}"/>
52                                            </td>
53                                        </tr>
54                                        <tr>
55                                            <td>
56                                                <div id="datatemplate">Choose type of subject template:</div>
57                                            </td>
58                                            <td>
59                                                        <g:select rel="template" entity="${encodedEntity.Subject}" name="subject_template_id" noSelection="${[null: '- no subject template -']}" optionKey="id" optionValue="name" from="${templates.Subject}"  value="${sampleForm?.templateId?.Subject}" />
60                                            </td>
61                                        </tr>
62                                        <tr>
63                                            <td>
64                                                <div id="datatemplate">Choose type of event template:</div>
65                                            </td>
66                                            <td>
67                                                        <g:select rel="template" entity="${encodedEntity.Event}" name="event_template_id" noSelection="${[null: '- no event template -']}" optionKey="id" optionValue="name" from="${templates.Event}"  value="${sampleForm?.templateId?.Event}" />
68                                            </td>
69                                        </tr>
70                                        <tr>
71                                            <td>
72                                                <div id="datatemplate">Choose type of sampling event template:</div>
73                                            </td>
74                                            <td>
75                                                        <g:select rel="template" entity="${encodedEntity.SamplingEvent}" name="samplingEvent_template_id" noSelection="${[null: '- no sampling event template -']}" optionKey="id" optionValue="name" from="${templates.SamplingEvent}"  value="${sampleForm?.templateId?.SamplingEvent}" />
76                                            </td>
77                                        </tr>           
78                                </table>       
79                        </div>
80               
81                </g:form>
82               
83                <p class="options">
84                        <a href="#" onClick="submitForm( 'samples', 'previous' ); return false;" class="previous">Previous</a>
85                        <a href="#" onClick="submitForm( 'samples', 'next' ); return false;" class="next">Next</a>
86                        <a class="skip" href="#" onClick="submitForm( 'samples', 'skip' ); return false;">Skip</a>
87                </p>
88        </div> 
89
90</body>
91</html>
Note: See TracBrowser for help on using the repository browser.