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
d8067f5f
Commit
d8067f5f
authored
Dec 10, 2021
by
Martina Therese R. Reyes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified the table for order view. Added css accordingly.
parent
8405d450
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
79 additions
and
23 deletions
+79
-23
styles.css
blizzardblast/static/css/styles.css
+34
-14
order.html
blizzardblast/templates/order.html
+45
-9
No files found.
blizzardblast/static/css/styles.css
View file @
d8067f5f
...
@@ -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
{
...
...
blizzardblast/templates/order.html
View file @
d8067f5f
...
@@ -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 %}
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