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
8ef1528a
Commit
8ef1528a
authored
Jul 05, 2016
by
Alexander Hans Collado Jr.
Browse files
Options
Browse Files
Download
Plain Diff
polished design
parents
77ea637f
1bbd0c90
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
8 deletions
+9
-8
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
application.html.erb
parkinglot/app/views/layouts/application.html.erb
+2
-1
No files found.
parkinglot/app/controllers/car_logs_controller.rb
View file @
8ef1528a
...
...
@@ -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 @
8ef1528a
...
...
@@ -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 @
8ef1528a
...
...
@@ -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>
...
...
parkinglot/app/views/layouts/application.html.erb
View file @
8ef1528a
...
...
@@ -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
%>
...
...
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