Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Blizzard Blast
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
Blizzard Blast
Commits
532f6515
Commit
532f6515
authored
Dec 18, 2021
by
Martina Therese R. Reyes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created a folder called filtered_views.
Added new files (views) for the site. (Reciept, base flavor, etc.)
parent
c44ab5b6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
154 additions
and
6 deletions
+154
-6
addons_ingredient.html
...zardblast/templates/filtered_views/addons_ingredient.html
+52
-0
baseFlavors.html
blizzardblast/templates/filtered_views/baseFlavors.html
+40
-0
orderslip.html
blizzardblast/templates/filtered_views/orderslip.html
+60
-0
receipt.html
blizzardblast/templates/filtered_views/receipt.html
+2
-6
No files found.
blizzardblast/templates/filtered_views/addons_ingredient.html
0 → 100644
View file @
532f6515
{% extends 'blizzardblast\templates\base.html' %}
{% load static %}
{% block title %}Inventory{% endblock %}
{% block styles %}
{% endblock %}
{% block content %}
<div
class=
"title-area"
>
<h1
class=
'view-title'
>
Inventory
</h1>
<h3
class=
'view-subtitle'
>
Ingredients (Add Ons)
</h3>
<button
class=
"loadresults inventory"
><a
href=
"{% url 'inventory' %}"
>
Show Inventory
</a></button>
</div>
<div
class=
"inventory buttonpanel"
>
<button
class=
"add ingredient"
><a
href=
"{% url 'addingredient' %}"
>
Add Ingredient
</a></button>
</div>
<div
id=
"ingredient-table"
>
<table>
<!-- TABLE HEADER -->
<tr>
<th>
Ingredient Name
</th>
<th>
Category
</th>
<th>
Quantity
</th>
<th>
Price per Serving
</th>
<th>
Replenished Stock?
</th>
<th>
Options
</th>
</tr>
<!-- TABLE ROWS WITH INFO -->
{% for ingredient in inventory %}
<tr>
<td>
{{ingredient.ingredient_name}}
</td>
<td>
{{ingredient.category}}
</td>
<td>
{{ingredient.quantity}}
</td>
<td>
{{ingredient.price_per_serving}}
</td>
<td>
{{ingredient.replenished_stock}}
</td>
<td>
<button
class=
"edit-value edit"
>
Edit
</button>
<button
class=
"delete-value delete"
>
Delete
</button>
</td>
</tr>
{% endfor %}
</table>
</div>
{% endblock %}
blizzardblast/templates/
showB
aseFlavors.html
→
blizzardblast/templates/
filtered_views/b
aseFlavors.html
View file @
532f6515
...
@@ -7,16 +7,31 @@
...
@@ -7,16 +7,31 @@
{% endblock %}
{% endblock %}
{% block content %}
{% block content %}
<div
class=
"title-area"
>
<h1
class=
'view-title'
>
Inventory
</h1>
<h3
class=
'view-subtitle'
>
Base Flavors
</h3>
<button
class=
"loadresults inventory"
><a
href=
"{% url 'inventory' %}"
>
Show Inventory
</a></button>
</div>
<div
class=
"inventory buttonpanel"
>
<button
class=
"add BaseFlavor"
><a
href=
"{% url 'addBaseFlavor' %}"
>
Add Base Flavor
</a></button>
</div>
<table
id=
"baseflavor"
>
<table
id=
"baseflavor"
>
<!-- TABLE HEADER -->
<!-- TABLE HEADER -->
<tr>
<tr>
<th>
Base Flavor
</th>
<th>
Base Flavor
</th>
<th>
Options
</th>
</tr>
</tr>
<!-- TABLE ROW WITH INFO -->
<!-- TABLE ROW WITH INFO -->
{% for bf in show_bfs%}
{% for bf in show_bfs%}
<tr>
<tr>
<td>
{{bf.bf_name}}
</td>
<td>
{{bf.bf_name}}
</td>
<td>
<button
class=
"edit-value edit"
>
Edit
</button>
<button
class=
"delete-value delete"
>
Delete
</button>
</td>
</tr>
</tr>
{%endfor%}
{%endfor%}
...
...
blizzardblast/templates/filtered_views/orderslip.html
0 → 100644
View file @
532f6515
{% extends 'blizzardblast\templates\base.html' %}
{% load static %}
{% block title %}Order{% endblock %}
{% block styles %}
{% endblock %}
{% block content %}
<div
class=
"title-area"
>
<h1
class=
'view-title'
>
Order
</h1>
<h3
class=
'view-subtitle'
>
Order Slip
</h3>
</div>
<div
class=
"order buttonpanel"
>
<!-- GETTING THE RESULTS AREA-->
<div
class=
"getresults area"
>
<h4
class=
"title-area"
>
Slips and Reciepts
</h4>
<div
class=
"get-results"
>
<button
class=
"loadresults orderslip-button"
><a
href=
"{% url 'order' %}"
>
Order Slip
</a></button>
<button
class=
"loadresults receipt-button"
><a
href=
"{% url 'receipt' %}"
>
Receipt
</a></button>
</div>
</div>
<!-- FILLING IN FORMS AREA-->
<div
class=
"addingforms area"
>
<h4
class=
"title-area"
>
Adding in new customers, items and orders
</h4>
<div
class=
"add-forms"
>
<button
class=
"add orderform-button"
><a
href=
"{% url 'addorder' %}"
>
Add Order
</a></button>
<button
class=
"add itemform-button"
><a
href=
"{% url 'additem' %}"
>
Add Item
</a></button>
<button
class=
"add customerform-button"
><a
href=
"{% url 'addcustomer' %}"
>
Add Customer
</a></button>
</div>
</div>
</div>
<!-- TABLE AREA-->
<div
id=
"order-table"
>
<table>
<!-- TABLE HEADER -->
<tr>
<th>
customer_name
</th>
<th>
date
</th>
<th>
item
</th>
<th>
Employee in charge
</th>
</tr>
<!-- TABLE ROW WITH INFO -->
{% for order in orders%}
<tr>
<td>
{{order.customer}}
</td>
<td>
{{order.order_date}}
</td>
<td>
{{order.item}}
</td>
<td>
{{order.employee}}
</td>
</tr>
{%endfor%}
</table>
</div>
{% endblock %}
blizzardblast/templates/receipt.html
→
blizzardblast/templates/
filtered_views/
receipt.html
View file @
532f6515
...
@@ -11,14 +11,10 @@
...
@@ -11,14 +11,10 @@
<div
class=
"title-area"
>
<div
class=
"title-area"
>
<h1
class=
'view-title'
>
Order
</h1>
<h1
class=
'view-title'
>
Order
</h1>
<h3
class=
'view-subtitle'
>
Receipt
</h3>
<h3
class=
'view-subtitle'
>
Receipt
</h3>
</div>
<!-- SEARCH BOX -->
<button
class=
"loadresults order"
><a
href=
"{% url 'order' %}"
>
Order
</a></button>
<div
id=
"filter-area"
>
<button
class=
"filter-button"
><a
href=
"{% url 'order' %}"
>
Order Slip
</a></button>
<button
class=
"filter-button"
><a
href=
"{% url 'receipt' %}"
>
Receipt
</a></button>
<input
class=
"search-bar"
size=
60
type=
"text"
placeholder=
"Search.."
>
<button
class=
"search-button"
>
Search
</button>
</div>
</div>
<div
id=
"CRUD-features"
>
<div
id=
"CRUD-features"
>
<button
class=
"crud-button"
>
Add Order
</button>
<button
class=
"crud-button"
>
Add Order
</button>
<button
class=
"crud-button"
>
Delete Order
</button>
<button
class=
"crud-button"
>
Delete Order
</button>
...
...
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