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
x.plate_number = params[:plate_number]
x.color = params[:color]
x.brand = params[:brand]
x.time_in = "#{params[:date_in]} #{params[:time_in]}"
x.time_out = "#{params[:date_out]} #{params[:time_out]}"
x.time_in = "#{params[:dates_in]} #{params[:times_in]}"
x.time_out = "#{params[:dates_out]} #{params[:times_out]}"
x.save
redirect_to "/carlogs"
end
......
......@@ -6,12 +6,12 @@
<input class="platenumber" placeholder="plate number" name="plate_number">
<br>
<label>Time In</label>
<input type="date" name="date_in">
<input type="time" name="time_in">
<input type="date" name="dates_in">
<input type="time" name="times_in">
<br>
<label>Time out</label>
<input type="date" name="date_out">
<input type="time" name="time_out">
<input type="date" name="dates_out">
<input type="time" name="times_out">
<br>
<div class="select">
......
......@@ -28,7 +28,7 @@
<label>Created</label> <%=car.created_at=%>
<br>
<label>Time In</label><%=car.time_in=%>
<label>Time Out</label><%=car.created_at=%>
<label>Time Out</label><%=car.time_out=%>
</div>
......
......@@ -5,11 +5,12 @@
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= 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 href='https://fonts.googleapis.com/css?family=Raleway:400,700' rel='stylesheet' type='text/css'>
</head>
<body>
<body class="animated fadeIn">
<%= 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