Skip to content

Commit

Permalink
Merge pull request #13 from tiito78/patch-2
Browse files Browse the repository at this point in the history
Updated styling from @tiito78
  • Loading branch information
jasbur authored Oct 26, 2017
2 parents 054633b + 9ecefcf commit 1ad6a77
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions index.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<div id="mainContent">
<h1>WiFi Setup</h1>
<div class="wifiIcon" /></div>
<%=form_tag("/main/save_credentials", method: "get") do%>
<ul>
<li><%=label_tag(:ssid, "Select your WiFi network")%></li>
<li class="wifiNetwork">
<select id="ssid" name="ap_info", class="wifiNetworkInputs">
<%for ap in @wifi_ap_hash do%>
<option value='<%=ap[:ssid]%>+<%=ap[:encryption_type]%>'><%=ap[:ssid]%></option>
<%end%>
</select>
</li>
<li><%=label_tag(:wifi_key, "Your Wifi password")%></li>
<li>
<%=password_field_tag(:wifi_key, nil, class: "wifiNetworkInputs")%>
</li>

<%=submit_tag("Connect!", class: "wifiConnectButton")%>
</ul>

<%end%>
<div class="reset">
<%=form_tag("/main/reset_all", method: "get") do%>
<%=submit_tag("RESET DEVICE")%>
</div>
<%end%>
</div>

0 comments on commit 1ad6a77

Please sign in to comment.