Add form to send selected card in settings page

This commit is contained in:
PCoder 2017-10-28 22:17:46 +02:00
parent 175180e193
commit c47b5cdc72

View file

@ -67,7 +67,11 @@
{% if card.preferred %}
{% trans "DEFAULT" %}
{% else %}
<a class="btn choice-btn choice-btn-faded" href="">{% trans "SELECT" %}</a>
<form method="post" action="">
{% csrf_token %}
<input type="hidden" name="card" value="{{card.id}}">
<a class="btn choice-btn choice-btn-faded" href="#" onclick="$(this).closest('form').submit()">{% trans "SELECT" %}</a>
</form>
{% endif %}
</div>
</div>