Skip to content

Commit fe2a1c7

Browse files
committed
added columns to adduser form
1 parent 048d688 commit fe2a1c7

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

ui/App/components/Saves/SavesList.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ class SavesList extends React.Component {
4040

4141
render() {
4242
var savesList;
43-
console.log(this.props.saves);
4443
if (this.props.saves.length === 0) {
4544
savesList = <tr></tr>
4645
} else {

ui/App/components/Users/AddUser.jsx

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)