Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-049
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2021-049
2021-049
Commits
112aaa96
Commit
112aaa96
authored
May 10, 2021
by
Hasitha Samarasekara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Institute Sign up UI Done.
Nav bar fixed to top.
parent
a5cec1be
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
299 additions
and
11 deletions
+299
-11
WebFrontEnd/smartcoach-frontend/src/Components/Login.js
WebFrontEnd/smartcoach-frontend/src/Components/Login.js
+3
-2
WebFrontEnd/smartcoach-frontend/src/Components/Navbar.js
WebFrontEnd/smartcoach-frontend/src/Components/Navbar.js
+2
-1
WebFrontEnd/smartcoach-frontend/src/Components/SignUp.js
WebFrontEnd/smartcoach-frontend/src/Components/SignUp.js
+294
-8
No files found.
WebFrontEnd/smartcoach-frontend/src/Components/Login.js
View file @
112aaa96
...
@@ -63,7 +63,8 @@ export default class Login extends Component{
...
@@ -63,7 +63,8 @@ export default class Login extends Component{
render
()
{
render
()
{
return
(
return
(
<
div
className
=
"
container
"
style
=
{{
padding
:
'
10px
'
}}
>
<
div
className
=
"
container
"
style
=
{{
padding
:
'
10px
'
}}
>
<
div
style
=
{{
width
:
'
30%
'
,
margin
:
'
auto
'
,
marginTop
:
'
50px
'
,
padding
:
'
0px
'
,
paddingBottom
:
'
30px
'
,
border
:
'
solid
'
,
borderColor
:
'
#216E9B
'
}}
>
<
div
>
<
div
style
=
{{
width
:
'
30%
'
,
margin
:
'
auto
'
,
marginTop
:
'
7%
'
,
padding
:
'
0px
'
,
paddingBottom
:
'
30px
'
,
border
:
'
solid
'
,
borderColor
:
'
#216E9B
'
}}
>
<
form
onSubmit
=
{
this
.
onSubmit
}
id
=
"
login
"
name
=
"
login
"
className
=
"
login
"
>
<
form
onSubmit
=
{
this
.
onSubmit
}
id
=
"
login
"
name
=
"
login
"
className
=
"
login
"
>
<
div
className
=
"
row
"
>
<
div
className
=
"
row
"
>
<
br
/>
<
br
/>
...
@@ -124,7 +125,7 @@ export default class Login extends Component{
...
@@ -124,7 +125,7 @@ export default class Login extends Component{
<
/div
>
<
/div
>
<
/form
>
<
/form
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
)
)
}
}
...
...
WebFrontEnd/smartcoach-frontend/src/Components/Navbar.js
View file @
112aaa96
...
@@ -5,7 +5,8 @@ export default class NavBar extends Component {
...
@@ -5,7 +5,8 @@ export default class NavBar extends Component {
render
()
{
render
()
{
return
(
return
(
<
nav
className
=
"
navbar navbar-expand-lg
"
style
=
{{
background
:
'
#1E4258
'
}}
>
<
nav
className
=
"
navbar navbar-expand-lg
"
style
=
{{
background
:
'
#1E4258
'
,
position
:
'
fixed
'
,
width
:
'
100%
'
,
marginTop
:
'
0%
'
,
zIndex
:
'
100
'
}}
>
<
button
className
=
"
navbar-toggler
"
type
=
"
button
"
data
-
toggle
=
"
collapse
"
<
button
className
=
"
navbar-toggler
"
type
=
"
button
"
data
-
toggle
=
"
collapse
"
data
-
target
=
"
#navbarNavAltMarkup
"
aria
-
controls
=
"
navbarNavAltMarkup
"
aria
-
expanded
=
"
false
"
data
-
target
=
"
#navbarNavAltMarkup
"
aria
-
controls
=
"
navbarNavAltMarkup
"
aria
-
expanded
=
"
false
"
...
...
WebFrontEnd/smartcoach-frontend/src/Components/SignUp.js
View file @
112aaa96
...
@@ -6,9 +6,9 @@ export default class SignUp extends Component {
...
@@ -6,9 +6,9 @@ export default class SignUp extends Component {
super
(
props
);
super
(
props
);
this
.
state
=
{
this
.
state
=
{
isClickStudent
:
tru
e
,
isClickStudent
:
fals
e
,
isClickTutor
:
false
,
isClickTutor
:
false
,
isClickInstitute
:
fals
e
,
isClickInstitute
:
tru
e
,
streams
:
[
'
Commerce stream
'
,
'
Physical Science Stream
'
,
'
Biological Science Stream
'
,
'
Technology Stream
'
,
'
Art Stream
'
],
streams
:
[
'
Commerce stream
'
,
'
Physical Science Stream
'
,
'
Biological Science Stream
'
,
'
Technology Stream
'
,
'
Art Stream
'
],
subjects
:
[
'
Economics
'
,
'
Geography
'
,
'
Business statistics
'
,
'
Business Studies
'
,
subjects
:
[
'
Economics
'
,
'
Geography
'
,
'
Business statistics
'
,
'
Business Studies
'
,
'
Accounting
'
,
'
Logic & Scientific Method
'
,
'
History of India
'
,
'
History of Europe
'
,
'
History of Modern World
'
,
'
Accounting
'
,
'
Logic & Scientific Method
'
,
'
History of India
'
,
'
History of Europe
'
,
'
History of Modern World
'
,
...
@@ -35,6 +35,11 @@ export default class SignUp extends Component {
...
@@ -35,6 +35,11 @@ export default class SignUp extends Component {
studentButtonColor
:
'
#216E9B
'
,
studentButtonColor
:
'
#216E9B
'
,
tutorButtonColor
:
'
#265077
'
,
tutorButtonColor
:
'
#265077
'
,
instituteButtonColor
:
'
#265077
'
,
instituteButtonColor
:
'
#265077
'
,
institutePhoneNoOnChange
:
''
,
uerAddedInstitutePhoneList
:
[],
tempInstitutePhoneList
:
[],
emptyVariable
:
''
,
}
}
...
@@ -48,13 +53,15 @@ export default class SignUp extends Component {
...
@@ -48,13 +53,15 @@ export default class SignUp extends Component {
this
.
onClickInstituteRemoveButton
=
this
.
onClickInstituteRemoveButton
.
bind
(
this
);
this
.
onClickInstituteRemoveButton
=
this
.
onClickInstituteRemoveButton
.
bind
(
this
);
this
.
onChangeInstituteCheckBox
=
this
.
onChangeInstituteCheckBox
.
bind
(
this
);
this
.
onChangeInstituteCheckBox
=
this
.
onChangeInstituteCheckBox
.
bind
(
this
);
this
.
FindCities
=
this
.
FindCities
.
bind
(
this
);
this
.
FindCities
=
this
.
FindCities
.
bind
(
this
);
this
.
onChangeInstitutePhoneNo
=
this
.
onChangeInstitutePhoneNo
.
bind
(
this
);
this
.
onClickAddInstitutePhoneNoButton
=
this
.
onClickAddInstitutePhoneNoButton
.
bind
(
this
);
this
.
onClickInstitutePhoneNoRemoveButton
=
this
.
onClickInstitutePhoneNoRemoveButton
.
bind
(
this
);
}
}
componentDidMount
()
{
componentDidMount
()
{
if
(
this
.
state
.
isClickStudent
){
}
}
}
onClickStudent
()
{
onClickStudent
()
{
this
.
setState
({
this
.
setState
({
...
@@ -211,15 +218,64 @@ export default class SignUp extends Component {
...
@@ -211,15 +218,64 @@ export default class SignUp extends Component {
});
});
}
}
onChangeInstitutePhoneNo
(
e
){
if
(
e
.
target
.
value
>=
0
){
this
.
setState
({
institutePhoneNoOnChange
:
e
.
target
.
value
});
}
}
onClickAddInstitutePhoneNoButton
()
{
let
oldInstitutePN
=
[];
let
temInstitutePNList02
=
[];
if
(
this
.
state
.
institutePhoneNoOnChange
!==
''
)
{
oldInstitutePN
=
this
.
state
.
uerAddedInstitutePhoneList
.
slice
();
oldInstitutePN
.
push
(
this
.
state
.
institutePhoneNoOnChange
);
this
.
setState
({
uerAddedInstitutePhoneList
:
oldInstitutePN
},
()
=>
{
for
(
let
i
=
0
;
i
<
this
.
state
.
uerAddedInstitutePhoneList
.
length
;
i
++
)
{
temInstitutePNList02
.
push
(
this
.
state
.
uerAddedInstitutePhoneList
[
i
]
+
'
|
'
);
}
this
.
setState
({
tempInstitutePhoneList
:
temInstitutePNList02
,
institutePhoneNoOnChange
:
''
})
})
}
}
onClickInstitutePhoneNoRemoveButton
()
{
let
oldInstitutePN
=
[];
let
oldInstitutePN02
=
[];
oldInstitutePN
=
this
.
state
.
uerAddedInstitutePhoneList
.
slice
();
oldInstitutePN02
=
this
.
state
.
tempInstitutePhoneList
.
slice
();
let
popped
=
oldInstitutePN
.
pop
();
let
popped2
=
oldInstitutePN02
.
pop
();
this
.
setState
({
uerAddedInstitutePhoneList
:
oldInstitutePN
,
tempInstitutePhoneList
:
oldInstitutePN02
})
}
render
()
{
render
()
{
return
(
return
(
<
div
className
=
"
container
"
>
<
div
className
=
"
container
"
style
=
{{
paddingTop
:
'
50px
'
}}
>
<
div
>
<
div
style
=
{{
<
div
style
=
{{
width
:
'
50%
'
,
width
:
'
50%
'
,
margin
:
'
auto
'
,
margin
:
'
auto
'
,
marginTop
:
'
50px
'
,
marginTop
:
'
3%
'
,
marginBottom
:
'
30px
'
,
marginBottom
:
'
30px
'
,
padding
:
'
0px
'
,
padding
Top
:
'
0px
'
,
paddingBottom
:
'
30px
'
,
paddingBottom
:
'
30px
'
,
border
:
'
solid
'
,
border
:
'
solid
'
,
borderColor
:
'
#216E9B
'
borderColor
:
'
#216E9B
'
...
@@ -997,13 +1053,243 @@ export default class SignUp extends Component {
...
@@ -997,13 +1053,243 @@ export default class SignUp extends Component {
:
:
<
div
>
<
div
>
<
h3
>
This
is
Institute
<
/h3
>
<
form
onSubmit
=
{
this
.
onSubmit
}
id
=
"
signup
"
name
=
"
signup
"
className
=
"
signup
"
>
<
div
className
=
"
row
"
style
=
{{
display
:
'
flex
'
,
justifyContent
:
'
center
'
,
marginTop
:
'
0px
'
}}
>
<
h5
style
=
{{
marginTop
:
'
30px
'
,
color
:
'
#8c8c8c
'
}}
>
INSTITUTE
DETAILS
<
/h5
>
<
/div
>
<
div
className
=
"
row
"
style
=
{{
marginTop
:
'
10px
'
,
marginBottom
:
'
0px
'
}}
>
<
div
className
=
"
col-1
"
>
<
/div
>
<
div
className
=
"
col-10
"
>
<
h5
style
=
{{
float
:
'
left
'
,
color
:
'
#216E9B
'
}}
>
Name
of
Institute
<
/h5
>
<
/div
>
<
div
className
=
"
col-1
"
>
<
/div
>
<
/div
>
<
/div
>
<
div
className
=
"
row
"
style
=
{{
marginTop
:
'
0px
'
,
marginBottom
:
'
10px
'
}}
>
<
div
className
=
"
col-1
"
>
<
/div
>
<
div
className
=
"
col-10
"
style
=
{{
textAlign
:
'
-webkit-center
'
}}
>
<
input
type
=
"
text
"
id
=
"
studentName
"
className
=
"
form-control
"
placeholder
=
"
Name of Institute
"
onChange
=
{
this
.
onChangeEmail
}
style
=
{{
width
:
'
90%
'
}}
required
/>
<
/div
>
<
div
className
=
"
col-1
"
>
<
/div
>
<
/div
>
<
div
className
=
"
row
"
style
=
{{
marginTop
:
'
20px
'
,
marginBottom
:
'
0px
'
}}
>
<
div
className
=
"
col-1
"
>
<
/div
>
<
div
className
=
"
col-10
"
>
<
h5
style
=
{{
float
:
'
left
'
,
color
:
'
#216E9B
'
}}
>
Phone
Number
(
s
)
<
/h5
>
<
/div
>
<
div
className
=
"
col-1
"
>
<
/div
>
<
/div
>
<
div
className
=
"
row
"
style
=
{{
marginTop
:
'
0px
'
,
marginBottom
:
'
10px
'
}}
>
<
div
className
=
"
col-1
"
>
<
/div
>
<
div
className
=
"
col-8
"
style
=
{{
textAlign
:
'
-webkit-center
'
}}
>
<
input
type
=
"
tel
"
id
=
"
institutePN
"
className
=
"
form-control
"
value
=
{
this
.
state
.
institutePhoneNoOnChange
}
placeholder
=
"
Phone Number
"
onChange
=
{
this
.
onChangeInstitutePhoneNo
}
style
=
{{
width
:
'
90%
'
}}
/
>
<
/div
>
<
div
className
=
"
col-3
"
>
<
button
type
=
"
button
"
className
=
"
btn btn-primary
"
onClick
=
{
this
.
onClickAddInstitutePhoneNoButton
}
style
=
{{
width
:
'
40px
'
,
marginTop
:
'
0px
'
,
backgroundColor
:
'
#265077
'
,
borderColor
:
'
#216E9B
'
,
float
:
'
left
'
}}
><
b
>+<
/b></
button
>
<
/div
>
<
/div
>
{
this
.
state
.
tempInstitutePhoneList
.
length
>
0
?
<
div
className
=
"
row
"
style
=
{{
marginTop
:
'
20px
'
,
marginBottom
:
'
0px
'
}}
>
<
div
className
=
"
col-1
"
>
<
/div
>
<
div
className
=
"
col-8
"
>
<
label
style
=
{{
float
:
'
left
'
,
color
:
'
#216E9B
'
}}
>
{
this
.
state
.
tempInstitutePhoneList
}
<
/label
>
<
/div
>
<
div
className
=
"
col-3
"
>
<
button
type
=
"
button
"
className
=
"
btn btn-primary
"
onClick
=
{
this
.
onClickInstitutePhoneNoRemoveButton
}
style
=
{{
width
:
'
40px
'
,
marginTop
:
'
0px
'
,
backgroundColor
:
'
#265077
'
,
borderColor
:
'
#216E9B
'
,
float
:
'
left
'
}}
><
b
>-<
/b></
button
>
<
/div
>
<
/div
>
:
<
div
>
<
/div
>
}
}
<
div
className
=
"
row
"
style
=
{{
marginTop
:
'
20px
'
,
marginBottom
:
'
0px
'
}}
>
<
div
className
=
"
col-1
"
>
<
/div
>
<
div
className
=
"
col-10
"
>
<
h5
style
=
{{
float
:
'
left
'
,
color
:
'
#216E9B
'
}}
>
Institute
Email
<
/h5
>
<
/div
>
<
/div
>
<
div
className
=
"
col-1
"
>
<
/div
>
<
/div
>
<
div
className
=
"
row
"
style
=
{{
marginTop
:
'
0px
'
,
marginBottom
:
'
10px
'
}}
>
<
div
className
=
"
col-1
"
>
<
/div
>
<
div
className
=
"
col-10
"
style
=
{{
textAlign
:
'
-webkit-center
'
}}
>
<
input
type
=
"
email
"
id
=
"
instEmail
"
className
=
"
form-control
"
placeholder
=
"
Email
"
onChange
=
{
this
.
onChangePassword
}
style
=
{{
width
:
'
90%
'
}}
required
/>
<
/div
>
<
div
className
=
"
col-1
"
>
<
/div
>
<
/div
>
<
div
className
=
"
row
"
style
=
{{
marginTop
:
'
20px
'
,
marginBottom
:
'
0px
'
}}
>
<
div
className
=
"
col-1
"
>
<
/div
>
<
div
className
=
"
col-10
"
>
<
h5
style
=
{{
float
:
'
left
'
,
color
:
'
#216E9B
'
}}
>
Address
<
/h5
>
<
/div
>
<
div
className
=
"
col-1
"
>
<
/div
>
<
/div
>
<
div
className
=
"
row
"
style
=
{{
marginTop
:
'
0px
'
,
marginBottom
:
'
10px
'
}}
>
<
div
className
=
"
col-1
"
>
<
/div
>
<
div
className
=
"
col-10
"
style
=
{{
textAlign
:
'
-webkit-center
'
}}
>
<
input
type
=
"
text
"
id
=
"
stdAddress
"
className
=
"
form-control
"
placeholder
=
"
Apartment #
"
onChange
=
{
this
.
onChangePassword
}
style
=
{{
width
:
'
90%
'
}}
required
/>
<
/div
>
<
div
className
=
"
col-1
"
>
<
/div
>
<
/div
>
<
div
className
=
"
row
"
style
=
{{
marginTop
:
'
0px
'
,
marginBottom
:
'
10px
'
}}
>
<
div
className
=
"
col-1
"
>
<
/div
>
<
div
className
=
"
col-10
"
style
=
{{
textAlign
:
'
-webkit-center
'
}}
>
<
input
type
=
"
text
"
id
=
"
stdAddress
"
className
=
"
form-control
"
placeholder
=
"
Street
"
onChange
=
{
this
.
onChangePassword
}
style
=
{{
width
:
'
90%
'
}}
required
/>
<
/div
>
<
div
className
=
"
col-1
"
>
<
/div
>
<
/div
>
<
div
className
=
"
row
"
style
=
{{
marginTop
:
'
0px
'
,
marginBottom
:
'
10px
'
}}
>
<
div
className
=
"
col-1
"
>
<
/div
>
<
div
className
=
"
col-10
"
style
=
{{
textAlign
:
'
-webkit-center
'
}}
>
<
input
type
=
"
text
"
id
=
"
stdAddress
"
className
=
"
form-control
"
placeholder
=
"
City
"
onChange
=
{
this
.
onChangePassword
}
style
=
{{
width
:
'
90%
'
}}
required
/>
<
/div
>
<
div
className
=
"
col-1
"
>
<
/div
>
<
/div
>
<
div
className
=
"
row
"
style
=
{{
marginTop
:
'
20px
'
,
marginBottom
:
'
0px
'
}}
>
<
div
className
=
"
col-1
"
>
<
/div
>
<
div
className
=
"
col-10
"
>
<
h5
style
=
{{
float
:
'
left
'
,
color
:
'
#216E9B
'
}}
>
Institute
Registration
No
<
/h5
>
<
/div
>
<
div
className
=
"
col-1
"
>
<
/div
>
<
/div
>
<
div
className
=
"
row
"
style
=
{{
marginTop
:
'
0px
'
,
marginBottom
:
'
10px
'
}}
>
<
div
className
=
"
col-1
"
>
<
/div
>
<
div
className
=
"
col-10
"
style
=
{{
textAlign
:
'
-webkit-center
'
}}
>
<
input
type
=
"
text
"
id
=
"
regNo
"
className
=
"
form-control
"
placeholder
=
"
Company Registration Number
"
onChange
=
{
this
.
onChangePassword
}
style
=
{{
width
:
'
90%
'
}}
required
/>
<
/div
>
<
div
className
=
"
col-1
"
>
<
/div
>
<
/div
>
<
div
className
=
"
row
"
style
=
{{
marginTop
:
'
0px
'
,
marginBottom
:
'
10px
'
}}
>
<
div
className
=
"
col-1
"
>
<
/div
>
<
div
className
=
"
col-10
"
>
<
input
type
=
"
checkbox
"
id
=
"
condition
"
className
=
"
form-control
"
onChange
=
{
this
.
onChangePassword
}
style
=
{{
width
:
'
20px
'
,
height
:
'
20px
'
,
float
:
'
left
'
,
marginLeft
:
'
25px
'
,
marginTop
:
'
15px
'
}}
required
/>
<
label
style
=
{{
marginTop
:
'
15px
'
,
float
:
'
left
'
,
marginLeft
:
'
20px
'
}}
>
I
Confirm
I
have
read
the
terms
and
conditions
.
<
/label
>
<
/div
>
<
div
className
=
"
col-1
"
>
<
/div
>
<
/div
>
<
div
className
=
"
row
"
style
=
{{
marginTop
:
'
35px
'
,
marginBottom
:
'
5px
'
,
display
:
'
flex
'
,
justifyContent
:
'
center
'
}}
>
<
button
type
=
"
submit
"
className
=
"
btn btn-primary
"
style
=
{{
width
:
'
50%
'
,
marginTop
:
'
0px
'
,
backgroundColor
:
'
#265077
'
,
borderColor
:
'
#216E9B
'
}}
><
b
>
SIGN
UP
<
/b></
button
>
<
/div
>
<
/form
>
<
/div
>
}
}
<
/div
>
}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
)
)
...
...
Write
Preview
Markdown
is supported
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