@@ -57,27 +57,30 @@ class AddUser extends React.Component {
5757
5858 < div className = "box-body" >
5959 < h4 > Add user</ h4 >
60-
61- < form action = "" onSubmit = { this . createUser } >
62- < div className = "form-group" >
63- < label for = "username" > Username</ label >
64- < input ref = "username" type = "text" className = "form-control" id = "username" placeholder = "Enter username" />
65- </ div >
66- < div className = "form-group" >
67- < label for = "email" > Email address</ label >
68- < input ref = "email" type = "text" className = "form-control" id = "email" placeholder = "Enter email" />
69- </ div >
70- < div className = "form-group" >
71- < label for = "password" > Password</ label >
72- < input ref = "password" type = "password" className = "form-control" id = "password" placeholder = "Enter password" />
73- </ div >
74- < div className = "form-group" >
75- < label for = "password" > Password confirmation</ label >
76- < input ref = "passwordConfirm" type = "password" className = "form-control" id = "password" placeholder = "Enter password again" />
77- </ div >
78-
79- < button className = "btn btn-block btn-success" type = "submit" > < i className = "fa fa-plus fa-fw" > </ i > Add User</ button >
80- </ form >
60+ < div className = "row" >
61+ < div className = "col-md-4" >
62+ < form action = "" onSubmit = { this . createUser } >
63+ < div className = "form-group" >
64+ < label for = "username" > Username</ label >
65+ < input ref = "username" type = "text" className = "form-control" id = "username" placeholder = "Enter username" />
66+ </ div >
67+ < div className = "form-group" >
68+ < label for = "email" > Email address</ label >
69+ < input ref = "email" type = "text" className = "form-control" id = "email" placeholder = "Enter email" />
70+ </ div >
71+ < div className = "form-group" >
72+ < label for = "password" > Password</ label >
73+ < input ref = "password" type = "password" className = "form-control" id = "password" placeholder = "Enter password" />
74+ </ div >
75+ < div className = "form-group" >
76+ < label for = "password" > Password confirmation</ label >
77+ < input ref = "passwordConfirm" type = "password" className = "form-control" id = "password" placeholder = "Enter password again" />
78+ </ div >
79+
80+ < button className = "btn btn-block btn-success" type = "submit" > < i className = "fa fa-plus fa-fw" > </ i > Add User</ button >
81+ </ form >
82+ </ div >
83+ </ div >
8184 </ div >
8285 </ div >
8386
0 commit comments