Skip to content

Commit

Permalink
Merge pull request #24 from aleeshaanthony/master
Browse files Browse the repository at this point in the history
added name & value
  • Loading branch information
bonniesimon authored Aug 8, 2020
2 parents 5e1f139 + a2dde4a commit 67db5dd
Showing 1 changed file with 7 additions and 7 deletions.
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

0 comments on commit 67db5dd

Please sign in to comment.