5428 |
15 May 19 |
nicklas |
1 |
<%@ page |
5428 |
15 May 19 |
nicklas |
2 |
pageEncoding="UTF-8" |
5428 |
15 May 19 |
nicklas |
3 |
session="false" |
5428 |
15 May 19 |
nicklas |
4 |
import="net.sf.basedb.core.User" |
5428 |
15 May 19 |
nicklas |
5 |
import="net.sf.basedb.core.DbControl" |
5428 |
15 May 19 |
nicklas |
6 |
import="net.sf.basedb.core.SessionControl" |
5428 |
15 May 19 |
nicklas |
7 |
import="net.sf.basedb.core.Application" |
5428 |
15 May 19 |
nicklas |
8 |
import="net.sf.basedb.clients.web.Base" |
5428 |
15 May 19 |
nicklas |
9 |
import="net.sf.basedb.clients.web.util.HTML" |
5428 |
15 May 19 |
nicklas |
10 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
5428 |
15 May 19 |
nicklas |
11 |
%> |
5428 |
15 May 19 |
nicklas |
12 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
5428 |
15 May 19 |
nicklas |
13 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
5428 |
15 May 19 |
nicklas |
14 |
<% |
5428 |
15 May 19 |
nicklas |
15 |
final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true); |
5428 |
15 May 19 |
nicklas |
16 |
final String ID = sc.getId(); |
5428 |
15 May 19 |
nicklas |
17 |
final float scale = Base.getScale(sc); |
5428 |
15 May 19 |
nicklas |
18 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
5428 |
15 May 19 |
nicklas |
19 |
DbControl dc = null; |
5428 |
15 May 19 |
nicklas |
20 |
try |
5428 |
15 May 19 |
nicklas |
21 |
{ |
5428 |
15 May 19 |
nicklas |
22 |
dc = sc.newDbControl(); |
5428 |
15 May 19 |
nicklas |
23 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
5428 |
15 May 19 |
nicklas |
24 |
%> |
5428 |
15 May 19 |
nicklas |
25 |
<base:page type="default" > |
5428 |
15 May 19 |
nicklas |
26 |
<base:head |
5428 |
15 May 19 |
nicklas |
27 |
scripts="~../reggie-2.js,~pool_registration.js" |
5428 |
15 May 19 |
nicklas |
28 |
styles="path.css,~../css/reggie-2.css" |
5428 |
15 May 19 |
nicklas |
29 |
/> |
5428 |
15 May 19 |
nicklas |
30 |
<base:body> |
5428 |
15 May 19 |
nicklas |
31 |
|
5428 |
15 May 19 |
nicklas |
32 |
<p:path><p:pathelement |
5428 |
15 May 19 |
nicklas |
33 |
title="Reggie" href="<%="../index.jsp?ID="+ID%>" |
5428 |
15 May 19 |
nicklas |
34 |
/><p:pathelement title="Register MIPs pools" |
5428 |
15 May 19 |
nicklas |
35 |
/></p:path> |
5428 |
15 May 19 |
nicklas |
36 |
|
5428 |
15 May 19 |
nicklas |
37 |
<div class="content"> |
5428 |
15 May 19 |
nicklas |
38 |
|
5428 |
15 May 19 |
nicklas |
39 |
<form name="reggie" id="wizard" class="wizard"> |
5428 |
15 May 19 |
nicklas |
40 |
|
5428 |
15 May 19 |
nicklas |
41 |
<div class="step" id="step-1"> |
5428 |
15 May 19 |
nicklas |
42 |
<div class="step-no">1</div> |
5428 |
15 May 19 |
nicklas |
43 |
<div class="step-title">Select MIPs plates</div> |
5428 |
15 May 19 |
nicklas |
44 |
<div class="step-content"> |
5428 |
15 May 19 |
nicklas |
45 |
|
5428 |
15 May 19 |
nicklas |
46 |
<table class="step-form"> |
5428 |
15 May 19 |
nicklas |
47 |
<tr class="align-top"> |
5428 |
15 May 19 |
nicklas |
48 |
<td class="prompt">Library plates</td> |
5428 |
15 May 19 |
nicklas |
49 |
<td class="input"> |
5428 |
15 May 19 |
nicklas |
50 |
<select name="bioplate" id="bioplate" size="6" multiple></select> |
5428 |
15 May 19 |
nicklas |
51 |
</td> |
5428 |
15 May 19 |
nicklas |
52 |
<td class="status" id="bioplate.status"></td> |
5428 |
15 May 19 |
nicklas |
53 |
<td class="help"> |
5428 |
15 May 19 |
nicklas |
54 |
<span id="bioplate.message" class="message"></span> |
5428 |
15 May 19 |
nicklas |
55 |
Select the MIPs plates that should be pooled in this step. The list contains |
5428 |
15 May 19 |
nicklas |
56 |
all plates that has not yet been pooled. The selected plates must have |
5428 |
15 May 19 |
nicklas |
57 |
different set of barcodes. |
5428 |
15 May 19 |
nicklas |
58 |
</td> |
5428 |
15 May 19 |
nicklas |
59 |
</tr> |
5428 |
15 May 19 |
nicklas |
60 |
</table> |
5428 |
15 May 19 |
nicklas |
61 |
</div> |
5428 |
15 May 19 |
nicklas |
62 |
</div> |
5428 |
15 May 19 |
nicklas |
63 |
|
5428 |
15 May 19 |
nicklas |
64 |
<div class="step" id="step-2"> |
5428 |
15 May 19 |
nicklas |
65 |
<div class="step-no">2</div> |
5428 |
15 May 19 |
nicklas |
66 |
<div class="step-title">Pooling results</div> |
5428 |
15 May 19 |
nicklas |
67 |
<div class="step-content"> |
5428 |
15 May 19 |
nicklas |
68 |
|
5428 |
15 May 19 |
nicklas |
69 |
<table class="step-form"> |
5428 |
15 May 19 |
nicklas |
70 |
<tr> |
5428 |
15 May 19 |
nicklas |
71 |
<td class="prompt">Pool name</td> |
5428 |
15 May 19 |
nicklas |
72 |
<td class="input" id="poolName"></td> |
5428 |
15 May 19 |
nicklas |
73 |
<td class="status"></td> |
5428 |
15 May 19 |
nicklas |
74 |
<td class="help"></td> |
5428 |
15 May 19 |
nicklas |
75 |
</tr> |
5428 |
15 May 19 |
nicklas |
76 |
<tr> |
5428 |
15 May 19 |
nicklas |
77 |
<td class="prompt">Pool date</td> |
5428 |
15 May 19 |
nicklas |
78 |
<td class="input"> |
5428 |
15 May 19 |
nicklas |
79 |
<input type="text" name="poolDate" id="poolDate" |
5428 |
15 May 19 |
nicklas |
80 |
class="required auto-init" data-auto-init="focus-on-enter" data-next-focus="poolProtocol" |
5428 |
15 May 19 |
nicklas |
81 |
style="width: 12em;" maxlength="10"> |
5428 |
15 May 19 |
nicklas |
82 |
<base:icon |
5428 |
15 May 19 |
nicklas |
83 |
id="poolDateCalendar" |
5428 |
15 May 19 |
nicklas |
84 |
subclass="auto-init" |
5428 |
15 May 19 |
nicklas |
85 |
data-auto-init="calendar" |
5428 |
15 May 19 |
nicklas |
86 |
data-textarea-id="poolDate" |
5428 |
15 May 19 |
nicklas |
87 |
data-date-format="yyyyMMdd" |
5428 |
15 May 19 |
nicklas |
88 |
image="calendar.png" |
5428 |
15 May 19 |
nicklas |
89 |
tooltip="Select a date from a calendar" |
5428 |
15 May 19 |
nicklas |
90 |
tabindex="-1" |
5428 |
15 May 19 |
nicklas |
91 |
/> |
5428 |
15 May 19 |
nicklas |
92 |
</td> |
5428 |
15 May 19 |
nicklas |
93 |
<td class="status" id="poolDate.status"></td> |
5428 |
15 May 19 |
nicklas |
94 |
<td class="help"> |
5428 |
15 May 19 |
nicklas |
95 |
<span id="poolDate.message" class="message"></span> |
5428 |
15 May 19 |
nicklas |
96 |
(YYYYMMDD or MMDD) |
5428 |
15 May 19 |
nicklas |
97 |
</td> |
5428 |
15 May 19 |
nicklas |
98 |
</tr> |
5428 |
15 May 19 |
nicklas |
99 |
<tr> |
5428 |
15 May 19 |
nicklas |
100 |
<td class="prompt">Protocol</td> |
5428 |
15 May 19 |
nicklas |
101 |
<td class="input"> |
5428 |
15 May 19 |
nicklas |
102 |
<select name="poolProtocol" id="poolProtocol" |
5428 |
15 May 19 |
nicklas |
103 |
class="auto-init" data-auto-init="focus-on-enter" data-next-focus="poolOperator" |
5428 |
15 May 19 |
nicklas |
104 |
></select> |
5428 |
15 May 19 |
nicklas |
105 |
</td> |
5428 |
15 May 19 |
nicklas |
106 |
<td class="status" id="poolProtocol.status"></td> |
5428 |
15 May 19 |
nicklas |
107 |
<td class="help"> |
5428 |
15 May 19 |
nicklas |
108 |
<span id="poolProtocol.message" class="message"></span> |
5428 |
15 May 19 |
nicklas |
109 |
Select the protocol which was used when pooling. |
5428 |
15 May 19 |
nicklas |
110 |
</td> |
5428 |
15 May 19 |
nicklas |
111 |
</tr> |
5428 |
15 May 19 |
nicklas |
112 |
<tr valign="top"> |
5428 |
15 May 19 |
nicklas |
113 |
<td class="prompt">Operator</td> |
5428 |
15 May 19 |
nicklas |
114 |
<td class="input"> |
5428 |
15 May 19 |
nicklas |
115 |
<input type="text" name="poolOperator" value="<%=HTML.encodeTags(user.getName()) %>" |
5428 |
15 May 19 |
nicklas |
116 |
class="auto-init" data-auto-init="focus-on-enter" data-next-focus="comments" |
5428 |
15 May 19 |
nicklas |
117 |
> |
5428 |
15 May 19 |
nicklas |
118 |
</td> |
5428 |
15 May 19 |
nicklas |
119 |
<td class="status" id="poolOperator.status"></td> |
5428 |
15 May 19 |
nicklas |
120 |
<td class="help"> |
5428 |
15 May 19 |
nicklas |
121 |
<span id="poolOperator.message" class="message"></span> |
5428 |
15 May 19 |
nicklas |
122 |
</td> |
5428 |
15 May 19 |
nicklas |
123 |
</tr> |
5428 |
15 May 19 |
nicklas |
124 |
<tr valign="top"> |
5428 |
15 May 19 |
nicklas |
125 |
<td class="prompt">Comments</td> |
5428 |
15 May 19 |
nicklas |
126 |
<td class="input"></td> |
5428 |
15 May 19 |
nicklas |
127 |
<td class="status" id="comments.status"></td> |
5428 |
15 May 19 |
nicklas |
128 |
<td class="help"> |
5428 |
15 May 19 |
nicklas |
129 |
<span id="comments.message" class="message"></span> |
5428 |
15 May 19 |
nicklas |
130 |
Comments about the pooling. |
5428 |
15 May 19 |
nicklas |
131 |
</td> |
5428 |
15 May 19 |
nicklas |
132 |
</tr> |
5428 |
15 May 19 |
nicklas |
133 |
|
5428 |
15 May 19 |
nicklas |
134 |
<tbody id="pool-comments"></tbody> |
5428 |
15 May 19 |
nicklas |
135 |
</table> |
5428 |
15 May 19 |
nicklas |
136 |
</div> |
5428 |
15 May 19 |
nicklas |
137 |
</div> |
5428 |
15 May 19 |
nicklas |
138 |
|
5428 |
15 May 19 |
nicklas |
139 |
<div id="wizard-status"></div> |
5428 |
15 May 19 |
nicklas |
140 |
|
5428 |
15 May 19 |
nicklas |
141 |
<table class="navigation" id="navigation"> |
5428 |
15 May 19 |
nicklas |
142 |
<tr> |
5428 |
15 May 19 |
nicklas |
143 |
<td><base:button id="gocancel" title="Cancel" /></td> |
5428 |
15 May 19 |
nicklas |
144 |
<td><base:button id="gonext" title="Next" image="<%=home+"/images/gonext.png"%>" /></td> |
5428 |
15 May 19 |
nicklas |
145 |
<td><base:button id="goregister" title="Register" image="<%=home+"/images/import.png"%>" /></td> |
5428 |
15 May 19 |
nicklas |
146 |
<td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" /></td> |
5428 |
15 May 19 |
nicklas |
147 |
<td id="gonext-message" class="message"></td> |
5428 |
15 May 19 |
nicklas |
148 |
</tr> |
5428 |
15 May 19 |
nicklas |
149 |
</table> |
5428 |
15 May 19 |
nicklas |
150 |
|
5428 |
15 May 19 |
nicklas |
151 |
</form> |
5428 |
15 May 19 |
nicklas |
152 |
</div> |
5428 |
15 May 19 |
nicklas |
153 |
|
5428 |
15 May 19 |
nicklas |
154 |
</base:body> |
5428 |
15 May 19 |
nicklas |
155 |
</base:page> |
5428 |
15 May 19 |
nicklas |
156 |
<% |
5428 |
15 May 19 |
nicklas |
157 |
} |
5428 |
15 May 19 |
nicklas |
158 |
finally |
5428 |
15 May 19 |
nicklas |
159 |
{ |
5428 |
15 May 19 |
nicklas |
160 |
if (dc != null) dc.close(); |
5428 |
15 May 19 |
nicklas |
161 |
} |
5428 |
15 May 19 |
nicklas |
162 |
%> |