Fakultas Ilmu Komputer UI
Skip to content
GitLab
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
4fe512fe
Commit
4fe512fe
authored
Mar 29, 2017
by
M. Reza Qorib
Browse files
[#140654507] #12 on progress to make cancel applicancy
parent
dafdd8b5
Changes
5
Hide whitespace changes
Inline
Side-by-side
assets/js/Index.jsx
View file @
4fe512fe
...
...
@@ -38,7 +38,7 @@ export default class App extends React.Component {
<
Route
path
=
"/login"
component
=
{
Login
}
/>
<
Route
path
=
"/register"
component
=
{
CompanyRegister
}
/>
<
Route
component
=
{
Dashboard
}
onEnter
=
{
this
.
handleAuth
}
>
<
Route
path
=
"/"
component
=
{
Profil
e
}
/>
<
Route
path
=
"/"
component
=
{
VacancyPag
e
}
/>
<
Route
path
=
"/profile"
component
=
{
Profile
}
/>
<
Route
path
=
"/lowongan"
component
=
{
VacancyPage
}
/>
<
Route
path
=
"/users"
component
=
{
Profile
}
/>
...
...
assets/js/VacancyPage.jsx
View file @
4fe512fe
...
...
@@ -29,7 +29,7 @@ export default class VacancyPage extends React.Component {
<
VacancyList
key
=
{
1
}
studentId
=
{
student
.
id
}
url
=
"/vacancies/"
/>
</
Pane
>
<
Pane
label
=
"Lamaran saya"
>
<
VacancyList
key
=
{
2
}
studentId
=
{
student
.
id
}
url
=
{
`/students/
${
student
.
id
}
/applied-vacancies/`
}
/>
<
VacancyList
key
=
{
2
}
status
=
"batal"
studentId
=
{
student
.
id
}
url
=
{
`/students/
${
student
.
id
}
/applied-vacancies/`
}
/>
</
Pane
>
<
Pane
label
=
"Lamaran Ditandai"
>
<
VacancyList
key
=
{
3
}
studentId
=
{
student
.
id
}
url
=
{
`/students/
${
student
.
id
}
/bookmarked-vacancies/`
}
/>
...
...
assets/js/components/ModalAlert.jsx
View file @
4fe512fe
...
...
@@ -10,6 +10,9 @@ export default class ModalAlert extends React.Component {
coverLetter
:
React
.
PropTypes
.
string
.
isRequired
,
};
static
successResponse
=
'
Pendaftaran anda berhasil direkam. Harap menunggu kabar selanjutnya dari pihak yang terkait
\n
'
;
static
failedResponse
=
'
Maaf pendaftaran yang anda lakukan gagal. Harap ulangi pendaftaran atau hubungi administrator
\n
'
;
constructor
(
props
)
{
super
(
props
);
/* istanbul ignore next */
...
...
@@ -53,7 +56,7 @@ export default class ModalAlert extends React.Component {
onClose
=
{
this
.
close
}
size
=
"small"
basic
trigger
=
{
<
Button
color
=
"blue"
onClick
=
{
this
.
handleOpen
}
>
Proceed
<
Icon
name
=
"right chevron"
/></
Button
>
}
trigger
=
{
<
Button
color
=
"blue"
onClick
=
{
this
.
handleOpen
}
>
Daftar
<
Icon
name
=
"right chevron"
/></
Button
>
}
>
<
Modal
.
Header
>
{
this
.
state
.
header
}
</
Modal
.
Header
>
<
Modal
.
Content
>
...
...
assets/js/components/Vacancy.jsx
View file @
4fe512fe
...
...
@@ -50,7 +50,7 @@ export default class Vacancy extends React.Component {
<
ApplyModal
id
=
{
this
.
props
.
data
.
id
}
data
=
{
{
header
:
this
.
props
.
data
.
name
,
description
:
this
.
props
.
data
.
description
}
}
buttonTitle
=
"D
aftar
"
description
:
this
.
props
.
data
.
description
}
}
buttonTitle
=
"D
etail
"
/>
</
Item
.
Extra
>
...
...
assets/js/components/VacancyList.jsx
View file @
4fe512fe
...
...
@@ -8,10 +8,12 @@ export default class VacancyList extends React.Component {
static
propTypes
=
{
url
:
React
.
PropTypes
.
string
.
isRequired
,
studentId
:
React
.
PropTypes
.
number
.
isRequired
,
status
:
React
.
PropTypes
.
string
,
};
static
defaultProps
=
{
bookmarkList
:
false
,
status
:
"
daftar
"
,
};
constructor
(
props
)
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment