-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a26be4c
commit d162796
Showing
15 changed files
with
216 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.button--cancel { | ||
margin-left: 10px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import React from "react"; | ||
import { | ||
Button, | ||
Col, | ||
ControlLabel, | ||
Form, | ||
FormControl, | ||
FormGroup | ||
} from "react-bootstrap"; | ||
import './CourseForm.css'; | ||
|
||
class CourseForm extends React.Component { | ||
|
||
render() { | ||
return ( | ||
<Form horizontal> | ||
<FormGroup controlId="title"> | ||
<Col componentClass={ControlLabel} sm={4}> | ||
Title | ||
</Col> | ||
<Col sm={2}> | ||
<FormControl type="text" placeholder="Title"/> | ||
</Col> | ||
</FormGroup> | ||
|
||
<FormGroup controlId="Description"> | ||
<Col componentClass={ControlLabel} sm={4}> | ||
Description | ||
</Col> | ||
<Col sm={2}> | ||
<FormControl componentClass="textarea" placeholder="Text area"/> | ||
</Col> | ||
</FormGroup> | ||
|
||
<FormGroup controlId="date"> | ||
<Col componentClass={ControlLabel} sm={4}> | ||
Date | ||
</Col> | ||
<Col sm={2}> | ||
<FormControl type="text" placeholder="Date"/> | ||
</Col> | ||
</FormGroup> | ||
|
||
<FormGroup controlId="duration"> | ||
<Col componentClass={ControlLabel} sm={4}> | ||
Duration | ||
</Col> | ||
<Col sm={1}> | ||
<FormControl type="number" min="0" placeholder="Min"/> | ||
</Col> | ||
</FormGroup> | ||
|
||
<FormGroup> | ||
<Col smOffset={4} sm={4}> | ||
<Button type="submit">Save</Button> | ||
<Button className="button--cancel" type="submit">Cancel</Button> | ||
</Col> | ||
</FormGroup> | ||
</Form> | ||
); | ||
} | ||
} | ||
|
||
export {CourseForm}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import React from "react"; | ||
import { | ||
Button, | ||
Form, | ||
FormGroup, | ||
FormControl, | ||
ControlLabel, | ||
Col | ||
} from "react-bootstrap"; | ||
|
||
class LoginForm extends React.Component { | ||
|
||
constructor(props) { | ||
super(props); | ||
this.state = { | ||
hintEmail: "*enter your email", | ||
hintPassword: "*enter your password" | ||
} | ||
} | ||
|
||
render() { | ||
return ( | ||
<Form horizontal> | ||
<FormGroup controlId="email"> | ||
<Col componentClass={ControlLabel} sm={4}> | ||
</Col> | ||
<Col sm={2}> | ||
<FormControl type="email" placeholder="Email"/> | ||
</Col> | ||
<Col componentClass={ControlLabel}> | ||
{this.state.hintEmail} | ||
</Col> | ||
</FormGroup> | ||
|
||
<FormGroup controlId="password"> | ||
<Col componentClass={ControlLabel} sm={4}> | ||
Password | ||
</Col> | ||
<Col sm={2}> | ||
<FormControl type="password" placeholder="Password"/> | ||
</Col> | ||
<Col componentClass={ControlLabel}> | ||
{this.state.hintPassword} | ||
</Col> | ||
</FormGroup> | ||
|
||
<FormGroup> | ||
<Col smOffset={4} sm={4}> | ||
<Button type="submit">Sign in</Button> | ||
</Col> | ||
</FormGroup> | ||
</Form> | ||
); | ||
} | ||
} | ||
|
||
export {LoginForm}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.header { | ||
background-color: rgb(108, 182, 39); | ||
height: 260px; | ||
padding: 10px; | ||
color: white; | ||
} | ||
|
||
.header__logo { | ||
height: 200px; | ||
margin-right: 20px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from "react"; | ||
import {Header} from "../components/common/Header" | ||
import {CourseForm} from "../components/CourseForm"; | ||
|
||
class CourseEditPage extends React.Component { | ||
|
||
constructor(props) { | ||
super(props); | ||
this.state = { | ||
title: "Edit course" | ||
} | ||
} | ||
|
||
render() { | ||
return ( | ||
<div> | ||
<Header pageTitle={this.state.title}/> | ||
<CourseForm/> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export {CourseEditPage}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.form-group { | ||
margin-left: 20px; | ||
margin-right: 20px; | ||
} |
Oops, something went wrong.