<% content_for :header do %>

Door Control System

<% end %> <% if @output %>

<%= raw @output %>


<% end %> <%= form_tag do %> <% unless user_signed_in? %>

<%= label_tag :user, "Email Address" %>
<%= text_field_tag :user %>

<%= label_tag :pass, "Password" %>
<%= password_field_tag :pass %>

<% end %>
Both
<%= button_tag "Unlock", {name: "cmd", value: "unlock", class: "btn unlock"} %> <%= button_tag "Lock", {name: "cmd", value: "lock", class: "btn lock"} %>
Front Door
<%= button_tag "Open", {name: "cmd", value: "open-front", class: "btn unlock"} %> <%= button_tag "Unlock", {name: "cmd", value: "unlock-front", class: "btn unlock"} %> <%= button_tag "Lock", {name: "cmd", value: "lock-front", class: "btn lock"} %>
Rear Door
<%= button_tag "Open", {name: "cmd", value: "open-rear", class: "btn unlock"} %> <%= button_tag "Unlock", {name: "cmd", value: "unlock-rear", class: "btn unlock"} %> <%= button_tag "Lock", {name: "cmd", value: "lock-rear", class: "btn lock"} %>

Green = open, Red = locked.

<% end %>