Commit 8ef1528a authored by Alexander Hans Collado Jr.'s avatar Alexander Hans Collado Jr.

polished design

parents 77ea637f 1bbd0c90
...@@ -12,8 +12,8 @@ class CarLogsController < ApplicationController ...@@ -12,8 +12,8 @@ class CarLogsController < ApplicationController
x.plate_number = params[:plate_number] x.plate_number = params[:plate_number]
x.color = params[:color] x.color = params[:color]
x.brand = params[:brand] x.brand = params[:brand]
x.time_in = "#{params[:date_in]} #{params[:time_in]}" x.time_in = "#{params[:dates_in]} #{params[:times_in]}"
x.time_out = "#{params[:date_out]} #{params[:time_out]}" x.time_out = "#{params[:dates_out]} #{params[:times_out]}"
x.save x.save
redirect_to "/carlogs" redirect_to "/carlogs"
end end
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
<input class="platenumber" placeholder="plate number" name="plate_number"> <input class="platenumber" placeholder="plate number" name="plate_number">
<br> <br>
<label>Time In</label> <label>Time In</label>
<input type="date" name="date_in"> <input type="date" name="dates_in">
<input type="time" name="time_in"> <input type="time" name="times_in">
<br> <br>
<label>Time out</label> <label>Time out</label>
<input type="date" name="date_out"> <input type="date" name="dates_out">
<input type="time" name="time_out"> <input type="time" name="times_out">
<br> <br>
<div class="select"> <div class="select">
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<label>Created</label> <%=car.created_at=%> <label>Created</label> <%=car.created_at=%>
<br> <br>
<label>Time In</label><%=car.time_in=%> <label>Time In</label><%=car.time_in=%>
<label>Time Out</label><%=car.created_at=%> <label>Time Out</label><%=car.time_out=%>
</div> </div>
......
...@@ -5,11 +5,12 @@ ...@@ -5,11 +5,12 @@
<%= 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" href="http://s.mlcdn.co/animate.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link href='https://fonts.googleapis.com/css?family=Raleway:400,700' rel='stylesheet' type='text/css'> <link href='https://fonts.googleapis.com/css?family=Raleway:400,700' rel='stylesheet' type='text/css'>
</head> </head>
<body> <body class="animated fadeIn">
<%= yield %> <%= yield %>
......
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