Commit 05973a71 authored by Wills Gomez's avatar Wills Gomez

fixed delete's cell color and other stuff

parent b9a1b779
......@@ -2,4 +2,11 @@
.about-image {
width: 100%;
}
}
\ No newline at end of file
}
td:nth-child(8) {
background-color: white;
border-color: white; }
......@@ -4,7 +4,7 @@ class CarLogsController < ApplicationController
@records = CarLog.all
if params[:q].present?
@records = CarLog.where(id: params[:q])
@records = CarLog.where(plate_number: params[:q])
end
render "car_logs/index.html.erb"
......
......@@ -52,10 +52,15 @@
<option value="" disabled="disabled" selected="selected">Select..</option>
<option value="Honda">Honda</option>
<option value="Toyota">Toyota</option>
<option value="Suzuki">Chevrolet</option>
<option value="Mitsubishi">Chevrolet</option>
<option value="Hyundai">Chevrolet</option>
<option value="Ford">Ford</option>
<option value="Chevrolet">Chevrolet</option>
<option value="Lexus">Chevrolet</option>
<option value="Audi">Audi</option>
<option value="Porsche">Porsche</option>
<option value="Other Car">Chevrolet</option>
</select>
</div>
</div>
......
......@@ -4,12 +4,14 @@
<div class="container">
<div class="row">
<div class="col-md-12">
<center>
<h1>Car Log Records</h1>
<br>
<%= form_tag("/car_logs", method: "get") do %>
<input type="text" name="q">
<input type="submit" value="Search">
</center>
<% end %>
<hr>
......@@ -24,6 +26,7 @@
<th> Time In </th>
<th> Time Out </th>
<th> Log Created at</th>
<th> </th>
</tr>
</thead>
......@@ -37,7 +40,7 @@
<td><%= record.time_in %></td>
<td><%= record.time_out %></td>
<td><%= record.created_at %></td>
<td><a class="btn btn-danger" href="car_logs/delete/<%= record.id %>" role ="button">Delete</a></td>
<td><a class="btn btn-danger" href="car_logs/delete/<%= record.id %>" role ="button" background: none>Delete</a></td>
</tr>
<% end %>
......
......@@ -4,11 +4,11 @@
<div class="container">
<div class="row">
<div class="col-md-7">
<h1 class="heading">About Us</h1>
<h3>Evilla, Galen</h3>
<h3>Gomez, Feliz Marie</h3>
<h3>Guian, April</h5>
<h3>Principe, Jasmine</h3>
<h1 class="heading">About The Developers</h1>
<h3>Evilla, Galen Solo E.</h3>
<h3>Gomez, Feliz Marie B.</h3>
<h3>Guian, April D.</h5>
<h3>Principe, Jasmine Nicole G.</h3>
<hr>
<div class="row">
......
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