-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathedit.html
187 lines (186 loc) · 10.8 KB
/
edit.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>EDAM ontology browser</title>
<link rel="icon" type="image/png" href="favicon.ico"/>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"
integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css"/>
<script
src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"
integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU="
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="css/bootstrap.xl.css"/>
<script src="js/utils.js"></script>
<script src="js/tree-edam-stand-alone.js"></script>
<script src="js/autocomplete-edam-reusable.js"></script>
<link href="css/index.css" rel="stylesheet">
<link href="css/autocomplete-edam-reusable.css" rel="stylesheet">
<link href="css/edam.css" rel="stylesheet">
<script src="js/edit.js"></script>
</head>
<body>
<div class="container">
<div class="page-header row">
<button class="btn-toggle" title="Change theme mode">
<svg style="fill: var(--color-profile-color-modes-toggle-moon);" aria-hidden="true" width="20" height="20" viewBox="0 0 14 13" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.52208 7.71754C7.5782 7.71754 10.0557 5.24006 10.0557 2.18394C10.0557 1.93498 10.0392 1.68986 10.0074 1.44961C9.95801 1.07727 10.3495 0.771159 10.6474 0.99992C12.1153 2.12716 13.0615 3.89999 13.0615 5.89383C13.0615 9.29958 10.3006 12.0605 6.89485 12.0605C3.95334 12.0605 1.49286 10.001 0.876728 7.24527C0.794841 6.87902 1.23668 6.65289 1.55321 6.85451C2.41106 7.40095 3.4296 7.71754 4.52208 7.71754Z"></path>
</svg>
</button>
<script>const btn = document.querySelector(".btn-toggle");
const currentTheme = localStorage.getItem("theme");
if (currentTheme == "dark") {
document.body.classList.add("dark-mode");
}
btn.addEventListener("click", function () {
document.body.classList.toggle("dark-mode");
let theme = "light";
if (document.body.classList.contains("dark-mode")) {
theme = "dark";
}
localStorage.setItem("theme", theme);
});
</script>
<div class="col-xs-12">
<h1 id="pageTitle">Propose a <span class="change">change</span><span class="new">new term</span> in "<span
class="branch"></span>" of EDAM ontology </h1>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<form method="post">
<div class="row">
<div class="form-group">
<label class="control-label col-xs-12 col-sm-3 col-md-2 " for="id_label">Label</label>
<div class=" col-xs-12 col-sm-9 col-md-10 ">
<input class=" form-control" id="id_label" maxlength="512" name="label" type="text"
value="" disabled="disabled">
</div>
</div>
</div>
<br/>
<!--<div class="row">-->
<!--<div class="form-group">-->
<!--<div class=" col-xs-offset-3 col-xs-12 col-sm-9 col-md-10">-->
<!--<div class="checkbox">-->
<!--<label>-->
<!--<input id="id_deprecated" name="deprecated" type="checkbox" disabled="disabled">-->
<!--<span>Deprecated</span>-->
<!--</label>-->
<!--<p class="help-block">-->
<!--Should the term be detached from the tree, and not be used anymore?-->
<!--</p>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
<!--<br/>-->
<div class="row">
<div class="form-group">
<label class="control-label col-xs-12 col-sm-3 col-md-2 " for="id_definition">Definition</label>
<div class=" col-xs-12 col-sm-9 col-md-10 ">
<textarea class=" form-control" cols="40" id="id_definition" name="definition" rows="2"
disabled="disabled"></textarea>
</div>
</div>
</div>
<br/>
<div class="row">
<div class="form-group">
<div class="col-xs-12 col-sm-3 col-md-2" style="font-weight: 700;">Parent</div>
<div class=" col-xs-12 col-sm-9 col-md-10 " id="parent_container">
<input disabled="disabled" type="text" tabindex="1" class="form-control ui-autocomplete-input search-term" placeholder="Type at least 2 letters" onclick="$(this).select();" autocomplete="off" name="parent-0">
<button type="button" title="add another parent" class="btn btn-default btn-xs pull-right" onclick="addTermField($(this).parent(),'parent')"><span class="glyphicon glyphicon-plus"></span></button>
</div>
</div>
</div>
<br/>
<div class="row">
<div class="form-group">
<label class="control-label col-xs-12 col-sm-3 col-md-2 " for="id_exactSynonyms">Exact synonyms</label>
<div class=" col-xs-12 col-sm-9 col-md-10 ">
<textarea class=" form-control" cols="40" id="id_exactSynonyms" name="exactSynonyms"
rows="2" disabled="disabled"></textarea>
</div>
</div>
</div>
<br/>
<div class="row">
<div class="form-group">
<label class="control-label col-xs-12 col-sm-3 col-md-2 " for="id_narrowSynonyms">Narrow synonyms</label>
<div class=" col-xs-12 col-sm-9 col-md-10 ">
<textarea class=" form-control" cols="40" id="id_narrowSynonyms" name="narrowSynonyms"
rows="2" disabled="disabled"></textarea>
</div>
</div>
</div>
<br/>
<div class="row">
<div class="form-group">
<div class="col-xs-12 col-sm-3 col-md-2" style="font-weight: 700;">Has Topic</div>
<div class=" col-xs-12 col-sm-9 col-md-10 " id="has_topic_container">
<button type="button" title="add another term" class="btn btn-default btn-xs pull-right" onclick="addTermField($(this).parent(),'has_topic')"><span class="glyphicon glyphicon-plus"></span></button>
</div>
</div>
</div>
<br/>
<div class="row">
<div class="form-group">
<div class="col-xs-12 col-sm-3 col-md-2" style="font-weight: 700;">Is Format Of</div>
<div class=" col-xs-12 col-sm-9 col-md-10 " id="is_format_of_container">
<button type="button" title="add another term" class="btn btn-default btn-xs pull-right" onclick="addTermField($(this).parent(),'is_format_of')"><span class="glyphicon glyphicon-plus"></span></button>
</div>
</div>
</div>
<br/>
<div class="row">
<div class="form-group">
<div class="col-xs-12 col-sm-3 col-md-2" style="font-weight: 700;">Has Input</div>
<div class=" col-xs-12 col-sm-9 col-md-10 " id="has_input_container">
<button type="button" title="add another term" class="btn btn-default btn-xs pull-right" onclick="addTermField($(this).parent(),'has_input')"><span class="glyphicon glyphicon-plus"></span></button>
</div>
</div>
</div>
<br/>
<div class="row">
<div class="form-group">
<div class="col-xs-12 col-sm-3 col-md-2" style="font-weight: 700;">Has Output</div>
<div class=" col-xs-12 col-sm-9 col-md-10 " id="has_output_container">
<button type="button" title="add another term" class="btn btn-default btn-xs pull-right" onclick="addTermField($(this).parent(),'has_output')"><span class="glyphicon glyphicon-plus"></span></button>
</div>
</div>
</div>
<br/>
<div class="row">
<div class="form-group">
<label class="control-label col-xs-12 col-sm-3 col-md-2 " for="id_github_comments">Issue comments</label>
<div class=" col-xs-12 col-sm-9 col-md-10 ">
<textarea class=" form-control" cols="40" id="id_github_comments" name="github_comments"
rows="10" disabled="disabled"></textarea>
</div>
</div>
</div>
<br/>
<button type="button" disabled="disabled" role="button" class="btn btn-primary pull-right"
onclick="sendToGitHub();">
<i class="fa fa-github"></i> Continue to GitHub
</button>
</form>
<form id="sender" method="GET" action="https://github.com/edamontology/edamontology/issues/new">
<input type="hidden" name="title"/>
<input type="hidden" name="body"/>
</form>
</div>
</div>
</div>
</body>
</html>