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
4864060d
Commit
4864060d
authored
Jul 05, 2016
by
royce-matthew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added functionality for viewing all car logs
parent
eedbfdfd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
1 deletion
+37
-1
Gemfile.lock
parkinglot/Gemfile.lock
+8
-0
index.html.erb
parkinglot/app/views/carlogs/index.html.erb
+29
-1
No files found.
parkinglot/Gemfile.lock
View file @
4864060d
...
@@ -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
parkinglot/app/views/carlogs/index.html.erb
View file @
4864060d
<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:
<%=
car
.
color
=
%>
<br>
Created at:
<%=
car
.
created_at
=
%>
<br>
Time in:
<%=
car
.
time_in
=
%>
<br>
Time Out:
<%=
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
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