-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsubmitSearch.html
261 lines (238 loc) · 14 KB
/
submitSearch.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
<!DOCTYPE html>
<html lang="en">
<head>
<title>Xi Search Submit Form</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="../vendor/css/jquery-ui.css" />
<link rel="stylesheet" href="../vendor/css/jquery.fileupload.css" />
<link rel="stylesheet" href="../vendor/css/jquery.fileupload-ui.css" />
<link rel="stylesheet" href="../vendor/css/multiple-select.css" />
<link rel="stylesheet" href="../vendor/css/common.css" />
<link rel="stylesheet" href="css/submitSearch.css" />
<link rel="stylesheet" href="css/tooltip.css" />
<link rel="stylesheet" href="../vendor/css/d3table.css" />
<script src="../vendor/js/jquery-3.4.1.js"></script>
<script src="../vendor/js/jquery-ui.js"></script>
<script src="../vendor/js/d3.js"></script>
<script src="../vendor/js/multiple-select.js"></script>
<script src="../vendor/js/underscore.js"></script>
<script src="../vendor/js/backbone.js"></script>
<script src="../vendor/js/d3table.js"></script>
<!-- The Templates plugin is included to render the upload/download listings -->
<script src="../vendor/js/tmpl.js"></script>
<!-- The Iframe Transport is required for browsers without support for XHR file uploads -->
<script src="../vendor/js/jquery.iframe-transport.js"></script>
<!-- The basic File Upload plugin -->
<script src="../vendor/js/jquery.fileupload.js"></script>
<!-- The File Upload processing plugin -->
<script src="../vendor/js/jquery.fileupload-process.js"></script>
<!-- The File Upload validation plugin -->
<script src="../vendor/js/jquery.fileupload-validate.js"></script>
<!-- The File Upload user interface plugin -->
<script src="../vendor/js/jquery.fileupload-ui.js"></script>
<script src="../vendor/js/jquery.fileupload-jquery-ui.js"></script>
<!-- blueimp application initialisation script, pokes some controls into life -->
<script src="js/CLMSUploadInit.js"></script>
<script src="js/tooltip.js"></script>
<script src="js/dialogs.js"></script>
<script src="js/newCrosslinkerDialog.js"></script>
<script src="js/multipleDigestionDialog.js"></script>
<script src="js/submitSearch.js"></script>
</head>
<body>
<!-- The template to display files available for upload -->
<script id="template-upload" type="text/x-tmpl">
{% for (var i=0, file; file=o.files[i]; i++) { %}
<tr class="template-upload fade">
<td>
<p class="name">{%=file.name%}</p>
{% if (file.error) { %}
<div><span class="label label-important">Error</span> {%=file.error%}</div>
{% } %}
</td>
<td>
<!-- <p class="size">{%=o.formatFileSize(file.size)%}</p> -->
{% if (!o.files.error) { %}
<div class="progress progress-success progress-striped active size" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><div class="bar" style="width:0%;"></div></div>
{% } %}
</td>
<td>
{% if (!o.files.error && !i && !o.options.autoUpload) { %}
<button class="btn-primary start hiddenFromUser">
<span>Start</span>
</button>
{% } %}
{% if (!i) { %}
<button class="btn-warning cancel">
<span>Remove</span>
</button>
{% } %}
</td>
</tr>
{% } %}
</script>
<script id="template-download" type="text/x-tmpl">
{% for (var i=0, file; file=o.files[i]; i++) { %}
<tr class="template-download fade previouslyUploaded">
<td>
{% if (!file.error) { %}
<span class="label">Uploaded </span>
{% } %}
<span class="name">{%=file.name%}</p>
{% if (file.error) { %}
<div><span class="label label-important">Error</span> {%=file.error%}</div>
{% } %}
</td>
<td>
<span class="size">{%=o.formatFileSize(file.size)%}</span>
</td>
</tr>
{% } %}
</script>
<script id="template-acqseq-section" type="text/x-tmpl">
<div class="row">
<div class="col-12"><h3>Choose {%=o.pluralLabel%}</h3></div>
<!-- <div class="col-10"><p id="{%=o.partialId%}Selected" class="chosenFiles"></p></div> -->
</div>
<div class="row">
<div class="col-12">
<p id="{%=o.partialId%}Selected" class="chosenFiles">
<span class="chosenLabel"></span>
<span class="removables"></span>
<span class="clearAllRemovables"><button class="removeAllButton">Remove All</button></span>
<span class="noneChosen"></span>
</p>
</div>
</div>
<div class="row">
<div class="col-12">
<div id="{%=o.partialId%}Accordion">
<h3>Upload New {%=o.singleLabel%}</h3>
<div id="{%=o.partialId%}Upload">
<div class="row uploadLabels">
<div class="col-4"><p>Enter New {%=o.singleLabel%} Name</P></div>
<div class="col-8"><p>Accepted File Types: {%=o.fileTypes%}, Max File Size: <span class="maxFile"></span>B</P></div>
</div>
<!-- The file upload form used as target for the file upload widget -->
<form class="fileupload" id="{%=o.partialId%}fileupload" action="./php/CLMSUpload.php" method="POST" enctype="multipart/form-data">
<input type="hidden" value="{%=o.tabVal%}" name="tabID"></input>
<!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
<div class="row fileupload-buttonbar">
<div class="fileupload-buttons">
<input type="text" value="" id="new{%=o.partialId%}ID" name="new{%=o.partialId%}ID" placeholder="A Name is Required for this {%=o.singleLabel%}" size="30" style="width:33%" pattern=".{1,}" required></input>
<!-- The fileinput-button span is used to style the file input field as button -->
<span class="fileinput-button">
{% if (o.multipleUpload) { %}
<span>Add Files</span>
<input type="file" name="files[]" accept="{%=o.fileTypes%}" multiple>
{% } else { %}
<span>Add File</span>
<input type="file" name="files" accept="{%=o.fileTypes%}">
{% } %}
</span>
<button type="submit" class="start">Start Upload</button>
{% if (o.multipleUpload) { %}
<button type="reset" class="cancel">Remove All Files</button>
{% } %}
<!-- <button type="button" class="delete">Delete</button> -->
<!-- <input type="checkbox" class="toggle"> -->
<!-- The global file processing state -->
<span class="fileupload-process"></span>
</div>
<div>
<label class="privacyLabel"><input type="checkbox" default="false" class="privacy"></input></label>
</div>
<!-- The global progress state -->
<div class="fileupload-progress fade" style="display:none">
<!-- The global progress bar -->
<div class="progress" role="progressbar" aria-valuemin="0" aria-valuemax="100"></div>
<!-- The extended global progress state -->
<div class="progress-extended"> </div>
</div>
</div>
<!-- The table listing the files available for upload/download -->
<table role="presentation" class="table"><tbody class="files"></tbody></table>
</form>
<div class="row">
<span class="ui-state-default fileNameExists">
<span class="ui-icon ui-icon-info"></span>
<span class="dynamicFileExistsInfo"></span>
<span> Previous {%=o.pluralLabel%}. Consider these before uploading.</span>
</span>
</div>
</div>
<h3>Choose Previous {%=o.pluralLabel%}</h3>
<div id="{%=o.partialId%}Previous"></div>
</div>
</div>
</div>
</script>
<div>
<span class="topRight">
<button id="logoutButton"><span class="ui-icon ui-icon-extlink"></span>Log Out</button>
<button id="helpButton"><span class="ui-icon ui-icon-help"></span>Help</button>
<button id="backButton"><span class="ui-icon ui-icon-arrowreturnthick-1-w"></span>Back</button>
</span>
<h1>New Xi Search Form - <span id="username"></span></h1>
<div id="acquire"></div>
<div id="sequence"></div>
<div class="row">
<div class="col-12"><h3>Set Search Parameters</h3></div>
</div>
<form id="parameterForm" name="login_form" method="post" action="php/submitParams.php">
<div class="lrmargin">
<div class="row">
<div class="col-8 paramSetting" id="paramSearchName"></div>
<div class="col-2 paramSetting" id="paramXiVersion"></div>
<div class="col-2 paramSetting centreContent verticalCentred"><button id="useGlobalDefaults">Restore Default Parameters</button></div>
<!-- <div class="col-2 paramSetting"><button id="useLastSearchDefaults">Use Your Last Search Params</button></div> -->
</div>
<div class="row rowDiff">
<div class="col-6 paramSetting" id="paramEnzyme"></div>
<div class="col-3 paramSetting" id="paramMissedCleavages"></div>
<div class="col-3 paramSetting" id="paramMissedPeaks"></div>
</div>
<div class="row rowDiff">
<div class="col-6 paramSetting" id="paramCrossLinker"></div>
<div class="col-3 paramSetting" id="paramTolerance"></div>
<div class="col-3 paramSetting" id="paramTolerance2"></div>
</div>
<div class="row">
<div class="col-6 paramSetting" id="paramFixedMods"></div>
<div class="col-6 paramSetting" id="paramVarMods"></div>
</div>
<div class="row">
<div class="col-6 paramSetting" id="paramIons"></div>
<div class="col-6 paramSetting" id="paramLosses"></div>
</div>
<div class="row">
<div class="col-6">
<h3>Submit</h3>
<div class="col-2">
<button id="startProcessing" disabled>Submit New Search</button>
</div>
<div class="col-4">
<div class="row">
<div class="col-12 paramSetting">
<label for="privacy" title="If checked, only you and administrators will see this search">Set Search As Private?</label><input name="privacy" type="checkbox" id="privacy"></div>
</div>
<div id="todo"></div>
</div>
</div>
<div class="col-6 paramSetting rowDiff" id="paramNotes"></div>
</div>
<div class="row">
<div class="col-6"></div>
<div class="col-6 paramSetting" id="paramCustom"></div>
</div>
</div>
</form>
</div>
<script>
CLMSUI.tooltip.init ("mgtooltip");
CLMSUI.buildSubmitSearch(); // Call the javascript that fills in the html scaffolding and x-tmpl templates and builds the forms
</script>
</body>
</html>