Skip to content

Instantly share code, notes, and snippets.

Created May 8, 2015 17:17
Show Gist options
  • Save anonymous/a92aad44adbcd2fab0d1 to your computer and use it in GitHub Desktop.
Save anonymous/a92aad44adbcd2fab0d1 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>DC Calibrations</title>
</head>
<body>
<script src="welcome.js" type="text/javascript"></script>
<p><a href="/monitors" class="btn">All monitors</a></p>
<form method="GET" action="/calibrations" >
<label for="calibrations">Search Tag Number:</label>
<input name="tag" pattern=".\d{5}" title="Please enter 6 digit tag number">
<input type="submit" value="Submit" />
</form>
<div class="container">
<% if flash[:index_error] %>
<%= flash[:index_error] %>
<% end %>
<% if flash[:no_tag] %>
<%= flash[:no_tag] %> <a href="/monitors/new">Add Monitor</a>
<% end %>
</div>
<%= cal %>
<div class="container error">
<% @cal.errors.messages.each do |key, values| %>
<% values.each do |value| %>
<ul>
<li><%= "#{key.to_s} #{value}" %></li>
</ul>
<% end %>
<% end %>
</div>
</br>
</br>
</br>
<a class="twitter-timeline" href="https://twitter.com/HP" data-widget-id="596693797368561665">Tweets by @HP</a>
<script src="tweet.js" type="text/javascript"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment