Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kszkepzes-frontend
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Köpeczi-Bócz Gergely
kszkepzes-frontend
Commits
2b20f4fb
Commit
2b20f4fb
authored
6 years ago
by
Chif Gergő
Browse files
Options
Downloads
Patches
Plain Diff
Create page to administrate applicants
parent
bf57edb7
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/components/Header.js
+5
-0
5 additions, 0 deletions
src/components/Header.js
src/components/Main.js
+2
-0
2 additions, 0 deletions
src/components/Main.js
src/components/pages/Applications.js
+56
-0
56 additions, 0 deletions
src/components/pages/Applications.js
with
63 additions
and
0 deletions
src/components/Header.js
+
5
−
0
View file @
2b20f4fb
...
...
@@ -39,6 +39,11 @@ const menuItems = [
to
:
'
/statistics
'
,
prefix
:
''
,
},
{
text
:
'
Jelentkezések
'
,
to
:
'
/applications
'
,
prefix
:
''
,
},
]
const
FixedMenu
=
({
user
})
=>
(
...
...
This diff is collapsed.
Click to expand it.
src/components/Main.js
+
2
−
0
View file @
2b20f4fb
...
...
@@ -9,6 +9,7 @@ import Profile from './pages/Profile';
import
Statistics
from
'
./pages/Statistics
'
;
import
Groups
from
'
./pages/Groups
'
;
import
News
from
'
./pages/News
'
;
import
Applications
from
'
./pages/Applications
'
;
import
EventDetail
from
'
./pages/EventDetail
'
;
const
Main
=
()
=>
(
...
...
@@ -22,6 +23,7 @@ const Main = () => (
<
Route
path
=
'
/statistics
'
component
=
{
Statistics
}
/
>
<
Route
path
=
'
/groups
'
component
=
{
Groups
}
/
>
<
Route
path
=
'
/events/:id
'
component
=
{
EventDetail
}
/
>
<
Route
path
=
'
/applications
'
component
=
{
Applications
}
/
>
<
Route
component
=
{
NotFound
}
/
>
<
/Switch
>
);
...
...
This diff is collapsed.
Click to expand it.
src/components/pages/Applications.js
0 → 100644
+
56
−
0
View file @
2b20f4fb
import
React
,
{
Component
}
from
'
react
'
;
import
moment
from
'
moment
'
;
import
{
Link
}
from
'
react-router-dom
'
;
import
{
Container
,
Table
,
Button
}
from
'
semantic-ui-react
'
;
import
{
connect
}
from
'
react-redux
'
;
import
{
getTrainees
}
from
'
../../actions/statistics
'
;
class
Applications
extends
Component
{
componentWillMount
()
{
this
.
props
.
getTrainees
();
}
renderApplicants
()
{
return
this
.
props
.
trainees
.
map
((
trainee
)
=>
{
return
(
<
Table
.
Row
>
<
Table
.
Cell
>
<
Link
to
=
{
`trainee/
${
trainee
.
id
}
`
}
>
{
trainee
.
full_name
}
<
/Link
>
<
/Table.Cell
>
<
Table
.
Cell
>
<
/Table.Cell
>
<
/Table.Row
>
);
});
}
render
()
{
return
(
<
Container
textAlign
=
'
center
'
style
=
{{
padding
:
'
80px
'
}}
>
<
Table
color
=
'
blue
'
celled
selectable
compact
>
<
Table
.
Header
>
<
Table
.
Row
>
<
Table
.
HeaderCell
>
Jelentkezettek
<
/Table.HeaderCell
>
<
Table
.
HeaderCell
>
Jelentkezés
elfogadva
:
<
/Table.HeaderCell
>
<
/Table.Row
>
<
/Table.Header
>
<
Table
.
Body
>
{
this
.
props
.
trainees
?
this
.
renderApplicants
()
:
'
Nincs még alaklom beírva
'
}
<
/Table.Body
>
<
/Table
>
<
/Container
>
);
}
}
const
mapStateToProps
=
({
trainees
:
{
trainees
},
user
})
=>
({
trainees
,
user
});
export
default
connect
(
mapStateToProps
,
{
getTrainees
})(
Applications
);
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