Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Boodle
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
Martina Therese R. Reyes
Boodle
Commits
6a38e17e
Commit
6a38e17e
authored
Apr 01, 2022
by
Christine Dela Rosa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add url, views, and template for mystore, additem and startauction
parent
5a10a3ca
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
80 additions
and
2 deletions
+80
-2
additem.html
boodlesite/templates/additem.html
+22
-0
base.html
boodlesite/templates/base.html
+1
-1
startauction.html
boodlesite/templates/startauction.html
+25
-0
store.html
boodlesite/templates/store.html
+18
-0
urls.py
main/urls.py
+4
-0
views.py
main/views.py
+10
-1
No files found.
boodlesite/templates/additem.html
0 → 100644
View file @
6a38e17e
{% extends 'boodlesite\templates\base.html' %}
{% load static %}
{% block title %}My Store{% endblock %}
{% block styles %}
{% endblock %}
{% block content %}
<!-- Form with fields:
[Item name]
[Item Description]
[Floor Price] -->
<!-- Image, if no image add image -->
<button
type=
"button"
>
Add Item
</button>
{% endblock %}
\ No newline at end of file
boodlesite/templates/base.html
View file @
6a38e17e
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
<li><a
href=
"#"
>
About
</a></li>
<li><a
href=
"#"
>
About
</a></li>
<li><a
href=
"#"
>
Help
</a></li>
<li><a
href=
"#"
>
Help
</a></li>
<li><a
href=
"#"
>
My Profile
</a></li>
<li><a
href=
"#"
>
My Profile
</a></li>
<li><a
href=
"
#
"
>
My Store
</a></li>
<li><a
href=
"
/store
"
>
My Store
</a></li>
</ul>
</ul>
</nav>
</nav>
...
...
boodlesite/templates/startauction.html
0 → 100644
View file @
6a38e17e
{% extends 'boodlesite\templates\base.html' %}
{% load static %}
{% block title %}My Store{% endblock %}
{% block styles %}
{% endblock %}
{% block content %}
<!-- Form fields:
[Auction Title]
Drop down: [Select time for Auction]
Set Auction timer:
Start:
Drop down: [Month] [Day] [Year] Time: [Hour] : [Minute]
End:
Drop down: [Month] [Day] [Year] Time: [Hour] : [Minute]
-->
<button
type=
"button"
>
Save Auction
</button>
{% endblock %}
\ No newline at end of file
boodlesite/templates/store.html
0 → 100644
View file @
6a38e17e
{% extends 'boodlesite\templates\base.html' %}
{% load static %}
{% block title %}My Store{% endblock %}
{% block styles %}
{% endblock %}
{% block content %}
<button
type=
"button"
><a
href=
"startauction"
>
Start Auction
</a></button>
<button
type=
"button"
>
Edit Shop
</button>
<button
type=
"button"
><a
href=
"additem"
>
Add Item
</a></button>
{% endblock %}
\ No newline at end of file
main/urls.py
View file @
6a38e17e
...
@@ -7,4 +7,8 @@ urlpatterns = [
...
@@ -7,4 +7,8 @@ urlpatterns = [
path
(
'auction'
,
auction
,
name
=
'auction'
),
path
(
'auction'
,
auction
,
name
=
'auction'
),
path
(
'auction/<int:pk>/'
,
auction
,
name
=
'auctionid'
),
path
(
'auction/<int:pk>/'
,
auction
,
name
=
'auctionid'
),
path
(
'error404'
,
error404
,
name
=
'error404'
),
path
(
'error404'
,
error404
,
name
=
'error404'
),
path
(
'store'
,
mystore
,
name
=
'store'
),
path
(
'additem'
,
addItem
,
name
=
'additem'
),
path
(
'startauction'
,
startAuction
,
name
=
'startauction'
),
]
]
\ No newline at end of file
main/views.py
View file @
6a38e17e
...
@@ -77,4 +77,13 @@ def auction(request, pk):
...
@@ -77,4 +77,13 @@ def auction(request, pk):
return
render
(
request
,
"boodlesite/templates/auction.html"
,
context
)
return
render
(
request
,
"boodlesite/templates/auction.html"
,
context
)
def
error404
(
request
):
def
error404
(
request
):
return
render
(
request
,
"boodlesite/templates/error404.html"
)
return
render
(
request
,
"boodlesite/templates/error404.html"
)
\ No newline at end of file
def
mystore
(
request
):
return
render
(
request
,
"boodlesite/templates/store.html"
)
def
addItem
(
request
):
return
render
(
request
,
"boodlesite/templates/additem.html"
)
def
startAuction
(
request
):
return
render
(
request
,
"boodlesite/templates/startauction.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