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
7afab27e
Commit
7afab27e
authored
7 years ago
by
Thomas Roos
Browse files
Options
Downloads
Patches
Plain Diff
Splice out component
parent
1c063665
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
client/views/Students.js
+3
-16
3 additions, 16 deletions
client/views/Students.js
client/views/students/AddModal.jsx
+53
-0
53 additions, 0 deletions
client/views/students/AddModal.jsx
with
56 additions
and
16 deletions
client/views/Students.js
+
3
−
16
View file @
7afab27e
...
...
@@ -12,9 +12,10 @@ import * as api from '../api';
import
StudentPanelBlock
from
'
./students/StudentPanelBlock.jsx
'
;
import
ProgressBar
from
'
./students/ProgressBar.jsx
'
;
import
ExamSelector
from
'
./students/ExamSelector.jsx
'
;
import
AddModal
from
'
./students/AddModal.jsx
'
;
class
CheckStudents
extends
React
.
Component
{
students
=
[
{
id
:
0
,
...
...
@@ -415,21 +416,7 @@ class CheckStudents extends React.Component {
matched
=
{
student
.
id
===
this
.
state
.
submission
.
studentID
&&
this
.
state
.
submission
.
validated
}
selectStudent
=
{
this
.
selectStudent
}
/
>
)}
<
div
className
=
"
panel-block is-hidden-mobile
"
>
<
button
className
=
"
button is-link is-outlined is-fullwidth
"
>
<
span
className
=
"
icon is-small
"
>
<
i
className
=
"
fa fa-user-plus
"
><
/i
>
<
/span
>
<
span
>
add
<
/span
>
<
/button
>
<
button
className
=
"
button is-link is-outlined is-fullwidth
"
>
<
span
className
=
"
icon is-small
"
>
<
i
className
=
"
fa fa-upload
"
><
/i
>
<
/span
>
<
span
>
upload
<
/span
>
<
/button
>
<
/div
>
<
AddModal
/>
<
/nav
>
<
/div
>
...
...
This diff is collapsed.
Click to expand it.
client/views/students/AddModal.jsx
0 → 100644
+
53
−
0
View file @
7afab27e
import
React
from
'
react
'
;
class
AddModal
extends
React
.
Component
{
state
=
{
active
:
false
}
toggleActive
=
()
=>
{
this
.
setState
({
active
:
!
this
.
state
.
active
})
}
render
()
{
return
(
<
div
className
=
"panel-block is-hidden-mobile"
>
<
button
className
=
"button is-link is-outlined is-fullwidth"
onClick
=
{
this
.
toggleActive
}
>
<
span
className
=
"icon is-small"
>
<
i
className
=
"fa fa-user-plus"
></
i
>
</
span
>
<
span
>
add students
</
span
>
</
button
>
<
div
className
=
{
"
modal
"
+
(
this
.
state
.
active
?
"
is-active
"
:
""
)
}
>
<
div
className
=
"modal-background"
></
div
>
<
div
className
=
"modal-card"
>
<
header
className
=
"modal-card-head"
>
<
p
className
=
"modal-card-title"
>
<
span
className
=
"icon is-medium"
>
<
i
className
=
"fa fa-user-plus"
></
i
>
</
span
>
<
span
>
Add students
</
span
>
</
p
>
<
button
className
=
"delete"
aria-label
=
"close"
onClick
=
{
this
.
toggleActive
}
></
button
>
</
header
>
<
section
className
=
"modal-card-body"
>
Hoihoi
</
section
>
<
footer
className
=
"modal-card-foot"
>
<
button
className
=
"button is-success"
>
Add student
</
button
>
<
button
className
=
"button is-success"
>
Upload file
</
button
>
<
button
className
=
"button"
onClick
=
{
this
.
toggleActive
}
>
Done
</
button
>
</
footer
>
</
div
>
</
div
>
</
div
>
)
}
}
export
default
AddModal
;
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