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

fixed delete's cell color and other stuff

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