Fakultas Ilmu Komputer UI

Commit bba1b6ab authored by Muhammad Fauzan Fikri's avatar Muhammad Fauzan Fikri
Browse files

add field student_toefl di halaman profil

parent 3dd97633
Pipeline #26541 failed with stages
in 4 minutes and 55 seconds
......@@ -86,6 +86,7 @@ export default class ProfilePage extends React.Component {
hackerrank_url: '',
self_description: '',
student_gpa: 0.0,
student_toefl: 0,
website_url: '',
latest_work: '',
latest_work_desc: '',
......@@ -150,6 +151,7 @@ export default class ProfilePage extends React.Component {
hackerrank_url: data.hackerrank_url,
self_description: data.self_description,
student_gpa: data.student_gpa,
student_toefl: data.student_toefl,
website_url: data.website_url,
latest_work: data.latest_work,
alamat: data.alamat,
......@@ -694,6 +696,23 @@ export default class ProfilePage extends React.Component {
name="student_gpa"
/>
</Form.Field>
<Form.Field>
<label htmlFor="student_toefl">TOEFL</label>
<input
onChange={this.handleChange}
placeholder={
this.state.student_toefl === null
? '400'
: this.state.student_toefl
}
defaultValue={
this.state.student_toefl === null
? null
: this.state.student_toefl
}
name="student_toefl"
/>
</Form.Field>
<Form.Field>
<label htmlFor="dependants">Dependants</label>
<input
......@@ -910,6 +929,21 @@ export default class ProfilePage extends React.Component {
</Grid>
</Segment>
<Segment basic vertical>
<Grid>
<Grid.Column width={2}>
<Icon name="pencil alternate" size="big" />
</Grid.Column>
<Grid.Column width={13}>
<p href={this.state.student_toefl}>
{' '}
{this.state.student_toefl || 'null'}
{' '}
</p>
</Grid.Column>
</Grid>
</Segment>
<Segment basic vertical>
<Grid>
<Grid.Column width={2}>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment