Commit 4864060d authored by royce-matthew's avatar royce-matthew

added functionality for viewing all car logs

parent eedbfdfd
...@@ -73,6 +73,9 @@ GEM ...@@ -73,6 +73,9 @@ GEM
mini_portile2 (2.1.0) mini_portile2 (2.1.0)
minitest (5.9.0) minitest (5.9.0)
multi_json (1.12.1) multi_json (1.12.1)
nokogiri (1.6.8)
mini_portile2 (~> 2.1.0)
pkg-config (~> 1.1.7)
nokogiri (1.6.8-x86-mingw32) nokogiri (1.6.8-x86-mingw32)
mini_portile2 (~> 2.1.0) mini_portile2 (~> 2.1.0)
pkg-config (~> 1.1.7) pkg-config (~> 1.1.7)
...@@ -124,6 +127,7 @@ GEM ...@@ -124,6 +127,7 @@ GEM
actionpack (>= 4.0) actionpack (>= 4.0)
activesupport (>= 4.0) activesupport (>= 4.0)
sprockets (>= 3.0.0) sprockets (>= 3.0.0)
sqlite3 (1.3.11)
sqlite3 (1.3.11-x86-mingw32) sqlite3 (1.3.11-x86-mingw32)
thor (0.19.1) thor (0.19.1)
thread_safe (0.3.5) thread_safe (0.3.5)
...@@ -144,6 +148,7 @@ GEM ...@@ -144,6 +148,7 @@ GEM
sprockets-rails (>= 2.0, < 4.0) sprockets-rails (>= 2.0, < 4.0)
PLATFORMS PLATFORMS
ruby
x86-mingw32 x86-mingw32
DEPENDENCIES DEPENDENCIES
...@@ -159,3 +164,6 @@ DEPENDENCIES ...@@ -159,3 +164,6 @@ DEPENDENCIES
tzinfo-data tzinfo-data
uglifier (>= 1.3.0) uglifier (>= 1.3.0)
web-console (~> 2.0) web-console (~> 2.0)
BUNDLED WITH
1.10.6
<h1>Hello Carlogs</h1> <div style="margin:0px; padding:0px; height:100vh; width:100vw; background:white; background-size:cover; position:absolute;overflow:scroll;">
\ No newline at end of file <div style="padding:20px; margin:20px; border:solid 1px; background-color:rgba(20,20,20,0.9); color:rgba(255,255,255,0.8)">
<center>
<div style="font-size:70px; color:rgba(255,255,255,0.8)">
Park <div style="display:inline; color:black; background:#fe9900; border-radius:5px; font-size:70px; padding:1px 5px;">hub</div>
</div>
<br>
<a href="/carlogs/new" style="color:rgba(255,255,255,0.6)">Add new Log</a>
</center>
<hr>
<% @cars.each do |car|%>
<div style="display:inline-block; border: solid 1px; padding:20px; margin:10px;">
Plate Number: <%=car.plate_number=%>
<br>
Color: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=car.color=%>
<br>
Created at: <%=car.created_at=%>
<br>
Time in: &nbsp; &nbsp;&nbsp;&nbsp;<%=car.time_in=%>
<br>
Time Out: &nbsp;&nbsp;<%=car.created_at=%>
<br>
<a href="/carlogs/delete/<%=car.id=%>" style="color:rgba(255,255,255,0.6)">Delete</a>
</div>
<%end%>
</div>
</div>
\ No newline at end of file
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