How can I write numbers in a cell inside Bootstrap table in accounting format?
For example: one million should be shown as 1,000,000 and not 1000000 (notice commas ',' between digits).
Please note that data data is getting filled by Django app.
Example:
<tbody>
{% for row in tbl_list %}
<tr id="port_row_{{row.stock}}_{{index}}">
{% if row.stock == 'TOTAL'%}
<td> {{row.stock}}</td>
{% else %}
<td> <a target="_blank" style="color:blue;" href="https://www.google.com/finance?q=NSE:{{ row.stock }}">{{row.stock}}</a></td>
{% endif %}
<td>{{row.name}}</td>
<td>{{row.investment_amount}}</td>
<td>
{% if row.weekly_gain >= 0 %}
<div style="color:green">
+{{row.weekly_gain}}
<i class="fa fa-arrow-up"></i>
</div>
{% else %}
<div style="color:tomato">
{{row.weekly_gain}}
<i class="fa fa-arrow-down"></i>
</div>
{% endif %}
</td>
<td>{{row.percentage}}</td>
<td>{{row.percentage_of_portfolio}}</td>
</tr>
{% endfor %}
</tbody>