source: extensions/net.sf.basedb.reggie/trunk/resources/batch/import-external-specimen.jsp @ 6198

Last change on this file since 6198 was 6198, checked in by Nicklas Nordborg, 15 months ago

References #1295: Registration of specimen handled by external lab

Re-factoring to prepare for better error handling.

File size: 4.3 KB
Line 
1<%@ page
2  pageEncoding="UTF-8"
3  session="false"
4  import="net.sf.basedb.core.Application"
5  import="net.sf.basedb.core.User"
6  import="net.sf.basedb.core.DbControl"
7  import="net.sf.basedb.core.SessionControl"
8  import="net.sf.basedb.clients.web.Base"
9  import="net.sf.basedb.clients.web.util.HTML"
10  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
11  import="net.sf.basedb.util.Values"
12%>
13<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
14<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
15<%
16final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true);
17final String ID = sc.getId();
18final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie");
19DbControl dc = null;
20try
21{
22  dc = sc.newDbControl();
23  final User user = User.getById(dc, sc.getLoggedInUserId());
24%>
25<base:page type="default" >
26<base:head 
27  scripts="~../reggie-2.js,~import-external-specimen.js" 
28  styles="path.css,~../css/reggie-2.css"
29>
30<style>
31
32
33#importItemsTable
34{
35  width: 100%;
36  border-collapse: collapse;
37}
38
39#importItemsTable tr.highlight
40{
41  border-top-width: 1px;
42  border-top-style: dotted;
43}
44
45#importItemsTable thead
46{
47  border-bottom-width: 1px;
48  border-top-width: 1px;
49}
50
51#importItemsTable td
52{
53  text-align: center;
54  min-width: 4.5em;
55}
56
57#importItemsTable tbody td
58{
59  padding: 1px 2px;
60}
61
62#importItemsTable td.icon
63{
64  width: 20px;
65  min-width: 20px;
66}
67
68#importItemsTable td.valid
69{
70  text-align: left;
71}
72
73</style>
74</base:head>
75<base:body>
76
77  <p:path><p:pathelement 
78    title="Reggie" href="<%="../index.jsp?ID="+ID%>" 
79    /><p:pathelement title="Import externally processed samples" 
80    /></p:path>
81
82  <div class="content">
83  <form name="reggie" id="wizard" class="wizard">
84 
85    <div class="step" id="step-1">
86      <div class="step-no">1</div>
87      <div class="step-content">
88 
89        <div id="itemTable"></div>
90       
91      </div>
92    </div>
93 
94    <div class="step" id="step-2">
95      <div class="step-no">2</div>
96      <div class="step-title">FASTQ import options</div>
97      <div class="step-content">
98 
99        <table class="step-form">
100        <tbody>
101          <tr class="section-header">
102            <td colspan="4">Open Grid Scheduler</td>
103          </tr>
104          <tr>
105            <td class="subprompt">Cluster</td>
106            <td class="input">
107              <select name="clusters" id="clusters" class="required"></select></td>
108            <td class="status" id="clusters.status"></td>
109            <td class="help">
110              <span id="clusters.message" class="message"></span>
111              Select the cluster to use for running the software.
112            </td>
113          </tr>
114          <tr id="job-priority" style="display: none;">
115            <td class="subprompt">Job priority</td>
116            <td class="input">
117              <select name="priority" id="priority"></select>
118            </td>
119            <td class="status" id="priority.status"></td>
120            <td class="help">
121              <span id="priority.message" class="message"></span>
122              Select the priority of the job.
123            </td>
124          </tr>
125          <tr>
126            <td class="subprompt">Auto-confirm</td>
127            <td class="input"><input type="checkbox" name="autoConfirm" checked></td>
128            <td class="status" id="autoConfirm.status"></td>
129            <td class="help">
130              <span id="autoConfirm.message" class="message"></span>
131             
132            </td>
133          </tr>
134          <tr>
135            <td class="subprompt">Debug</td>
136            <td class="input"><input type="checkbox" name="debug"></td>
137            <td class="status" id="debug.status"></td>
138            <td class="help">
139              <span id="debug.message" class="message"></span>
140              When running in debug mode temporary files are not removed from the
141              cluster node.
142            </td>
143          </tr>
144        </tbody>
145        </table>
146      </div>
147    </div>
148 
149    <div id="wizard-status"></div>
150    <div id="wizard-progress"></div>
151
152    <table class="navigation" id="navigation">
153    <tr>
154      <td><base:button id="gocancel" title="Cancel" /></td>
155      <td><base:button id="gonext" title="Next" image="<%=home+"/images/gonext.png"%>" /></td>
156      <td><base:button id="goregister" title="Register" image="<%=home+"/images/gonext.png"%>" /></td>
157      <td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" /></td>
158      <td id="gonext-message" class="message"></td>
159    </tr>
160    </table>
161  </form>
162  </div>
163 
164</base:body>
165</base:page>
166<%
167}
168finally
169{
170  if (dc != null) dc.close();
171}
172%>
Note: See TracBrowser for help on using the repository browser.