Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
thegoodplace
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirby Ezekiel Santos
thegoodplace
Commits
eb35fbe2
Commit
eb35fbe2
authored
Mar 18, 2020
by
Kirby Ezekiel Santos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the orders list page
parent
336fc556
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
2 deletions
+51
-2
urls.py
froyo/urls.py
+3
-1
views.py
froyo/views.py
+3
-0
home_page.html
templates/home_page.html
+1
-1
orders_list.html
templates/orders_list.html
+44
-0
No files found.
froyo/urls.py
View file @
eb35fbe2
...
...
@@ -9,6 +9,7 @@ from .views import RecipesListView
from
.views
import
RecipesDetailView
from
.views
import
RecipesUpdateView
from
.views
import
RecipesCreateView
from
.views
import
OrdersListView
urlpatterns
=
[
path
(
''
,
HomePageView
.
as_view
()),
...
...
@@ -19,5 +20,6 @@ urlpatterns = [
path
(
'recipes-list'
,
RecipesListView
.
as_view
()),
path
(
'recipes-detail'
,
RecipesDetailView
.
as_view
()),
path
(
'recipes-update'
,
RecipesUpdateView
.
as_view
()),
path
(
'recipes-create'
,
RecipesCreateView
.
as_view
())
path
(
'recipes-create'
,
RecipesCreateView
.
as_view
()),
path
(
'orders-list'
,
OrdersListView
.
as_view
())
]
froyo/views.py
View file @
eb35fbe2
...
...
@@ -26,3 +26,6 @@ class RecipesUpdateView(TemplateView):
class
RecipesCreateView
(
TemplateView
):
template_name
=
"recipes_create_form.html"
class
OrdersListView
(
TemplateView
):
template_name
=
"orders_list.html"
templates/home_page.html
View file @
eb35fbe2
...
...
@@ -25,7 +25,7 @@
<div>
<h2
id=
"home_page_orders"
>
Orders
</h2>
<form>
<form
method=
"get"
action=
"http://localhost:8000/orders-list"
>
<button
type=
"submit"
id=
"button_to_orders"
>
Check current orders
</button>
</form>
</div>
...
...
templates/orders_list.html
0 → 100644
View file @
eb35fbe2
<!DOCTYPE html>
<html>
<head>
<title>
Orders - List
</title>
</head>
<body>
<div>
<h1
id=
"page_header"
>
Orders - List
</h1>
</div>
<div>
<table
class=
"table"
>
<thead>
<tr>
<th>
Order Slips
</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td>
<form>
<button
type=
"submit"
id=
"button_to_orders_detail"
>
Go to detail
</button>
</form>
</td>
</tr>
</tbody>
</table>
</div>
<div>
<form>
<button
type=
"submit"
id=
"button_to_orders_create"
>
Create New Order
</button>
</form>
</div>
<div>
<form
method=
"get"
action=
"http://localhost:8000"
>
<button
type=
"submit"
id=
"back_button"
>
Back to Home
</button>
</form>
</div>
</body>
</html>
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