undo currency dropdown onclick and fix price tag in order
This commit is contained in:
parent
404941b235
commit
de24264331
|
@ -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'
|
||||
# }
|
||||
#)
|
||||
)
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue