Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added name & value #24

Merged
merged 2 commits into from
Aug 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/components/InputForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class InputForm extends Component {
 
Product name </label>
<div className="col-sm-4">
<input type="text" className="form-control" id="inputPassword" />
<input type="text" className="form-control" id="inputPassword" name="name"/>
</div>
</div>

Expand All @@ -33,7 +33,7 @@ class InputForm extends Component {
&nbsp;
Category </label>
<div className="col-sm-4">
<input type="text" className="form-control" id="inputPassword" />
<input type="text" className="form-control" id="inputPassword" name="category" />
</div>
</div>

Expand All @@ -43,7 +43,7 @@ class InputForm extends Component {
&nbsp;
Description </label>
<div className="col-sm-4">
<input type="text" className="form-control" id="inputPassword" />
<input type="text" className="form-control" id="inputPassword" name="description" />
</div>
</div>

Expand All @@ -53,7 +53,7 @@ class InputForm extends Component {
&nbsp;
Price </label>
<div className="col-sm-4">
<input type="text" className="form-control" id="inputPassword" />
<input type="text" className="form-control" id="inputPassword" name="price" />
</div>
</div>
<div className="form-group row">
Expand All @@ -62,7 +62,7 @@ class InputForm extends Component {
&nbsp;
Size </label>
<div className="col-sm-4">
<input type="text" className="form-control" id="inputPassword" />
<input type="text" className="form-control" id="inputPassword" name="type" />
</div>
</div>
<div className="form-group row">
Expand All @@ -80,7 +80,7 @@ class InputForm extends Component {
<label htmlFor="inputPassword" className="col-sm-2 col-form-label">Image </label>
<div className="col-sm-4">
<div className="custom-file">
<input type="file" className="custom-file-input" id="inputGroupFile01" aria-describedby="inputGroupFileAddon01" />
<input type="file" className="custom-file-input" id="inputGroupFile01" aria-describedby="inputGroupFileAddon01" name="unit"/>
<label className="custom-file-label" htmlFor="inputGroupFile01">Choose file</label>
</div>
</div>
Expand All @@ -96,4 +96,4 @@ class InputForm extends Component {
}
}

export default InputForm
export default InputForm