blob: 8d7a98b7fa1f784aff0ebce99151a77e812b613a (
plain)
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
|
{%extends "base.html"%}
{%block title%}Select Dataset{%endblock%}
{%block css%}
<link rel="stylesheet" href="/static/css/two-column-with-separator.css" />
{%endblock%}
{%block contents%}
<h2 class="heading">{{filename}}: select study</h2>
<div class="two-column-with-separator">
<form method="POST" action="{{url_for('dbinsert.select_study')}}"
id="select-platform-form" data-genechips="{{genechips_data}}"
class="two-col-sep-col1">
<legend>Select from existing study</legend>
<input type="hidden" name="filename" value="{{filename}}" />
<input type="hidden" name="filetype" value="{{filetype}}" />
<input type="hidden" name="species" value="{{species}}" />
<input type="hidden" name="genechipid" value="{{genechipid}}" />
<fieldset>
<label for="study" class="form-col-1">study:</label>
<select id="study" name="studyid" class="form-col-2">
{%for study in studies:%}
<option value="{{study['ProbeFreezeId']}}">{{study["Name"]}}</option>
{%endfor%}
</select>
</fieldset>
<fieldset>
<input type="submit" value="submit selected study"
class="btn btn-main form-col-2"
{%if studies | length == 0:%}
disabled="disabled"
{%endif%} />
</fieldset>
</form>
<p class="two-col-sep-separator">OR</p>
<form method="POST" action="{{url_for('dbinsert.select_study')}}"
id="select-platform-form" data-genechips="{{genechips_data}}"
class="two-col-sep-col2">
<legend>Create new study</legend>
<input type="hidden" name="filename" value="{{filename}}" />
<input type="hidden" name="filetype" value="{{filetype}}" />
<input type="hidden" name="species" value="{{species}}" />
<input type="hidden" name="genechipid" value="{{genechipid}}" />
<fieldset>
<label for="studyname" class="form-col-1">name:</label>
<input type="text" id="studyname" name="studyname" class="form-col-2"
required="required" />
</fieldset>
<fieldset>
<label for="studyfullname" class="form-col-1">full name:</label>
<input type="text" id="studyfullname" name="studyfullname"
class="form-col-2" />
</fieldset>
<fieldset>
<label for="studyshortname" class="form-col-1">short name:</label>
<input type="text" id="studyshortname" name="studyshortname"
class="form-col-2" />
</fieldset>
<fieldset>
<label for="group" class="form-col-1">group:</label>
<select id="group" name="inbredsetid" class="form-col-2">
</select>
</fieldset>
<fieldset>
<label for="tissue" class="form-col-1">tissue:</label>
<select id="tissue" name="tissueid" class="form-col-2">
</select>
</fieldset>
<fieldset>
<input type="submit" value="create study"
class="btn btn-main form-col-2" />
</fieldset>
</form>
</div>
{%endblock%}
|