forked from Kuldz/Users
-
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.
Merge pull request Kuldz#4 from Kuldz/dev
Dev
- Loading branch information
Showing
22 changed files
with
1,012 additions
and
704 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 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,43 @@ | ||
import { Form, Input, InputNumber, Button, Checkbox } from "antd" | ||
import React from "react" | ||
|
||
class ClassEditAdd extends React.Component { | ||
render () { | ||
return ( | ||
<div> | ||
<Form name="nest-messages" layout="horizontal" labelCol={{ span: 8 }} wrapperCol={{ span: 16 }}> | ||
<Form.Item name={["class", "name"]} label="Name"> | ||
<Input /> | ||
</Form.Item> | ||
|
||
<Form.Item name={["class", "year"]} label="Year"> | ||
<Input /> | ||
</Form.Item> | ||
|
||
<Form.Item name={["class", "leader"]} label="Group Leader"> | ||
<InputNumber /> | ||
</Form.Item> | ||
|
||
<Form.Item name={["class", "school"]} label="School"> | ||
<Input /> | ||
</Form.Item> | ||
|
||
<Form.Item name={["class", "students"]} label="Student"> | ||
<Input placeholder="Search Student"/> | ||
<Checkbox>John Brown</Checkbox> | ||
<Checkbox>Jim Green</Checkbox> | ||
<Checkbox>Joe Black</Checkbox> | ||
</Form.Item> | ||
|
||
<Form.Item wrapperCol={{ span: 16, offset: 8 }}> | ||
<Button type="primary" htmlType="submit"> | ||
Submit | ||
</Button> | ||
</Form.Item> | ||
</Form> | ||
</div> | ||
) | ||
} | ||
} | ||
|
||
export default ClassEditAdd |
Empty file.
Empty file.
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,21 @@ | ||
import { Pagination } from "antd" | ||
import React from "react" | ||
|
||
class Pag extends React.Component { | ||
state = { | ||
current: 3 | ||
}; | ||
|
||
onChange = page => { | ||
console.log(page) | ||
this.setState({ | ||
current: page | ||
}) | ||
}; | ||
|
||
render () { | ||
return <Pagination current={this.state.current} onChange={this.onChange} total={50} /> | ||
} | ||
} | ||
|
||
export default Pag |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = { | ||
reactStrictMode: true, | ||
reactStrictMode: true | ||
} |
Oops, something went wrong.