2016-02-22 14:36:07 -06:00
|
|
|
<div id="energy_view">
|
2016-02-29 18:20:00 -06:00
|
|
|
<div class="alert alert-warning" rt-if="this.state.loading_energy_data">
|
|
|
|
|
Retrieving energy data...
|
2016-02-22 14:36:07 -06:00
|
|
|
</div>
|
|
|
|
|
<div rt-if="this.props.view === 'graph'">
|
|
|
|
|
<h4>Select Data</h4>
|
|
|
|
|
<div class="btn-group" role="group">
|
|
|
|
|
<button
|
2016-02-29 18:20:00 -06:00
|
|
|
data-param="graph_attr"
|
2016-02-22 14:36:07 -06:00
|
|
|
data-value="consumption"
|
|
|
|
|
rt-class="{active: this.state.graph_attr === 'consumption'}"
|
2016-02-29 18:20:00 -06:00
|
|
|
onClick="{this.setAttr}"
|
2016-02-22 14:36:07 -06:00
|
|
|
type="button" class="btn btn-primary">Consumption</button>
|
|
|
|
|
<button
|
2016-02-29 18:20:00 -06:00
|
|
|
data-param="graph_attr"
|
2016-02-22 14:36:07 -06:00
|
|
|
data-value="production"
|
|
|
|
|
rt-class="{active: this.state.graph_attr === 'production'}"
|
|
|
|
|
onClick="{this.setGraphAttr}"
|
|
|
|
|
type="button" class="btn btn-primary">Production</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-02-29 18:20:00 -06:00
|
|
|
{this.props.children}
|
2016-02-22 14:36:07 -06:00
|
|
|
</div>
|