Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
zesje
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Réouven ASSOULY
zesje
Commits
af81b776
Commit
af81b776
authored
7 years ago
by
Thomas Roos
Browse files
Options
Downloads
Patches
Plain Diff
Update exams page and new navbar item
parent
bed0c323
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
client/components/NavBar.js
+1
-0
1 addition, 0 deletions
client/components/NavBar.js
client/index.js
+0
-1
0 additions, 1 deletion
client/index.js
client/views/Exams.js
+43
-27
43 additions, 27 deletions
client/views/Exams.js
with
44 additions
and
28 deletions
client/components/NavBar.js
+
1
−
0
View file @
af81b776
...
...
@@ -31,6 +31,7 @@ const NavBar = () => {
<
Link
className
=
"
navbar-item
"
to
=
'
/exams
'
>
Exams
<
/Link
>
<
Link
className
=
"
navbar-item
"
to
=
'
/students
'
>
Students
<
/Link
>
<
Link
className
=
"
navbar-item
"
to
=
'
/grade
'
><
strong
><
i
>
Grade
<
/i></
strong
><
/Link>
<
Link
className
=
"
navbar-item
"
to
=
'
/statistics
'
>
Statistics
<
/Link>
<
/div
>
<
div
className
=
"
navbar-end
"
>
...
...
This diff is collapsed.
Click to expand it.
client/index.js
+
0
−
1
View file @
af81b776
...
...
@@ -5,7 +5,6 @@
// @flow
import
'
bulma/css/bulma.css
'
;
import
'
font-awesome/css/font-awesome.css
'
;
import
'
react-table/react-table.css
'
;
import
React
from
'
react
'
;
import
ReactDOM
from
'
react-dom
'
;
import
Loadable
from
'
react-loadable
'
;
...
...
This diff is collapsed.
Click to expand it.
client/views/Exams.js
+
43
−
27
View file @
af81b776
...
...
@@ -20,28 +20,10 @@ const Upload = () => {
<
div
className
=
"
container
"
>
<
div
className
=
"
columns
"
>
<
div
className
=
"
column
"
>
<
h3
className
=
'
title
'
>
Upload
new
exam
<
/h3
>
<
h5
className
=
'
subtitle
'
>
and
we
will
work
some
PDF
magic
!
<
/h5
>
<
h3
className
=
'
title
'
>
Upload
new
exam
config
<
/h3
>
<
h5
className
=
'
subtitle
'
>
then
we
know
that
to
do
with
PDF
'
s
</h5>
<
input
class
=
"
input
"
type
=
"
text
"
style
=
{
shortButton
}
placeholder
=
"
Name
"
/>
<
div
className
=
"
file
"
>
<
label
className
=
"
file-label
"
>
<
input
className
=
"
file-input
"
type
=
"
file
"
name
=
"
resume
"
/>
<
span
className
=
"
file-cta
"
>
<
span
className
=
"
file-icon
"
>
<
i
className
=
"
fa fa-upload
"
><
/i
>
<
/span
>
<
span
className
=
"
file-label
"
>
Choose
a
file
…
<
/span
>
<
/span
>
<
span
className
=
"
file-name
"
>
scanned_exams
.
pdf
<
/span
>
<
/label
>
<
/div
>
<
div
className
=
"
file
"
>
<div className="file has-name is-boxed">
<label className="file-label">
<input className="file-input" type="file" name="resume" />
<span className="file-cta">
...
...
@@ -53,26 +35,60 @@ const Upload = () => {
</span>
</span>
<span className="file-name">
exam
_metadata
.
csv
exam
s_configs.yaml
</span>
</label>
</div>
<br />
<button className=
'
button
is
-
info
'
>Upload</button>
</div>
<
div
className
=
"
column
"
>
<
h3
className
=
'
title
'
>
Or
edit
an
existing
<
/h3
>
<
h5
className
=
'
subtitle
'
>
to
make
some
minor
adjustments
or
start
over
<
/h5
>
<div className="column">
<h3 className=
'
title
'
>And tweak the config</h3>
<h5 className=
'
subtitle
'
>Fix misalignments</h5>
<div class="select">
<select>
<option>Midterm 5-12</option>
<option>Final 30-1</option>
</select>
</div>
<
textarea
class
=
"
textarea
"
placeholder
=
"
C
onfig will appear
r
here...
"
><
/textarea
>
<textarea class="textarea" placeholder="
YAML c
onfig will appear here..."></textarea>
<button className=
'
button
is
-
success
'
>Save</button>
<
button
className
=
'
button is-danger
'
>
Delete
<
/button
>
</div>
<div className="column">
<h3 className=
'
title
'
>And upload PDF
'
s
<
/h3
>
<
h5
className
=
'
subtitle
'
>
we
will
work
some
magic
!<
/h5
>
<
div
class
=
"
file has-name is-boxed
"
>
<
label
class
=
"
file-label
"
>
<
input
class
=
"
file-input
"
type
=
"
file
"
name
=
"
resume
"
/>
<
span
class
=
"
file-cta
"
>
<
span
class
=
"
file-icon
"
>
<
i
class
=
"
fa fa-upload
"
><
/i
>
<
/span
>
<
span
class
=
"
file-label
"
>
Choose
a
file
…
<
/span
>
<
/span
>
<
span
class
=
"
file-name
"
>
Exams
.
pdf
<
/span
>
<
/label
>
<
/div
>
<
br
/>
<
aside
class
=
"
menu
"
>
<
p
class
=
"
menu-label
"
>
Previously
uploaded
<
/p
>
<
ul
class
=
"
menu-list
"
>
<
li
>
midterm
.
pdf
<
/li
>
<
li
>
final_exam
.
pdf
<
/li
>
<
/ul
>
<
/aside
>
<
/div
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment