Skip to content

Commit

Permalink
#12 Setup features in grid
Browse files Browse the repository at this point in the history
  • Loading branch information
andsandv authored and ivarconr committed Feb 20, 2020
1 parent 6d35a4e commit 1151ac5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion unleash-server/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<a class="navbar-brand" href="#">Unleash</a>
</div>
</nav>
<div class="container">
<div class="container-fluid">
<div id="content">Loading...</div>
</div>
<script type="text/jsx" src="js/unleash.jsx"></script>
Expand Down
19 changes: 14 additions & 5 deletions unleash-server/public/js/unleash.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,19 @@ var SavedFeature = React.createClass({

render: function() {
return (
<div>
<span title='{this.props.feature.description}'>{this.props.feature.name}</span>
<span>{this.props.feature.strategy}</span>
<input type='checkbox' checked={this.props.feature.enabled} onChange={this.onChange} />
<div className='row'>
<span>
<input
className='pull-left'
type='checkbox'
checked={this.props.feature.enabled}
onChange={this.onChange} />
</span>
<span
className='col-xs-4 col-sm-4 col-md-4 col-lg-4'
title='{this.props.feature.description}'>{this.props.feature.name}
</span>
<span className='col-xs-4 col-sm-4 col-md-4 col-lg-4'>{this.props.feature.strategy}</span>
</div>
);
}
Expand Down Expand Up @@ -64,7 +73,7 @@ var FeatureList = React.createClass({
<button type="button" className="btn btn-success btn-sm">
<span className="glyphicon glyphicon-plus"></span> New
</button>
</div>
</div>
</div>

<div className='panel-body'>
Expand Down

0 comments on commit 1151ac5

Please sign in to comment.