Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Project1-Valenzuela-185143
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
Anton Ralph Valenzuela
Project1-Valenzuela-185143
Commits
ec7f2089
Commit
ec7f2089
authored
Mar 13, 2020
by
Anton Ralph F. Valenzuela
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made names consistent and added initial templates.
parent
2e5c665b
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
90 additions
and
18 deletions
+90
-18
ingredients_create_form.html
froyo/templates/ingredients_create_form.html
+6
-0
ingredients_detail.html
froyo/templates/ingredients_detail.html
+6
-0
ingredients_list.html
froyo/templates/ingredients_list.html
+6
-0
ingredients_update_form.html
froyo/templates/ingredients_update_form.html
+6
-0
orders_create_form.html
froyo/templates/orders_create_form.html
+6
-0
orders_detail.html
froyo/templates/orders_detail.html
+6
-0
orders_list.html
froyo/templates/orders_list.html
+6
-0
orders_update_form.html
froyo/templates/orders_update_form.html
+6
-0
recipes_create_form.html
froyo/templates/recipes_create_form.html
+6
-0
recipes_detail.html
froyo/templates/recipes_detail.html
+6
-0
recipes_list.html
froyo/templates/recipes_list.html
+6
-0
recipes_update_form.html
froyo/templates/recipes_update_form.html
+6
-0
tests.py
froyo/tests.py
+6
-6
urls.py
froyo/urls.py
+6
-6
views.py
froyo/views.py
+6
-6
No files found.
froyo/templates/ingredients_create_form.html
0 → 100644
View file @
ec7f2089
<!DOCTYPE html>
<html>
<head>
<title>
The Good Place FroYo Shop
</title>
</head>
</html>
froyo/templates/ingredients_detail.html
0 → 100644
View file @
ec7f2089
<!DOCTYPE html>
<html>
<head>
<title>
The Good Place FroYo Shop
</title>
</head>
</html>
froyo/templates/ingredients_list.html
0 → 100644
View file @
ec7f2089
<!DOCTYPE html>
<html>
<head>
<title>
The Good Place FroYo Shop
</title>
</head>
</html>
froyo/templates/ingredients_update_form.html
0 → 100644
View file @
ec7f2089
<!DOCTYPE html>
<html>
<head>
<title>
The Good Place FroYo Shop
</title>
</head>
</html>
froyo/templates/orders_create_form.html
0 → 100644
View file @
ec7f2089
<!DOCTYPE html>
<html>
<head>
<title>
The Good Place FroYo Shop
</title>
</head>
</html>
froyo/templates/orders_detail.html
0 → 100644
View file @
ec7f2089
<!DOCTYPE html>
<html>
<head>
<title>
The Good Place FroYo Shop
</title>
</head>
</html>
froyo/templates/orders_list.html
0 → 100644
View file @
ec7f2089
<!DOCTYPE html>
<html>
<head>
<title>
The Good Place FroYo Shop
</title>
</head>
</html>
froyo/templates/orders_update_form.html
0 → 100644
View file @
ec7f2089
<!DOCTYPE html>
<html>
<head>
<title>
The Good Place FroYo Shop
</title>
</head>
</html>
froyo/templates/recipes_create_form.html
0 → 100644
View file @
ec7f2089
<!DOCTYPE html>
<html>
<head>
<title>
The Good Place FroYo Shop
</title>
</head>
</html>
froyo/templates/recipes_detail.html
0 → 100644
View file @
ec7f2089
<!DOCTYPE html>
<html>
<head>
<title>
The Good Place FroYo Shop
</title>
</head>
</html>
froyo/templates/recipes_list.html
0 → 100644
View file @
ec7f2089
<!DOCTYPE html>
<html>
<head>
<title>
The Good Place FroYo Shop
</title>
</head>
</html>
froyo/templates/recipes_update_form.html
0 → 100644
View file @
ec7f2089
<!DOCTYPE html>
<html>
<head>
<title>
The Good Place FroYo Shop
</title>
</head>
</html>
froyo/tests.py
View file @
ec7f2089
...
@@ -19,11 +19,11 @@ class OrdersTest(TestCase):
...
@@ -19,11 +19,11 @@ class OrdersTest(TestCase):
self
.
assertTemplateUsed
(
response
,
'orders_detail.html'
)
self
.
assertTemplateUsed
(
response
,
'orders_detail.html'
)
def
test_orders_use_update_form_template
(
self
):
def
test_orders_use_update_form_template
(
self
):
response
=
self
.
client
.
get
(
'/orders/update'
)
response
=
self
.
client
.
get
(
'/orders/update
_form
'
)
self
.
assertTemplateUsed
(
response
,
'orders_update.html'
)
self
.
assertTemplateUsed
(
response
,
'orders_update.html'
)
def
test_orders_use_create_form_template
(
self
):
def
test_orders_use_create_form_template
(
self
):
response
=
self
.
client
.
get
(
'/orders/create'
)
response
=
self
.
client
.
get
(
'/orders/create
_form
'
)
self
.
assertTemplateUsed
(
response
,
'orders_create.html'
)
self
.
assertTemplateUsed
(
response
,
'orders_create.html'
)
...
@@ -38,11 +38,11 @@ class RecipesTest(TestCase):
...
@@ -38,11 +38,11 @@ class RecipesTest(TestCase):
self
.
assertTemplateUsed
(
response
,
'recipes_detail.html'
)
self
.
assertTemplateUsed
(
response
,
'recipes_detail.html'
)
def
test_recipes_use_update_form_template
(
self
):
def
test_recipes_use_update_form_template
(
self
):
response
=
self
.
client
.
get
(
'/recipes/update'
)
response
=
self
.
client
.
get
(
'/recipes/update
_form
'
)
self
.
assertTemplateUsed
(
response
,
'recipes_update.html'
)
self
.
assertTemplateUsed
(
response
,
'recipes_update.html'
)
def
test_recipes_use_create_form_template
(
self
):
def
test_recipes_use_create_form_template
(
self
):
response
=
self
.
client
.
get
(
'/recipes/create'
)
response
=
self
.
client
.
get
(
'/recipes/create
_form
'
)
self
.
assertTemplateUsed
(
response
,
'recipes_create.html'
)
self
.
assertTemplateUsed
(
response
,
'recipes_create.html'
)
...
@@ -57,9 +57,9 @@ class IngredientsTest(TestCase):
...
@@ -57,9 +57,9 @@ class IngredientsTest(TestCase):
self
.
assertTemplateUsed
(
response
,
'ingredients_detail.html'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_detail.html'
)
def
test_ingredients_use_update_form_template
(
self
):
def
test_ingredients_use_update_form_template
(
self
):
response
=
self
.
client
.
get
(
'/ingredients/update'
)
response
=
self
.
client
.
get
(
'/ingredients/update
_form
'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_update.html'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_update.html'
)
def
test_ingredients_use_create_form_template
(
self
):
def
test_ingredients_use_create_form_template
(
self
):
response
=
self
.
client
.
get
(
'/ingredients/create'
)
response
=
self
.
client
.
get
(
'/ingredients/create
_form
'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_create.html'
)
self
.
assertTemplateUsed
(
response
,
'ingredients_create.html'
)
froyo/urls.py
View file @
ec7f2089
...
@@ -6,14 +6,14 @@ urlpatterns = [
...
@@ -6,14 +6,14 @@ urlpatterns = [
url
(
r'^$'
,
HomeView_
.
asView
(),
name
=
'home'
),
url
(
r'^$'
,
HomeView_
.
asView
(),
name
=
'home'
),
url
(
r'^orders$'
,
OrdersListView
.
asView
(),
name
=
'orders-list'
),
url
(
r'^orders$'
,
OrdersListView
.
asView
(),
name
=
'orders-list'
),
url
(
r'^orders/detail$'
,
OrdersDetailsView
.
asView
(),
name
=
'orders-detail'
),
url
(
r'^orders/detail$'
,
OrdersDetailsView
.
asView
(),
name
=
'orders-detail'
),
url
(
r'^orders/update
$'
,
OrdersUpdateView
.
asView
(),
name
=
'orders-update
'
),
url
(
r'^orders/update
_form$'
,
OrdersUpdateView
.
asView
(),
name
=
'orders-update-form
'
),
url
(
r'^orders/create
$'
,
OrdersCreateView
.
asView
(),
name
=
'orders-create
'
),
url
(
r'^orders/create
_form$'
,
OrdersCreateView
.
asView
(),
name
=
'orders-create-form
'
),
url
(
r'^recipes$'
,
RecipesListView
.
asView
(),
name
=
'recipes-list'
),
url
(
r'^recipes$'
,
RecipesListView
.
asView
(),
name
=
'recipes-list'
),
url
(
r'^recipes/detail$'
,
RecipesDetailsView
.
asView
(),
name
=
'recipes-detail'
),
url
(
r'^recipes/detail$'
,
RecipesDetailsView
.
asView
(),
name
=
'recipes-detail'
),
url
(
r'^recipes/update
$'
,
RecipesUpdateView
.
asView
(),
name
=
'recipes-update
'
),
url
(
r'^recipes/update
_form$'
,
RecipesUpdateView
.
asView
(),
name
=
'recipes-update-form
'
),
url
(
r'^recipes/create
$'
,
RecipesCreateView
.
asView
(),
name
=
'recipes-create
'
),
url
(
r'^recipes/create
_form$'
,
RecipesCreateView
.
asView
(),
name
=
'recipes-create-form
'
),
url
(
r'^ingredients$'
,
IngredientsListView
.
asView
(),
name
=
'ingredients-list'
),
url
(
r'^ingredients$'
,
IngredientsListView
.
asView
(),
name
=
'ingredients-list'
),
url
(
r'^ingredients/detail$'
,
IngredientsDetailsView
.
asView
(),
name
=
'ingredients-detail'
),
url
(
r'^ingredients/detail$'
,
IngredientsDetailsView
.
asView
(),
name
=
'ingredients-detail'
),
url
(
r'^ingredients/update
$'
,
IngredientsUpdateView
.
asView
(),
name
=
'ingredients-update
'
),
url
(
r'^ingredients/update
_form$'
,
IngredientsUpdateView
.
asView
(),
name
=
'ingredients-update-form
'
),
url
(
r'^ingredients/create
$'
,
IngredientsCreateView
.
asView
(),
name
=
'ingredients-create
'
),
url
(
r'^ingredients/create
_form$'
,
IngredientsCreateView
.
asView
(),
name
=
'ingredients-create-form
'
),
]
]
froyo/views.py
View file @
ec7f2089
...
@@ -14,11 +14,11 @@ class OrdersDetailView(TemplateView):
...
@@ -14,11 +14,11 @@ class OrdersDetailView(TemplateView):
class
OrdersUpdateView
(
TemplateView
):
class
OrdersUpdateView
(
TemplateView
):
template_name
=
"orders_update.html"
template_name
=
"orders_update
_form
.html"
class
OrdersCreateView
(
TemplateView
):
class
OrdersCreateView
(
TemplateView
):
template_name
=
"orders_create.html"
template_name
=
"orders_create
_form
.html"
class
RecipesListView
(
TemplateView
):
class
RecipesListView
(
TemplateView
):
...
@@ -30,11 +30,11 @@ class RecipesDetailView(TemplateView):
...
@@ -30,11 +30,11 @@ class RecipesDetailView(TemplateView):
class
RecipesUpdateView
(
TemplateView
):
class
RecipesUpdateView
(
TemplateView
):
template_name
=
"recipes_update.html"
template_name
=
"recipes_update
_form
.html"
class
RecipesCreateView
(
TemplateView
):
class
RecipesCreateView
(
TemplateView
):
template_name
=
"recipes_create.html"
template_name
=
"recipes_create
_form
.html"
class
IngredientsListView
(
TemplateView
):
class
IngredientsListView
(
TemplateView
):
...
@@ -46,8 +46,8 @@ class IngredientsDetailView(TemplateView):
...
@@ -46,8 +46,8 @@ class IngredientsDetailView(TemplateView):
class
IngredientsUpdateView
(
TemplateView
):
class
IngredientsUpdateView
(
TemplateView
):
template_name
=
"ingredients_update.html"
template_name
=
"ingredients_update
_form
.html"
class
IngredientsCreateView
(
TemplateView
):
class
IngredientsCreateView
(
TemplateView
):
template_name
=
"ingredients_create.html"
template_name
=
"ingredients_create
_form
.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