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
PMPL
Class Project
Kape
Commits
0bcd7df0
Commit
0bcd7df0
authored
Dec 06, 2019
by
ISNAINI NURUL KHASANAH
Browse files
Sprint 3 : mencegah field kosong saat edit profil perusahaan
parent
57e01d81
Changes
1
Hide whitespace changes
Inline
Side-by-side
assets/js/CompanyProfile.jsx
View file @
0bcd7df0
...
...
@@ -191,16 +191,17 @@ karyawan
key
=
{
this
.
state
.
refresh
}
onSubmit
=
{
this
.
handleSubmit
}
>
<
Form
.
Field
>
<
Form
.
Field
required
>
<
label
htmlFor
=
"name"
>
Nama Perusahaan
</
label
>
<
input
placeholder
=
"Nama Perusahaan"
name
=
"name"
onChange
=
{
this
.
handleChange
}
defaultValue
=
{
this
.
state
.
name
===
null
?
null
:
this
.
state
.
name
}
required
/>
</
Form
.
Field
>
<
Form
.
Field
>
<
Form
.
Field
required
>
<
label
htmlFor
=
"address"
>
Alamat Perusahaan
</
label
>
<
input
placeholder
=
"Alamat Perusahaan"
...
...
@@ -209,9 +210,10 @@ karyawan
defaultValue
=
{
this
.
state
.
address
===
null
?
null
:
this
.
state
.
address
}
required
/>
</
Form
.
Field
>
<
Form
.
Field
>
<
Form
.
Field
required
>
<
label
htmlFor
=
"description"
>
Deskripsi
</
label
>
<
TextArea
placeholder
=
"Try adding multiple lines"
...
...
@@ -223,9 +225,10 @@ karyawan
?
null
:
this
.
state
.
description
}
required
/>
</
Form
.
Field
>
<
Form
.
Field
>
<
Form
.
Field
required
>
<
label
htmlFor
=
"size"
>
Jumlah karyawan
</
label
>
<
input
placeholder
=
"Jumlah karyawan keseluruhan"
...
...
@@ -235,9 +238,10 @@ karyawan
defaultValue
=
{
this
.
state
.
size
===
null
?
'
0
'
:
this
.
state
.
size
}
required
/>
</
Form
.
Field
>
<
Form
.
Field
>
<
Form
.
Field
required
>
<
label
htmlFor
=
"website"
>
Website
</
label
>
<
input
placeholder
=
"Alamat Website"
...
...
@@ -246,6 +250,7 @@ karyawan
defaultValue
=
{
this
.
state
.
website
===
null
?
null
:
this
.
state
.
website
}
required
/>
</
Form
.
Field
>
<
Form
.
Field
>
...
...
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