undo currency dropdown onclick and fix price tag in order

This commit is contained in:
Ivan Hörler 2018-02-28 21:47:19 +01:00
parent 404941b235
commit de24264331
3 changed files with 9 additions and 8 deletions

View File

@ -8,10 +8,10 @@ class CurrenciesForm(forms.Form):
required=False,
empty_label='CHF',
label='CURENCIES',
widget=forms.Select(
attrs={
'onchange': 'currency.submit();',
'class': 'btn-primary dropdown-toggle'
}
)
# widget=forms.Select(
# attrs={
# 'onchange': 'currency.submit();',
# 'class': 'btn-primary dropdown-toggle'
# }
#)
)

View File

@ -17,7 +17,8 @@
{% if article_view %}
<form id="currency" action="" method="POST" novalidate>
{{ currencies_form.as_ul }}
{% csrf_token %}
{% csrf_token %}
<li><input type="submit" value="Select"></li>
</form>
{% endif %}
</li>

View File

@ -37,7 +37,7 @@
<td scope="col">{{ order_position.article.stock }}</td>
<td scope="col">{{ order_position.amount }}</td>
<td scope="col" class="price-value">
{{ order_position.article.price_in_chf }}
{{ price }}
{{ currency_name }}
</td>
<td scope="col" class="price-value">