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, 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'
} # }
) #)
) )

View File

@ -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>

View File

@ -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">