1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-04 00:18:01 +01:00

#12 Setup features in grid

This commit is contained in:
andsandv 2014-10-24 11:42:17 +02:00 committed by Ivar Conradi Østhus
parent f3efe6f629
commit d0a0ade138
2 changed files with 15 additions and 6 deletions

View File

@ -19,7 +19,7 @@
<a class="navbar-brand" href="#">Unleash</a> <a class="navbar-brand" href="#">Unleash</a>
</div> </div>
</nav> </nav>
<div class="container"> <div class="container-fluid">
<div id="content">Loading...</div> <div id="content">Loading...</div>
</div> </div>
<script type="text/jsx" src="js/unleash.jsx"></script> <script type="text/jsx" src="js/unleash.jsx"></script>

View File

@ -30,10 +30,19 @@ var SavedFeature = React.createClass({
render: function() { render: function() {
return ( return (
<div> <div className='row'>
<span title='{this.props.feature.description}'>{this.props.feature.name}</span> <span>
<span>{this.props.feature.strategy}</span> <input
<input type='checkbox' checked={this.props.feature.enabled} onChange={this.onChange} /> 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> </div>
); );
} }