2016-02-22 14:36:07 -06:00
|
|
|
<div id="power_view">
|
|
|
|
|
<div class="btn-group">
|
|
|
|
|
<button
|
2016-02-29 18:20:00 -06:00
|
|
|
rt-if="this.context.house"
|
|
|
|
|
rt-repeat="month in this.context.house.availableMonths()"
|
|
|
|
|
data-param="month"
|
2016-02-22 14:36:07 -06:00
|
|
|
data-value="{month}"
|
|
|
|
|
key="data-month-{month}"
|
|
|
|
|
class="btn-warning btn btn-sm"
|
2016-02-29 18:20:00 -06:00
|
|
|
rt-class="{active: month === this.context.house.state.month}"
|
|
|
|
|
onClick="{this.setParam.bind(this)}">{month}</button>
|
2016-02-22 14:36:07 -06:00
|
|
|
</div>
|
2016-02-29 18:20:00 -06:00
|
|
|
<div class="alert alert-warning" rt-if="this.state.loading_power_data">
|
|
|
|
|
Retrieving power data...
|
2016-02-22 14:36:07 -06:00
|
|
|
</div>
|
|
|
|
|
<div id="power_date_setter"></div>
|
2016-02-29 18:20:00 -06:00
|
|
|
{this.props.children}
|
2016-02-22 14:36:07 -06:00
|
|
|
</div>
|