Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Boodle
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
Boodle
Commits
2d31dd55
Commit
2d31dd55
authored
May 18, 2022
by
Felizia Tiburcio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Format prices to 2 decimal places
parent
6bf5d0e6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
auction.html
boodlesite/templates/auction.html
+3
-3
store.html
boodlesite/templates/store.html
+1
-1
No files found.
boodlesite/templates/auction.html
View file @
2d31dd55
...
...
@@ -61,7 +61,7 @@
<p>
Sold by {{ auction_host.storename }}
</p>
<p>
{{ item_specs }}
</p>
<h4>
Starting at: ₱ {{item_floor_price}}
</h4>
<h4>
Starting at: ₱ {{item_floor_price
| floatformat:2
}}
</h4>
</div>
...
...
@@ -78,7 +78,7 @@
{% if auction_bids %}
{% for bid in auction_bids %}
<li><img
src=
"https://minimaltoolkit.com/images/randomdata/female/64.jpg"
alt=
""
>
<p>
{{bid.userid.username}} offered
{{ bid.amount
}}
</p>
<p>
{{bid.userid.username}} offered
₱{{ bid.amount | floatformat:2
}}
</p>
<p>
&
nbsp |
&
nbsp
</p>
<p>
{{bid.bidtime | timesince}} ago
</p>
...
...
@@ -112,7 +112,7 @@ aria-hidden="true">
<form
action=
""
method=
"POST"
>
<div
class=
"form-group placebid"
>
<h5>
Current Highest Bid:
</h5>
<h3>
PHP {{highest_bid
}}
</h3>
<h3>
₱{{highest_bid | floatformat:2
}}
</h3>
{% csrf_token %}
{{ form }}
</div>
...
...
boodlesite/templates/store.html
View file @
2d31dd55
...
...
@@ -44,7 +44,7 @@
<img
src=
"https://www.kurin.com/wp-content/uploads/placeholder-square.jpg"
>
<div
class=
"item-info"
>
<h4
id=
"item-name"
>
{{ item.itemname }}
</h4>
<p
id=
"item-price"
>
₱ {{item.floorprice}}
</p>
<p
id=
"item-price"
>
₱ {{item.floorprice
| floatformat:2
}}
</p>
</div>
<div
class=
"btn-group item-btns"
>
<button
class=
"btn profile-btn"
><a
...
...
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