Use format mask to stringify dollar amount

This commit is contained in:
Patrick Smith
2018-08-13 08:39:34 -04:00
parent 3e6c4d7f13
commit 95267f6031
2 changed files with 11 additions and 1 deletions

View File

@@ -48,7 +48,7 @@
<h2>Financial Usage</h2>
{{ TextInput(f.estimated_monthly_spend, validation='dollars') }}
<p>So this means you are spending approximately <b>$!{ annualSpend }</b> annually</p>
<p>So this means you are spending approximately <b>!{ annualSpendStr }</b> annually</p>
{{ TextInput(f.dollar_value, validation='dollars') }}
{{ TextInput(f.number_user_sessions, validation='integer') }}
{{ TextInput(f.average_daily_traffic, placeholder='Gigabytes per day', validation='gigabytes') }}