Skip to content

Instantly share code, notes, and snippets.

@erichexter
Created November 10, 2012 18:02
Show Gist options
  • Save erichexter/4051951 to your computer and use it in GitHub Desktop.
Save erichexter/4051951 to your computer and use it in GitHub Desktop.
@using UI.Controllers
@using UI.Models
@model UI.Controllers.HomeViewModel
@{
ViewBag.Title = "Lighting";
}
<h2>Hexter's</h2>
<div id="heartbeat" data-bind="text: Heartbeat"></div>
<div class="ui-grid-a">
<div class="ui-block-a">
<div class="ui-body ui-body-a">
@foreach (Scene scene in Model.Scenes)
{
<div data-role="fieldcontain" >
<input type="button" class="scenebutton" value="@scene.DisplayName" data-x10="@scene.Value"/>
</div>
}
</div>
</div>
<div class="ui-block-b">
<div class="ui-body ui-body-a" data-bind="foreach: Devices">
<div data-role="fieldcontain" >
<label data-bind="text:DisplayName"></label>
<select data-role="none" data-bind="value: State , attr: {name : DisplayName , 'data-x10' : Address}" >
<option value="off">Off</option>
<option value="on" >On</option>
</select>
</div>
</div>
</div>
</div>
<div id="messages" data-bind="text:Message"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment