Created
November 10, 2012 18:02
-
-
Save erichexter/4051951 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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