Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
Datababes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
George Nicole Balmaceda
Datababes
Commits
aef81999
Commit
aef81999
authored
Jul 05, 2016
by
royce-matthew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix Time Out displaying created at solved
parent
f381f621
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
car_logs_controller.rb
parkinglot/app/controllers/car_logs_controller.rb
+2
-2
form.html.erb
parkinglot/app/views/carlogs/form.html.erb
+4
-4
index.html.erb
parkinglot/app/views/carlogs/index.html.erb
+1
-1
No files found.
parkinglot/app/controllers/car_logs_controller.rb
View file @
aef81999
...
...
@@ -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
[
:date
s_in
]
}
#{
params
[
:times
_in
]
}
"
x
.
time_out
=
"
#{
params
[
:date
s_out
]
}
#{
params
[
:times
_out
]
}
"
x
.
save
redirect_to
"/carlogs"
end
...
...
parkinglot/app/views/carlogs/form.html.erb
View file @
aef81999
...
...
@@ -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=
"date
s
_in"
>
<input
type=
"time"
name=
"time
s
_in"
>
<br>
<label>
Time out
</label>
<input
type=
"date"
name=
"date_out"
>
<input
type=
"time"
name=
"time_out"
>
<input
type=
"date"
name=
"date
s
_out"
>
<input
type=
"time"
name=
"time
s
_out"
>
<br>
<div
class=
"select"
>
...
...
parkinglot/app/views/carlogs/index.html.erb
View file @
aef81999
...
...
@@ -28,7 +28,7 @@
<label>
Created
</label>
<%=
car
.
created_at
=
%>
<br>
<label>
Time In
</label>
<%=
car
.
time_in
=
%>
<label>
Time Out
</label>
<%=
car
.
created_a
t
=
%>
<label>
Time Out
</label>
<%=
car
.
time_ou
t
=
%>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment