Commit 6a38e17e authored by Christine Dela Rosa's avatar Christine Dela Rosa

add url, views, and template for mystore, additem and startauction

parent 5a10a3ca
{% 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
...@@ -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>
......
{% 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
{% 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
...@@ -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
...@@ -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")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment