Add some styles and do not let user remove card if he has only one

This commit is contained in:
PCoder 2018-07-05 23:06:47 +02:00
commit 0db4a113e6
4 changed files with 22 additions and 1 deletions

View file

@ -171,4 +171,12 @@ footer .dcl-link-separator::before {
.credit-card-info .align-bottom {
align-self: flex-end;
padding-right: 0 !important;
}
.new-card-head {
margin-top: 10px;
}
.new-card-button-margin button{
margin-top: 5px;
margin-bottom: 5px;
}

View file

@ -130,7 +130,7 @@
<div class="col-xs-6">
<h4>{% trans "Add a new credit card" %}</h4>
</div>
<div class="col-xs-6 text-right">
<div class="col-xs-6 text-right new-card-button-margin">
<button data-toggle="collapse" data-target="#newcard" class="btn choice-btn">
<span class="fa fa-plus"></span>&nbsp;&nbsp;{% trans "NEW CARD" %}
</button>