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

Format prices to 2 decimal places

parent 6bf5d0e6
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
<p>Sold by {{ auction_host.storename }}</p> <p>Sold by {{ auction_host.storename }}</p>
<p>{{ item_specs }}</p> <p>{{ item_specs }}</p>
<h4>Starting at: ₱ {{item_floor_price}}</h4> <h4>Starting at: ₱ {{item_floor_price | floatformat:2 }}</h4>
</div> </div>
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
{% if auction_bids %} {% if auction_bids %}
{% for bid in auction_bids %} {% for bid in auction_bids %}
<li><img src="https://minimaltoolkit.com/images/randomdata/female/64.jpg" alt=""> <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> &nbsp | &nbsp </p>
<p>{{bid.bidtime | timesince}} ago </p> <p>{{bid.bidtime | timesince}} ago </p>
...@@ -112,7 +112,7 @@ aria-hidden="true"> ...@@ -112,7 +112,7 @@ aria-hidden="true">
<form action="" method="POST"> <form action="" method="POST">
<div class="form-group placebid"> <div class="form-group placebid">
<h5>Current Highest Bid: </h5> <h5>Current Highest Bid: </h5>
<h3>PHP {{highest_bid}}</h3> <h3>₱{{highest_bid | floatformat:2}}</h3>
{% csrf_token %} {% csrf_token %}
{{ form }} {{ form }}
</div> </div>
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<img src="https://www.kurin.com/wp-content/uploads/placeholder-square.jpg"> <img src="https://www.kurin.com/wp-content/uploads/placeholder-square.jpg">
<div class="item-info"> <div class="item-info">
<h4 id="item-name">{{ item.itemname }}</h4> <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>
<div class="btn-group item-btns"> <div class="btn-group item-btns">
<button class="btn profile-btn"><a <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