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
Kyle Nathan Fazonela
ParkingLot
Commits
a2e9f881
Commit
a2e9f881
authored
Jul 05, 2016
by
Jello Beasca
Browse files
Options
Browse Files
Download
Plain Diff
Hirap nito pre
parents
17394e35
b43d82f2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
3 deletions
+38
-3
car_logs_controller.rb
app/controllers/car_logs_controller.rb
+1
-0
car_log.rb
app/models/car_log.rb
+0
-2
add.html.erb
app/views/pages/add.html.erb
+37
-0
index.html.erb
app/views/pages/index.html.erb
+0
-1
No files found.
app/controllers/car_logs_controller.rb
View file @
a2e9f881
...
...
@@ -40,4 +40,5 @@ class CarLogsController < ApplicationController
# def carlog_params
# params.require(:carlog).permit!
# end
end
app/models/car_log.rb
View file @
a2e9f881
class
CarLog
<
ActiveRecord
::
Base
end
app/views/pages/add.html.erb
0 → 100644
View file @
a2e9f881
<h1>
Add Car Log
</h1>
<%=
form_for
(
@carlog
)
do
|
u
|
%>
<p>
<%=
u
.
label
:plate_number
%>
<%=
u
.
number_field
:plate_number
%>
</p>
<p>
<select
name =
"brand"
>
<option
value=
"A"
>
Toyota
</option>
<option
value=
"B"
>
Honda
</option>
<option
value=
"C"
>
Ford
</option>
</p>
<p>
<%=
u
.
label
:slot_number
%>
<%=
u
.
text_field
:slot_number
%>
</p>
<p>
<%=
u
.
label
:is_taken
%>
<%=
u
.
text_field
:is_taken
%>
</p>
<p>
<%=
u
.
label
:created_at
%>
<%=
u
.
text_field
:created_at
%>
</p>
<p>
<%=
u
.
label
:updated_at
%>
<%=
u
.
text_field
:updated_at
%>
</p>
<%=
u
.
submit
%>
<%
end
%>
<%=
link_to
'Back'
,
pages_path
%>
\ No newline at end of file
app/views/pages/index.html.erb
View file @
a2e9f881
...
...
@@ -14,7 +14,6 @@
<th>
Slot number
</th>
<th>
Taken
</th>
<th>
Created at
</th>
<th>
Updated at
</th>
<th></th>
</tr>
</thead>
...
...
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