Skip to content

Commit

Permalink
[#1265] Added currency prefix to 'Amount' in donate form
Browse files Browse the repository at this point in the history
  • Loading branch information
KasperBrandt committed Mar 9, 2015
1 parent 3ea68bd commit 5c878b0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion akvo/templates/donate/donate_step2.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,16 @@ <h3>{% trans 'Donation details' %}</h3>
</p>

{% bootstrap_form_errors donate_form type='non_fields' %}

{% comment %}
{% bootstrap_field donate_form.amount %}
{% endcomment %}
<div class="form-group">
<label class="control-label" for="id_amount">Amount</label>
<div class="input-group">
<span class="input-group-addon">{{project.get_currency_display|safe}}</span>
<input class="form-control" id="id_amount" min="2" name="amount" placeholder="Amount" required="required" title="" type="number">
</div>
</div>
<p class="small">
{% blocktrans with project.get_currency_display|safe as currency %}The amount is in {{currency}} and should be whole numbers without decimals or commas.{% endblocktrans %}
</p>
Expand Down

0 comments on commit 5c878b0

Please sign in to comment.