-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuploadpage.html
223 lines (183 loc) · 6.45 KB
/
uploadpage.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
<!DOCTYPE html>
<html>
<head>
{% load static %}
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Upload - DataFloor</title>
<link rel="stylesheet" href="{%static 'css/font-awesome.min.css' %}">
<link rel="stylesheet" type="text/css" href="{%static 'css/bulma.css' %}">
<link rel="stylesheet" type="text/css" href="{%static 'css/fileupload.css' %}">
</head>
<!--
First landing page user sees all classifiers he made till now in card view .. option to train and option to classify - and train to test and api key and id
Second landing page to upload a classifier - redirect to chosing the input and output options - back to dashboard
Third option ML market Place
Fourth option User details and feedback
!-->
<style>
.body{
background-color: white;
color: white;
}
.morris-hover{position:absolute;z-index:1000}.morris-hover.morris-default-style{border-radius:10px;padding:6px;color:#666;background:rgba(255,255,255,0.8);border:solid 2px rgba(230,230,230,0.8);font-family:sans-serif;font-size:12px;text-align:center}.morris-hover.morris-default-style .morris-hover-row-label{font-weight:bold;margin:0.25em 0}
.morris-hover.morris-default-style .morris-hover-point{white-space:nowrap;margin:0.1em 0}
body {
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
height: 100%;
}
.button.is-success {
background-color: #2EB398;
}
.nav.is-dark {
background-color: #232B2D;
color: #F6F7F7;
}
.nav.is-dark .nav-item a, .nav.is-dark a.nav-item {
color: #F6F7F7;
}
.nav.is-dark .nav-item a.button.is-default {
color: #F6F7F7;
background-color: transparent;
border-width: 2px;
}
.aside {
background-color: #354052;
margin-right: -10px;
}
.aside .main {
padding: 40px;
color: #6F7B7E;
}
.aside .title {
color: #6F7B7E;
font-size: 12px;
font-weight: bold;
text-transform: uppercase;
}
.aside .main .item {
display: block;
padding: 10px 0;
color: #6F7B7E;
}
.aside .main .item.active {
color: #F6F7F7;
}
.aside .main .icon {
font-size: 19px;
padding-right: 30px;
}
.aside .main .name {
font-size: 16px;
font-weight: bold;
}
.admin-panel {
min-height: 100%;
margin-bottom: -10px;
padding-bottom: -3px;
}
.content {
display: block;
background-color: #fff;
padding: 40px 20px;
}
.hero .tabs ul {
border-bottom: 1px solid #d3d6db;
}
</style>
<body>
<div class="columns" style="background-color: white" >
<aside class="column is-2 aside hero is-fullheight is-hidden-mobile">
<div>
<div class="main">
<div class="title"><strong>D</strong>ata <strong>F</strong>loor</div>
<a href="/dashboard" class="item "><span class="icon"><i class="fa fa-home"></i></span><span class="name">Dashboard</span></a>
<a href="/upload" class="item active"><span class="icon"><i class="fa fa-plus-square"></i></span><span class="name">New Classifier</span></a>
<a href="/market" class="item"><span class="icon"><i class="fa fa-shopping-bag"></i></span><span class="name">ML Marketplace</span></a>
</div>
</div>
</aside>
<div class="column is-10 admin-panel">
<nav class="nav has-shadow" id="top">
<div class="container">
<div class="nav-left">
<a class="nav-item" href="#">
<img src="{%static 'img/logo.png' %}" style="max-width: 25px ;width : 25px ; height: auto" alt="Datafloor logo">
</a>
</div>
<div class="nav-right"><a href="/logout" class="nav-item" >Log out</a></div>
<span class="nav-toggle">
<span></span>
<span></span>
<span></span>
</span>
<div class="nav-right nav-menu is-hidden-tablet">
<a href="/dashboard" class="nav-item">
Dashboard
</a>
<a href="/upload" class="nav-item is-active">
New Classifier
</a>
<a href="/market" class="nav-item">
ML MarketpLace
</a>
</div>
</div>
</nav>
<section class="hero is-small">
<!-- Hero content: will be in the middle -->
<div class="hero-body" style="margin-top: 10px ; margin-bottom: 10px">
<div class="container" align="center">
<h1 class="title">
Create a New Classifier
</h1>
<h2 class="subtitle">
Upload Classifier </h2>
</div>
</div>
<!-- Hero footer: will stick at the bottom -->
</section>
<section >
<form action="/upload" method="post" enctype="multipart/form-data">
{% csrf_token %}
<div id="dragndropimage" class="uploadimage-dragndrop">
<div class="uploadimage-text">Drag Your Csv Files Here</div>
<div class="subtitle">Or, if you prefer...</div>
<div class="uploadimage-input subtitle">
<input class="button-form" type="file" multiple="multiple" name="data" id="upload-input" />
</div>
<input style="width: 80px ; height: auto" type="submit" class="button is-success is-focused is-centered" value="Upload" />
</div>
</form>
</section>
</div>
</div>
<footer class="footer" >
<div class="container">
<div class="has-text-centered">
<p>
<strong>Datafloor</strong> by <a href="http://zenindia.xyz">ZenIndia</a>
</p>
<p>
<a class="icon" href="#">
<i class="fa fa-github"></i>
</a>
</p>
</div>
</div>
</footer>
<script>
(function() {
var burger = document.querySelector('.nav-toggle');
var menu = document.querySelector('.nav-menu');
burger.addEventListener('click', function() {
burger.classList.toggle('is-active');
menu.classList.toggle('is-active');
});
})();
</script>
<script type="text/javascript" src="{%static 'js/Jquery.js' %}"></script>
<script type="text/javascript" src="{%static 'js/fileupload.js' %}"></script>
</body>
</html>