Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fasilkom UI Open Source Software
Kape
Commits
524213be
Commit
524213be
authored
May 24, 2017
by
M. Reza Qorib
Browse files
#144502159] [Refactor] #49 Resolve merge conflict
parents
94f7a533
6c5a3e96
Changes
4
Hide whitespace changes
Inline
Side-by-side
assets/css/custom.css
View file @
524213be
...
...
@@ -244,6 +244,10 @@ card .formRegis{
margin-right
:
10%
;
}
.ui.segment.paginationCompany
{
margin-left
:
10%
;
margin-right
:
10%
;
}
.admin-bar
{
margin
:
0
;
...
...
assets/js/VacancyPage.jsx
View file @
524213be
import
React
from
'
react
'
;
import
{
Container
}
from
'
semantic-ui-react
'
;
import
{
Segment
}
from
'
semantic-ui-react
'
;
import
Tabs
from
'
./components/Tabs
'
;
import
Pane
from
'
./components/Pane
'
;
import
VacancyList
from
'
./components/VacancyList
'
;
...
...
@@ -78,9 +78,8 @@ export default class VacancyPage extends React.Component {
);
}
else
if
(
this
.
props
.
user
.
role
===
'
company
'
||
this
.
props
.
user
.
role
===
'
admin
'
)
{
return
(
<
Container
className
=
"
vacancies
"
>
<
Segment
className
=
"
paginationCompany
"
>
<
Pagination
key
=
{
1
}
url
=
{
`/companies/
${
this
.
state
.
id
}
/vacancies/`
}
child
=
{
<
VacancyList
...
...
@@ -91,7 +90,7 @@ export default class VacancyPage extends React.Component {
}
error
=
"Anda belum diverifikasi. Harap hubungi admin"
/>
</
Container
>
</
Segment
>
);
}
...
...
assets/js/components/CompanyVacancy.jsx
View file @
524213be
...
...
@@ -28,6 +28,7 @@ export default class CompanyVacancy extends React.Component {
render
()
{
return
(
<
Item
className
=
"applicantItems"
>
<
Item
.
Image
src
=
{
this
.
props
.
data
.
company
.
logo
?
this
.
props
.
data
.
company
.
logo
:
defaultImage
}
size
=
"small"
/>
<
Item
.
Content
verticalAlign
=
"middle"
style
=
{
{
wordWrap
:
'
break-word
'
,
width
:
'
100%
'
}
}
>
...
...
assets/js/components/VacancyList.jsx
View file @
524213be
import
React
from
'
react
'
;
import
{
Item
,
Button
,
Grid
}
from
'
semantic-ui-react
'
;
import
{
Item
,
Button
,
Grid
,
Segment
}
from
'
semantic-ui-react
'
;
import
{
Link
}
from
'
react-router
'
;
import
Vacancy
from
'
./Vacancy
'
;
import
CompanyVacancy
from
'
./CompanyVacancy
'
;
...
...
@@ -54,11 +54,17 @@ export default class VacancyList extends React.Component {
);
}
return
this
.
state
.
vacancies
.
map
(
vacancy
=>
(<
CompanyVacancy
key
=
{
vacancy
.
id
}
data
=
{
vacancy
}
deleteCallback
=
{
()
=>
this
.
deleteVacancy
(
vacancy
.
id
)
}
/>),
return
this
.
state
.
vacancies
.
map
(
vacancy
=>
(
<
Item
.
Group
relaxed
style
=
{
{
width
:
'
100%
'
}
}
>
<
CompanyVacancy
key
=
{
vacancy
.
id
}
data
=
{
vacancy
}
deleteCallback
=
{
()
=>
this
.
deleteVacancy
(
vacancy
.
id
)
}
/>
</
Item
.
Group
>
),
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment