Add form to send selected card in settings page
This commit is contained in:
parent
175180e193
commit
c47b5cdc72
1 changed files with 5 additions and 1 deletions
|
@ -67,7 +67,11 @@
|
||||||
{% if card.preferred %}
|
{% if card.preferred %}
|
||||||
{% trans "DEFAULT" %}
|
{% trans "DEFAULT" %}
|
||||||
{% else %}
|
{% 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 %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue