Created a folder called filtered_views.

Added new files (views) for the site. (Reciept, base flavor, etc.)
parent c44ab5b6
{% 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 %}
......@@ -7,16 +7,31 @@
{% endblock %}
{% 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 HEADER -->
<tr>
<th>Base Flavor</th>
<th>Options</th>
</tr>
<!-- TABLE ROW WITH INFO -->
{% for bf in show_bfs%}
<tr>
<td>{{bf.bf_name}}</td>
<td>
<button class="edit-value edit">Edit</button>
<button class="delete-value delete">Delete</button>
</td>
</tr>
{%endfor%}
......
{% 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 %}
......@@ -11,14 +11,10 @@
<div class="title-area">
<h1 class='view-title'>Order</h1>
<h3 class='view-subtitle'>Receipt</h3>
</div><!-- SEARCH BOX -->
<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>
<button class="loadresults order"><a href="{% url 'order' %}">Order</a></button>
</div>
<div id="CRUD-features">
<button class="crud-button">Add Order</button>
<button class="crud-button">Delete Order</button>
......
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