Created
May 8, 2015 17:17
-
-
Save anonymous/a92aad44adbcd2fab0d1 to your computer and use it in GitHub Desktop.
This file contains 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
<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