2505 |
13 Jun 14 |
nicklas |
1 |
<%@ page |
2505 |
13 Jun 14 |
nicklas |
2 |
pageEncoding="UTF-8" |
2505 |
13 Jun 14 |
nicklas |
3 |
session="false" |
2505 |
13 Jun 14 |
nicklas |
4 |
import="net.sf.basedb.core.User" |
2505 |
13 Jun 14 |
nicklas |
5 |
import="net.sf.basedb.core.DbControl" |
2505 |
13 Jun 14 |
nicklas |
6 |
import="net.sf.basedb.core.SessionControl" |
2505 |
13 Jun 14 |
nicklas |
7 |
import="net.sf.basedb.core.Application" |
2505 |
13 Jun 14 |
nicklas |
8 |
import="net.sf.basedb.clients.web.Base" |
2505 |
13 Jun 14 |
nicklas |
9 |
import="net.sf.basedb.clients.web.util.HTML" |
2505 |
13 Jun 14 |
nicklas |
10 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
2505 |
13 Jun 14 |
nicklas |
11 |
%> |
2505 |
13 Jun 14 |
nicklas |
12 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
2505 |
13 Jun 14 |
nicklas |
13 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
2505 |
13 Jun 14 |
nicklas |
14 |
<% |
3976 |
26 May 16 |
nicklas |
15 |
final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true); |
2505 |
13 Jun 14 |
nicklas |
16 |
final String ID = sc.getId(); |
2505 |
13 Jun 14 |
nicklas |
17 |
final float scale = Base.getScale(sc); |
2505 |
13 Jun 14 |
nicklas |
18 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
2505 |
13 Jun 14 |
nicklas |
19 |
DbControl dc = null; |
2505 |
13 Jun 14 |
nicklas |
20 |
try |
2505 |
13 Jun 14 |
nicklas |
21 |
{ |
2505 |
13 Jun 14 |
nicklas |
22 |
dc = sc.newDbControl(); |
2505 |
13 Jun 14 |
nicklas |
23 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
2505 |
13 Jun 14 |
nicklas |
24 |
%> |
2505 |
13 Jun 14 |
nicklas |
25 |
<base:page type="default" > |
2664 |
15 Sep 14 |
nicklas |
26 |
<base:head |
2664 |
15 Sep 14 |
nicklas |
27 |
scripts="~../reggie-2.js,~rna_dilution_registration.js" |
2664 |
15 Sep 14 |
nicklas |
28 |
styles="path.css,~../css/reggie-2.css" |
2664 |
15 Sep 14 |
nicklas |
29 |
/> |
2664 |
15 Sep 14 |
nicklas |
30 |
<base:body> |
2505 |
13 Jun 14 |
nicklas |
31 |
|
2505 |
13 Jun 14 |
nicklas |
32 |
<p:path><p:pathelement |
2505 |
13 Jun 14 |
nicklas |
33 |
title="Reggie" href="<%="../index.jsp?ID="+ID%>" |
2505 |
13 Jun 14 |
nicklas |
34 |
/><p:pathelement title="RNA dilution registration" |
2505 |
13 Jun 14 |
nicklas |
35 |
/></p:path> |
2505 |
13 Jun 14 |
nicklas |
36 |
|
2505 |
13 Jun 14 |
nicklas |
37 |
<div class="content"> |
2505 |
13 Jun 14 |
nicklas |
38 |
|
2664 |
15 Sep 14 |
nicklas |
39 |
<form name="reggie" id="wizard" class="wizard"> |
2664 |
15 Sep 14 |
nicklas |
40 |
|
2664 |
15 Sep 14 |
nicklas |
41 |
<div class="step" id="step-1"> |
2664 |
15 Sep 14 |
nicklas |
42 |
<div class="step-no">1</div> |
2664 |
15 Sep 14 |
nicklas |
43 |
<div class="step-title">Select mRNA bioplate</div> |
2664 |
15 Sep 14 |
nicklas |
44 |
<div class="step-content"> |
2664 |
15 Sep 14 |
nicklas |
45 |
|
2664 |
15 Sep 14 |
nicklas |
46 |
<table class="step-form"> |
2664 |
15 Sep 14 |
nicklas |
47 |
<tr> |
2505 |
13 Jun 14 |
nicklas |
48 |
<td class="prompt">mRNA bioplate</td> |
2664 |
15 Sep 14 |
nicklas |
49 |
<td class="input"><select class="required" name="bioplate" id="bioplate"></select> |
2505 |
13 Jun 14 |
nicklas |
50 |
</td> |
2505 |
13 Jun 14 |
nicklas |
51 |
<td class="status" id="bioplate.status"></td> |
2664 |
15 Sep 14 |
nicklas |
52 |
<td class="help"> |
2664 |
15 Sep 14 |
nicklas |
53 |
<span id="bioplate.message" class="message"></span> |
2505 |
13 Jun 14 |
nicklas |
54 |
Select an existing mRNA bioplate. The list contain all mRNA bioplates that |
2505 |
13 Jun 14 |
nicklas |
55 |
has not been diluted, but not yet registered as completed (determined by the absence of a |
2505 |
13 Jun 14 |
nicklas |
56 |
'DilutionDate' annotation). |
2505 |
13 Jun 14 |
nicklas |
57 |
</td> |
2505 |
13 Jun 14 |
nicklas |
58 |
</tr> |
3040 |
15 Dec 14 |
nicklas |
59 |
<tbody class="info-section"> |
3040 |
15 Dec 14 |
nicklas |
60 |
<tr> |
3040 |
15 Dec 14 |
nicklas |
61 |
<td class="prompt">Comments</td> |
3040 |
15 Dec 14 |
nicklas |
62 |
<td class="info" id="comments-info"></td> |
3040 |
15 Dec 14 |
nicklas |
63 |
<td class="status"></td> |
3040 |
15 Dec 14 |
nicklas |
64 |
<td class="help"></td> |
3040 |
15 Dec 14 |
nicklas |
65 |
</tr> |
3040 |
15 Dec 14 |
nicklas |
66 |
</tbody> |
2505 |
13 Jun 14 |
nicklas |
67 |
</table> |
2664 |
15 Sep 14 |
nicklas |
68 |
</div> |
2505 |
13 Jun 14 |
nicklas |
69 |
</div> |
2505 |
13 Jun 14 |
nicklas |
70 |
|
2664 |
15 Sep 14 |
nicklas |
71 |
<div class="step" id="step-2"> |
2664 |
15 Sep 14 |
nicklas |
72 |
<div class="step-no">2</div> |
2664 |
15 Sep 14 |
nicklas |
73 |
<div class="step-title" id="step-2-title">mRNA preparation information</div> |
2664 |
15 Sep 14 |
nicklas |
74 |
<div class="step-content"> |
2664 |
15 Sep 14 |
nicklas |
75 |
|
2664 |
15 Sep 14 |
nicklas |
76 |
<table class="step-form"> |
2664 |
15 Sep 14 |
nicklas |
77 |
<tr> |
2505 |
13 Jun 14 |
nicklas |
78 |
<td class="prompt">Dilution date</td> |
2505 |
13 Jun 14 |
nicklas |
79 |
<td class="input"> |
2664 |
15 Sep 14 |
nicklas |
80 |
<input type="text" name="dilutionDate" id="dilutionDate" |
2664 |
15 Sep 14 |
nicklas |
81 |
class="required auto-init" data-auto-init="focus-on-enter" data-next-focus="dilutionOperator" |
2664 |
15 Sep 14 |
nicklas |
82 |
style="width: 12em;" maxlength="10"> |
2505 |
13 Jun 14 |
nicklas |
83 |
<base:icon |
2664 |
15 Sep 14 |
nicklas |
84 |
id="dilutionDateCalendar" |
2664 |
15 Sep 14 |
nicklas |
85 |
subclass="auto-init" |
2664 |
15 Sep 14 |
nicklas |
86 |
data-auto-init="calendar" |
2664 |
15 Sep 14 |
nicklas |
87 |
data-textarea-id="dilutionDate" |
2664 |
15 Sep 14 |
nicklas |
88 |
data-date-format="yyyyMMdd" |
2666 |
15 Sep 14 |
nicklas |
89 |
data-title="Dilution date" |
2505 |
13 Jun 14 |
nicklas |
90 |
image="calendar.png" |
2505 |
13 Jun 14 |
nicklas |
91 |
tooltip="Select a date from a calendar" |
2505 |
13 Jun 14 |
nicklas |
92 |
tabindex="-1" |
2505 |
13 Jun 14 |
nicklas |
93 |
/> |
2505 |
13 Jun 14 |
nicklas |
94 |
</td> |
2505 |
13 Jun 14 |
nicklas |
95 |
<td class="status" id="dilutionDate.status"></td> |
2505 |
13 Jun 14 |
nicklas |
96 |
<td class="help"> |
2664 |
15 Sep 14 |
nicklas |
97 |
<span id="dilutionDate.message" class="message"></span> |
2664 |
15 Sep 14 |
nicklas |
98 |
Date the RNA was diluted (YYYYMMDD or MMDD) |
2505 |
13 Jun 14 |
nicklas |
99 |
</td> |
2505 |
13 Jun 14 |
nicklas |
100 |
</tr> |
2664 |
15 Sep 14 |
nicklas |
101 |
<tr> |
2505 |
13 Jun 14 |
nicklas |
102 |
<td class="prompt">Operator</td> |
2505 |
13 Jun 14 |
nicklas |
103 |
<td class="input"> |
2664 |
15 Sep 14 |
nicklas |
104 |
<input type="text" name="dilutionOperator" id="dilutionOperator" |
2664 |
15 Sep 14 |
nicklas |
105 |
class="auto-init" data-auto-init="focus-on-enter" data-next-focus="comments" |
2664 |
15 Sep 14 |
nicklas |
106 |
value="<%=HTML.encodeTags(user.getName()) %>" maxlength="255"> |
2505 |
13 Jun 14 |
nicklas |
107 |
</td> |
2505 |
13 Jun 14 |
nicklas |
108 |
<td class="status" id="dilutionOperator.status"></td> |
2505 |
13 Jun 14 |
nicklas |
109 |
<td class="help"> |
2664 |
15 Sep 14 |
nicklas |
110 |
<span id="dilutionOperator.message" class="message"></span> |
2505 |
13 Jun 14 |
nicklas |
111 |
</td> |
2505 |
13 Jun 14 |
nicklas |
112 |
</tr> |
2664 |
15 Sep 14 |
nicklas |
113 |
<tr class="align-top"> |
2505 |
13 Jun 14 |
nicklas |
114 |
<td class="prompt">Comments</td> |
2664 |
15 Sep 14 |
nicklas |
115 |
<td class="input"> |
2664 |
15 Sep 14 |
nicklas |
116 |
<textarea rows="4"name="comments" id="comments"></textarea> |
2664 |
15 Sep 14 |
nicklas |
117 |
</td> |
2505 |
13 Jun 14 |
nicklas |
118 |
<td class="status" id="comments.status"></td> |
2664 |
15 Sep 14 |
nicklas |
119 |
<td class="help"> |
2664 |
15 Sep 14 |
nicklas |
120 |
<span id="comments.message" class="message"></span> |
2664 |
15 Sep 14 |
nicklas |
121 |
Comments about the mRNA processing. |
2664 |
15 Sep 14 |
nicklas |
122 |
</td> |
2505 |
13 Jun 14 |
nicklas |
123 |
</tr> |
2505 |
13 Jun 14 |
nicklas |
124 |
</table> |
2664 |
15 Sep 14 |
nicklas |
125 |
</div> |
2505 |
13 Jun 14 |
nicklas |
126 |
</div> |
2505 |
13 Jun 14 |
nicklas |
127 |
|
2664 |
15 Sep 14 |
nicklas |
128 |
<div id="wizard-status"></div> |
2505 |
13 Jun 14 |
nicklas |
129 |
|
2664 |
15 Sep 14 |
nicklas |
130 |
<table class="navigation" id="navigation"> |
2664 |
15 Sep 14 |
nicklas |
131 |
<tr> |
2664 |
15 Sep 14 |
nicklas |
132 |
<td><base:button id="gocancel" title="Cancel" /></td> |
2664 |
15 Sep 14 |
nicklas |
133 |
<td><base:button id="gonext" title="Next" image="<%=home+"/images/gonext.png"%>" /></td> |
2664 |
15 Sep 14 |
nicklas |
134 |
<td><base:button id="goregister" title="Register" image="<%=home+"/images/import.png"%>" /></td> |
2664 |
15 Sep 14 |
nicklas |
135 |
<td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" /></td> |
2664 |
15 Sep 14 |
nicklas |
136 |
<td id="gonext-message" class="message"></td> |
2664 |
15 Sep 14 |
nicklas |
137 |
</tr> |
2505 |
13 Jun 14 |
nicklas |
138 |
</table> |
2505 |
13 Jun 14 |
nicklas |
139 |
|
2505 |
13 Jun 14 |
nicklas |
140 |
</form> |
2505 |
13 Jun 14 |
nicklas |
141 |
</div> |
2505 |
13 Jun 14 |
nicklas |
142 |
|
2505 |
13 Jun 14 |
nicklas |
143 |
</base:body> |
2505 |
13 Jun 14 |
nicklas |
144 |
</base:page> |
2505 |
13 Jun 14 |
nicklas |
145 |
<% |
2505 |
13 Jun 14 |
nicklas |
146 |
} |
2505 |
13 Jun 14 |
nicklas |
147 |
finally |
2505 |
13 Jun 14 |
nicklas |
148 |
{ |
2505 |
13 Jun 14 |
nicklas |
149 |
if (dc != null) dc.close(); |
2505 |
13 Jun 14 |
nicklas |
150 |
} |
2505 |
13 Jun 14 |
nicklas |
151 |
%> |