Commit ab36fe82 authored by zakMSIpanic's avatar zakMSIpanic

Avery

parent 64f50994
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -6,6 +6,10 @@ ...@@ -6,6 +6,10 @@
<select name="color"> <select name="color">
<option value="White">White</option> <option value="White">White</option>
<option value="Black">Black</option> <option value="Black">Black</option>
<option value="Silver">Silver</option>
<option value="Red">Red</option>
<option value="Blue">Blue</option>
<option value="Yellow">Yellow</option>
</select><br> </select><br>
<select name="brand"> <select name="brand">
<option value="Honda">Honda</option> <option value="Honda">Honda</option>
...@@ -20,5 +24,5 @@ ...@@ -20,5 +24,5 @@
<input type="submit" class="submit" value="SAVE"/> <input type="submit" class="submit" value="SAVE"/>
<% end %><br> <% end %><br>
<a href="/">back to home</a> <a href="/">Back to Home</a>
<a class="button" href="/cars">go to parking lot</a> <a class="button" href="/logs">Go to Parking Lot</a>
\ No newline at end of file \ No newline at end of file
...@@ -5,9 +5,18 @@ ...@@ -5,9 +5,18 @@
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %> <%= csrf_meta_tags %>
<link rel="stylesheet" type="text/css" href="app/assets/stylesheets/bootstrap.css">
</head> </head>
<body> <body>
<style>
body {
margin: 50px;
}
.button:hover {
border: 2px solid;
}
</style>
<%= yield %> <%= yield %>
</body> </body>
......
<h1>car logs</h1> <h1>Car Logs</h1><br>
<a href="/">Back to Home</a>
<a href="/add">Add Car</a>
<ul> <ul>
<% @CarLogs.each do |car| %> <% @CarLogs.each do |car| %>
<div class="col-md-3 well">
<li> <li>
<%= "#{car.plate_number}" %><br> <%= "#{car.plate_number}" %><br>
<%= "#{car.time_in}" %><br> <%= "#{car.time_in}" %><br>
<%= "#{car.time_out}" %><br> <%= "#{car.time_out}" %><br>
<%= "#{car.color}" %><br> <%= "#{car.color}" %><br>
<%= "#{car.brand}" %><br> <%= "#{car.brand}" %><br>
<a href="/logs/delete/<%= car.id%>">delete</a> <a href="/logs/delete/<%= car.id%>">Delete</a>
</li><br> </li>
</div>
<% end %> <% end %>
</ul> </ul>
<a href="/">Back to Home</a>
<a href="/add">Add Car</a>
<h1>The Parking Lot</h1> <center>
<a class="button" href="/members">view group members</a> <h1>You Park</h1>
<a class="button" href="/logs">go to parking lot</a> <a class="button" href="/members">View Group Members</a>
<a class="button" href="/logs">Go to Parking Lot</a>
</center>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment