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
Anferny Vanta
parkinglot
Commits
2a60a5c5
Commit
2a60a5c5
authored
Jul 05, 2016
by
Mia Lim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
3bf72133
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
77 additions
and
7 deletions
+77
-7
car_logs.scss
app/assets/stylesheets/car_logs.scss
+4
-0
index.html.erb
app/views/car_logs/index.html.erb
+29
-2
new.html.erb
app/views/car_logs/new.html.erb
+22
-2
index.html.erb
app/views/pages/index.html.erb
+22
-3
No files found.
app/assets/stylesheets/car_logs.scss
View file @
2a60a5c5
// Place all the styles related to the Car_logs controller here.
// Place all the styles related to the Car_logs controller here.
// They will automatically be included in application.css.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
// You can use Sass (SCSS) here: http://sass-lang.com/
Copy
<
button
type
=
"button"
class
=
"btn btn-default"
aria-label
=
"Left Align"
>
<
span
class
=
"glyphicon glyphicon-align-left"
aria-hidden
=
"true"
></
span
>
</
button
>
\ No newline at end of file
app/views/car_logs/index.html.erb
View file @
2a60a5c5
<
<%=
link_to
"Home"
,
root_path
%>
<nav
class=
"navbar navbar-default"
>
<%=
link_to
"Create New Records"
,
newcar_path
%>
<div
class=
"container-fluid"
>
<!-- Brand and toggle get grouped for better mobile display -->
<div
class=
"navbar-header"
>
<button
type=
"button"
class=
"navbar-toggle collapsed"
data-toggle=
"collapse"
data-target=
"#bs-example-navbar-collapse-1"
aria-expanded=
"false"
>
<span
class=
"sr-only"
>
Toggle navigation
</span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
</button>
<a
class=
"navbar-brand"
>
Car Log - App
</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div
class=
"collapse navbar-collapse"
id=
"bs-example-navbar-collapse-1"
>
<ul
class=
"nav navbar-nav"
>
<li
class=
"active"
>
<%=
link_to
"Car Log - Records"
,
records_path
%>
<span
class=
"sr-only"
>
(current)
</span></a></li>
<li>
<%=
link_to
"Create New Records"
,
newcar_path
%>
</a></li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
<h1>
Records of cars
</h1>
<h1>
Records of cars
</h1>
<table
class=
"table"
>
<table
class=
"table"
>
...
@@ -15,4 +35,11 @@
...
@@ -15,4 +35,11 @@
</tr>
</tr>
<%
end
%>
<%
end
%>
</table>
</table>
<nav>
<ul
class=
"pagination"
>
<li
class=
"disabled"
><a
href=
"#"
aria-label=
"Previous"
><span
aria-hidden=
"true"
>
«
</span></a></li>
<li
class=
"active"
><a
href=
"#"
>
1
<span
class=
"sr-only"
>
(current)
</span></a></li>
...
</ul>
</nav>
app/views/car_logs/new.html.erb
View file @
2a60a5c5
<%=
link_to
"Home"
,
root_path
%>
<nav
class=
"navbar navbar-default"
>
<%=
link_to
"Car Log - Records"
,
records_path
%>
<div
class=
"container-fluid"
>
<!-- Brand and toggle get grouped for better mobile display -->
<div
class=
"navbar-header"
>
<button
type=
"button"
class=
"navbar-toggle collapsed"
data-toggle=
"collapse"
data-target=
"#bs-example-navbar-collapse-1"
aria-expanded=
"false"
>
<span
class=
"sr-only"
>
Toggle navigation
</span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
</button>
<a
class=
"navbar-brand"
>
Car Log - App
</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div
class=
"collapse navbar-collapse"
id=
"bs-example-navbar-collapse-1"
>
<ul
class=
"nav navbar-nav"
>
<li
class=
"active"
>
<%=
link_to
"Car Log - Records"
,
records_path
%>
<span
class=
"sr-only"
>
(current)
</span></a></li>
<li>
<%=
link_to
"Create New Records"
,
newcar_path
%>
</a></li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
<h1>
Create New Car
</h1>
<h1>
Create New Car
</h1>
<%=
form_tag
"/carlogs/create"
do
%>
<%=
form_tag
"/carlogs/create"
do
%>
...
...
app/views/pages/index.html.erb
View file @
2a60a5c5
<h1>
Car Log - App
</h1>
<nav
class=
"navbar navbar-default"
>
<%=
link_to
"Car Log - Records"
,
records_path
%>
<div
class=
"container-fluid"
>
<%=
link_to
"Create New Records"
,
newcar_path
%>
<!-- Brand and toggle get grouped for better mobile display -->
<div
class=
"navbar-header"
>
<button
type=
"button"
class=
"navbar-toggle collapsed"
data-toggle=
"collapse"
data-target=
"#bs-example-navbar-collapse-1"
aria-expanded=
"false"
>
<span
class=
"sr-only"
>
Toggle navigation
</span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
</button>
<a
class=
"navbar-brand"
>
Car Log - App
</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div
class=
"collapse navbar-collapse"
id=
"bs-example-navbar-collapse-1"
>
<ul
class=
"nav navbar-nav"
>
<li
class=
"active"
>
<%=
link_to
"Car Log - Records"
,
records_path
%>
<span
class=
"sr-only"
>
(current)
</span></a></li>
<li>
<%=
link_to
"Create New Records"
,
newcar_path
%>
</a></li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
\ 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