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
2ccfd41b
Commit
2ccfd41b
authored
Mar 18, 2020
by
Kirby Ezekiel Santos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the orders detail page
parent
5a4ab86e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
55 additions
and
2 deletions
+55
-2
urls.py
froyo/urls.py
+6
-1
views.py
froyo/views.py
+3
-0
orders_detail.html
templates/orders_detail.html
+45
-0
orders_list.html
templates/orders_list.html
+1
-1
No files found.
froyo/urls.py
View file @
2ccfd41b
from
django.urls
import
path
from
.views
import
HomePageView
from
.views
import
IngredientsListView
from
.views
import
IngredientsDetailView
from
.views
import
IngredientsUpdateView
from
.views
import
IngredientsCreateView
from
.views
import
RecipesListView
from
.views
import
RecipesDetailView
from
.views
import
RecipesUpdateView
from
.views
import
RecipesCreateView
from
.views
import
OrdersListView
from
.views
import
OrdersDetailView
urlpatterns
=
[
path
(
''
,
HomePageView
.
as_view
()),
...
...
@@ -21,5 +25,6 @@ urlpatterns = [
path
(
'recipes-detail'
,
RecipesDetailView
.
as_view
()),
path
(
'recipes-update'
,
RecipesUpdateView
.
as_view
()),
path
(
'recipes-create'
,
RecipesCreateView
.
as_view
()),
path
(
'orders-list'
,
OrdersListView
.
as_view
())
path
(
'orders-list'
,
OrdersListView
.
as_view
()),
path
(
'orders-detail'
,
OrdersDetailView
.
as_view
())
]
froyo/views.py
View file @
2ccfd41b
...
...
@@ -29,3 +29,6 @@ class RecipesCreateView(TemplateView):
class
OrdersListView
(
TemplateView
):
template_name
=
"orders_list.html"
class
OrdersDetailView
(
TemplateView
):
template_name
=
"orders_detail.html"
templates/orders_detail.html
0 → 100644
View file @
2ccfd41b
<!DOCTYPE html>
<html>
<head>
<title>
Orders - Detail
</title>
</head>
<body>
<div>
<h1
id=
"page_header"
>
Orders - Detail
</h1>
</div>
<div>
<table
class=
"table"
>
<thead>
<tr>
<th>
Customer
</th>
<th>
Size
</th>
<th>
Base Recipe
</th>
<th>
Customization
</th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</div>
<div>
<form>
<button
type=
"submit"
id=
"button_to_orders_update"
>
Update Fields
</button>
</form>
</div>
<div>
<form
method=
"get"
action=
"http://localhost:8000/orders-list"
>
<button
type=
"submit"
id=
"back_button"
>
Back to List
</button>
</form>
</div>
</body>
</html>
templates/orders_list.html
View file @
2ccfd41b
...
...
@@ -21,7 +21,7 @@
<tr>
<td></td>
<td>
<form>
<form
method=
"get"
action=
"http://localhost:8000/orders-detail"
>
<button
type=
"submit"
id=
"button_to_orders_detail"
>
Go to detail
</button>
</form>
</td>
...
...
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