diff --git a/django/didgeridoo/currencies/forms.py b/django/didgeridoo/currencies/forms.py index 02259d9..0464a86 100644 --- a/django/didgeridoo/currencies/forms.py +++ b/django/didgeridoo/currencies/forms.py @@ -5,4 +5,13 @@ from currencies.models import ExchangeRate_name class CurrenciesForm(forms.Form): currencies = forms.ModelChoiceField( queryset=ExchangeRate_name.objects.all(), - required=False, empty_label='CHF') + required=False, + empty_label='CHF', + label='CURENCIES', + widget=forms.Select( + attrs={ + 'onchange': 'currency.submit();', + 'class': 'btn-primary dropdown-toggle' + } + ) + ) diff --git a/django/didgeridoo/webshop/templates/webshop/nav.html b/django/didgeridoo/webshop/templates/webshop/nav.html index 6390f7b..fac5436 100644 --- a/django/didgeridoo/webshop/templates/webshop/nav.html +++ b/django/didgeridoo/webshop/templates/webshop/nav.html @@ -13,11 +13,10 @@ {% else %}
  • LOGIN
  • {% endif %} -
  • {% if article_view %}
    {{ currencies_form.as_ul }} -
  • {% csrf_token %}
    {% endif %}