Files
old-spike/client/dashboard/power/power.rt

27 lines
817 B
Plaintext
Raw Normal View History

2016-02-13 16:49:32 -06:00
<div id="power_view">
2016-02-15 11:38:41 -06:00
<div class="alert alert-warning" rt-if="this.state.loading_data">
Retrieving power data for the {this.props.house.name} household...
</div>
2016-02-21 18:40:55 -06:00
<h4>Select dates:</h4>
<div id="power_date_setter"></div>
2016-02-15 16:09:40 -06:00
<table rt-if="this.props.view === 'table'" class="table">
2016-02-13 16:49:32 -06:00
<thead>
<tr>
<th></th>
<th>Time</th>
<th>Consumption (W)</th>
<th>Production (W)</th>
</tr>
</thead>
<tbody>
2016-02-21 18:40:55 -06:00
<tr rt-repeat="power_datum in this.props.house.power_data" key="{power_datum.scoped_id}">
2016-02-13 16:49:32 -06:00
<td></td>
<td>{power_datum.time_to_s}</td>
<td>{power_datum.consumption_to_s}</td>
<td>{power_datum.production_to_s}</td>
</tr>
</tbody>
</table>
2016-02-15 16:09:40 -06:00
<div rt-if="this.props.view === 'graph'" id="power_graph"></div>
2016-02-13 16:49:32 -06:00
</div>