added columns to adduser form

This commit is contained in:
majormjr 2016-05-10 21:29:09 -04:00
parent 048d68877b
commit fe2a1c7464
2 changed files with 24 additions and 22 deletions

View File

@ -40,7 +40,6 @@ class SavesList extends React.Component {
render() {
var savesList;
console.log(this.props.saves);
if (this.props.saves.length === 0) {
savesList = <tr></tr>
} else {

View File

@ -57,27 +57,30 @@ class AddUser extends React.Component {
<div className="box-body">
<h4>Add user</h4>
<form action="" onSubmit={this.createUser}>
<div className="form-group">
<label for="username">Username</label>
<input ref="username" type="text" className="form-control" id="username" placeholder="Enter username" />
</div>
<div className="form-group">
<label for="email">Email address</label>
<input ref="email" type="text" className="form-control" id="email" placeholder="Enter email" />
</div>
<div className="form-group">
<label for="password">Password</label>
<input ref="password" type="password" className="form-control" id="password" placeholder="Enter password" />
</div>
<div className="form-group">
<label for="password">Password confirmation</label>
<input ref="passwordConfirm" type="password" className="form-control" id="password" placeholder="Enter password again" />
</div>
<button className="btn btn-block btn-success" type="submit"><i className="fa fa-plus fa-fw"></i>Add User</button>
</form>
<div className="row">
<div className="col-md-4">
<form action="" onSubmit={this.createUser}>
<div className="form-group">
<label for="username">Username</label>
<input ref="username" type="text" className="form-control" id="username" placeholder="Enter username" />
</div>
<div className="form-group">
<label for="email">Email address</label>
<input ref="email" type="text" className="form-control" id="email" placeholder="Enter email" />
</div>
<div className="form-group">
<label for="password">Password</label>
<input ref="password" type="password" className="form-control" id="password" placeholder="Enter password" />
</div>
<div className="form-group">
<label for="password">Password confirmation</label>
<input ref="passwordConfirm" type="password" className="form-control" id="password" placeholder="Enter password again" />
</div>
<button className="btn btn-block btn-success" type="submit"><i className="fa fa-plus fa-fw"></i>Add User</button>
</form>
</div>
</div>
</div>
</div>