Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
parkinglot
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
evilla_gomez_guian_principe
parkinglot
Commits
05973a71
Commit
05973a71
authored
Jul 05, 2016
by
Wills Gomez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed delete's cell color and other stuff
parent
b9a1b779
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
9 deletions
+24
-9
pages.css.scss
draft3/app/assets/stylesheets/pages.css.scss
+8
-1
car_logs_controller.rb
draft3/app/controllers/car_logs_controller.rb
+1
-1
create_page.html.erb
draft3/app/views/car_logs/create_page.html.erb
+5
-0
index.html.erb
draft3/app/views/car_logs/index.html.erb
+5
-2
about.html.erb
draft3/app/views/pages/about.html.erb
+5
-5
No files found.
draft3/app/assets/stylesheets/pages.css.scss
View file @
05973a71
...
...
@@ -2,4 +2,11 @@
.about-image
{
width
:
100%
;
}
}
\ No newline at end of file
}
td
:nth-child
(
8
)
{
background-color
:
white
;
border-color
:
white
;
}
draft3/app/controllers/car_logs_controller.rb
View file @
05973a71
...
...
@@ -4,7 +4,7 @@ class CarLogsController < ApplicationController
@records
=
CarLog
.
all
if
params
[
:q
].
present?
@records
=
CarLog
.
where
(
id
:
params
[
:q
])
@records
=
CarLog
.
where
(
plate_number
:
params
[
:q
])
end
render
"car_logs/index.html.erb"
...
...
draft3/app/views/car_logs/create_page.html.erb
View file @
05973a71
...
...
@@ -52,10 +52,15 @@
<option
value=
""
disabled=
"disabled"
selected=
"selected"
>
Select..
</option>
<option
value=
"Honda"
>
Honda
</option>
<option
value=
"Toyota"
>
Toyota
</option>
<option
value=
"Suzuki"
>
Chevrolet
</option>
<option
value=
"Mitsubishi"
>
Chevrolet
</option>
<option
value=
"Hyundai"
>
Chevrolet
</option>
<option
value=
"Ford"
>
Ford
</option>
<option
value=
"Chevrolet"
>
Chevrolet
</option>
<option
value=
"Lexus"
>
Chevrolet
</option>
<option
value=
"Audi"
>
Audi
</option>
<option
value=
"Porsche"
>
Porsche
</option>
<option
value=
"Other Car"
>
Chevrolet
</option>
</select>
</div>
</div>
...
...
draft3/app/views/car_logs/index.html.erb
View file @
05973a71
...
...
@@ -4,12 +4,14 @@
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<center>
<h1>
Car Log Records
</h1>
<br>
<%=
form_tag
(
"/car_logs"
,
method:
"get"
)
do
%>
<input
type=
"text"
name=
"q"
>
<input
type=
"submit"
value=
"Search"
>
</center>
<%
end
%>
<hr>
...
...
@@ -24,6 +26,7 @@
<th>
Time In
</th>
<th>
Time Out
</th>
<th>
Log Created at
</th>
<th>
</th>
</tr>
</thead>
...
...
@@ -37,7 +40,7 @@
<td>
<%=
record
.
time_in
%>
</td>
<td>
<%=
record
.
time_out
%>
</td>
<td>
<%=
record
.
created_at
%>
</td>
<td><a
class=
"btn btn-danger"
href=
"car_logs/delete/
<%=
record
.
id
%>
"
role =
"button"
>
Delete
</a></td>
<td><a
class=
"btn btn-danger"
href=
"car_logs/delete/
<%=
record
.
id
%>
"
role =
"button"
background:
none
>
Delete
</a></td>
</tr>
<%
end
%>
...
...
draft3/app/views/pages/about.html.erb
View file @
05973a71
...
...
@@ -4,11 +4,11 @@
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-md-7"
>
<h1
class=
"heading"
>
About
U
s
</h1>
<h3>
Evilla, Galen
</h3>
<h3>
Gomez, Feliz Marie
</h3>
<h3>
Guian, April
</h5>
<h3>
Principe, Jasmine
</h3>
<h1
class=
"heading"
>
About
The Developer
s
</h1>
<h3>
Evilla, Galen
Solo E.
</h3>
<h3>
Gomez, Feliz Marie
B.
</h3>
<h3>
Guian, April
D.
</h5>
<h3>
Principe, Jasmine
Nicole G.
</h3>
<hr>
<div
class=
"row"
>
...
...
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