-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.html
99 lines (97 loc) · 2.94 KB
/
config.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
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Wisecondor configuration</title>
<link rel="stylesheet" media="all" href="/site_media/resources/bootstrap/css/bootstrap.min.css"/>
<link href="/site_media/resources/kendo/styles/kendo.common.min.css" rel="stylesheet"/>
<link href="/site_media/resources/less/kendo.tb.min.css" rel="stylesheet"/>
<link type="text/css" rel="stylesheet" href="/site_media/resources/styles/tb-layout.css"/>
<link type="text/css" rel="stylesheet" href="/site_media/resources/styles/tb-styles.min.css"/>
<script src="/site_media/resources/jquery/jquery-1.8.2.min.js"></script>
<script src="/site_media/resources/scripts/tb.jquery.min.js"></script>
<script src="/site_media/js/json2.min.js"></script>
<script src="/site_media/resources/bootstrap/js/bootstrap.min.js"></script>
<script src="script.js"></script>
<style>
body {
/*the first height has to be the max height size for the iFrame plugin */
height: 755px;
background: #FFFFFF;
}
.nameCol {
width:555px;
}
.smallCol {
width: 200px;
}
.container {
float: none;
margin-left: auto;
margin-right: auto;
}
.table {
margin-bottom: 0px;
}
</style>
</head>
<body>
<div id="main" class="container">
<div class="row topSpace">
<div class="span12 k-widget k-grid" id="table-wrap">
<table class="table table-striped">
<thead class="k-grid-header">
<tr>
<th class="k-header nameCol">Properties</th>
<th class="k-header smallCol">Values</th>
</tr>
</thead>
<tbody id="table-body">
<!-- First line -->
<tr>
<td class="nameCol"><strong>Select genom reference</strong></td>
<td class="smallCol centerCol"><select id="genomBox"></select></td>
</tr>
<!-- Second line -->
<tr>
<td class="nameCol"><strong>Select reference table</strong></td>
<td class="smallCol centerCol"><select id="refTable"></select></td>
</tr>
</tbody>
</table>
</div>
<div class="span12 modal-button-row k-grid">
<span class="btn pull-right update"><i class="icon-ok"></i> Save all</span>
</div>
</div>
</div>
<script>
$(document).ready(function(){
alert("document ready")
var genomBox = $("#genomBox")
$.getJSON( "/rundb/api/v1/referencegenome/?format=json", function( data ) {
var items = data.objects
$.each( items , function( index ) {
console.debug(items[index].name)
genomBox.append($("<option />").val(3).text(items[index].name))
});
});
/* $("#comboBox").kendoComboBox({
index : 0,
dataTextField:"name",
dataValueField:"id",
dataSource: {
transport: {
read: {
url: "http://10.67.70.58/rundb/api/v1/referencegenome/?format=json",
type: "get",
dataType: "json"
}
},
schema: {data: "objects"}
}
});*/
}); // End Document ready
</script>
</body>
</html>