Commit 2d31dd55 authored by Felizia Tiburcio's avatar Felizia Tiburcio

Format prices to 2 decimal places

parent 6bf5d0e6
......@@ -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>
......
......@@ -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
......
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