Modified the table for order view. Added css accordingly.

parent 8405d450
...@@ -127,7 +127,7 @@ header { ...@@ -127,7 +127,7 @@ header {
margin-left: 5rem; margin-left: 5rem;
} }
/* ======== ORDER.HTML ============ */ /* ======== ORDER.HTML and RECEIPT.HTML ============ */
.button-container { .button-container {
display: flex; display: flex;
justify-content: space-evenly; justify-content: space-evenly;
...@@ -152,13 +152,6 @@ header { ...@@ -152,13 +152,6 @@ header {
justify-content: center; justify-content: center;
} }
#filter-area>button {
padding: 0.5rem 7rem;
background-color: #BFCDE0;
color: #3B3355;
border-radius: 2rem;
}
.search-bar { .search-bar {
border:none; border:none;
padding: 12px; padding: 12px;
...@@ -169,8 +162,8 @@ header { ...@@ -169,8 +162,8 @@ header {
border: none; border: none;
background-color: #BFCDE0; background-color: #BFCDE0;
color: #3B3355; color: #3B3355;
margin: 0.3rem 4rem; margin: 0.3rem;
padding: 0.5rem 8rem; padding: 0.5rem;
border-radius: 2rem; border-radius: 2rem;
} }
...@@ -194,22 +187,49 @@ header { ...@@ -194,22 +187,49 @@ header {
padding: 10px; padding: 10px;
} }
#CRUD-features>button { .crud-button, .filter-button {
border: none; border: none;
background-color: #BFCDE0; background-color: #BFCDE0;
color: #3B3355; color: #3B3355;
margin: 0.3rem 4rem; margin: 0.3rem;
padding: 0.5rem 8rem; padding: 0.5rem;
border-radius: 2rem; border-radius: 2rem;
} }
#CRUD-features>button:hover { .filter-button:hover {
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
background-color: #3B3355; background-color: #3B3355;
color:#FEFCFD; color:#FEFCFD;
} }
.crud-button:hover {
text-decoration: underline;
cursor: pointer;
background-color: #3B3355;
color:#FEFCFD;
}
#order-table, #receipt-table {
display: flex;
justify-content: center;
}
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
cursor: pointer;
}
table, th {
border: 1px solid black;
padding: 10px;
border-collapse: separate;
}
/* ============ REPORT.HTML =============== */ /* ============ REPORT.HTML =============== */
#report-area { #report-area {
......
...@@ -9,20 +9,56 @@ ...@@ -9,20 +9,56 @@
{% block content %} {% block content %}
<h1 class='view-title'>Order</h1> <h1 class='view-title'>Order</h1>
<!-- SEARCH BOX --> <!-- SEARCH AREA-->
<div id="filter-area"> <div id="filter-area">
<select name="search-filter" id="search-filter"> <button class="filter-button"><a href="{% url 'order' %}">Order Slip</a></button>
<option selected="selected">Filter</option> <button class="filter-button"><a href="{% url 'receipt' %}">Receipt</a></button>
<option value="total-sales-monthly">Total Monthly Sales</option>
<option value="Receipt">Individual Receipt</option>
</select>
<input class="search-bar" size=60 type="text" placeholder="Search.."> <input class="search-bar" size=60 type="text" placeholder="Search..">
<button class="search-button">Search</button> <button class="search-button">Search</button>
</div> </div>
<div id="CRUD-features"> <div id="CRUD-features">
<button id="addorder">Add Order</button> <button class="crud-button">Add Order</button>
<button id="deleteorder">Delete Order</button> <button class="crud-button">Delete Order</button>
<button id="update">Refresh</button> <button class="crud-button">Refresh</button>
</div>
<div id="order-table">
<table>
<!-- TABLE HEADER -->
<tr>
<th>customer_no</th>
<th>customer_name</th>
<th>date</th>
<th>size</th>
<th>base_receipe</th>
<th>add_on_qty</th>
<th>add_on_name</th>
</tr>
<!-- TABLE ROW WITH INFO -->
<tr>
<th>customer_no</th>
<th>customer_name</th>
<th>date</th>
<th>size</th>
<th>base_receipe</th>
<th>add_on_qty</th>
<th>add_on_name</th>
</tr>
<!-- TABLE ROW WITHOUT INFO -->
<tr>
<th>customer_no</th>
<th>customer_name</th>
<th>date</th>
<th>size</th>
<th>base_receipe</th>
<th>add_on_qty</th>
<th>add_on_name</th>
</tr>
</table>
</div> </div>
{% endblock %} {% endblock %}
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