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,
|
required=False,
|
||||||
empty_label='CHF',
|
empty_label='CHF',
|
||||||
label='CURENCIES',
|
label='CURENCIES',
|
||||||
widget=forms.Select(
|
# widget=forms.Select(
|
||||||
attrs={
|
# attrs={
|
||||||
'onchange': 'currency.submit();',
|
# 'onchange': 'currency.submit();',
|
||||||
'class': 'btn-primary dropdown-toggle'
|
# 'class': 'btn-primary dropdown-toggle'
|
||||||
}
|
# }
|
||||||
)
|
#)
|
||||||
)
|
)
|
||||||
|
|
|
@ -17,7 +17,8 @@
|
||||||
{% if article_view %}
|
{% if article_view %}
|
||||||
<form id="currency" action="" method="POST" novalidate>
|
<form id="currency" action="" method="POST" novalidate>
|
||||||
{{ currencies_form.as_ul }}
|
{{ currencies_form.as_ul }}
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
<li><input type="submit" value="Select"></li>
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
<td scope="col">{{ order_position.article.stock }}</td>
|
<td scope="col">{{ order_position.article.stock }}</td>
|
||||||
<td scope="col">{{ order_position.amount }}</td>
|
<td scope="col">{{ order_position.amount }}</td>
|
||||||
<td scope="col" class="price-value">
|
<td scope="col" class="price-value">
|
||||||
{{ order_position.article.price_in_chf }}
|
{{ price }}
|
||||||
{{ currency_name }}
|
{{ currency_name }}
|
||||||
</td>
|
</td>
|
||||||
<td scope="col" class="price-value">
|
<td scope="col" class="price-value">
|
||||||
|
|
Loading…
Reference in New Issue