mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-02 02:11:33 +00:00
16 lines
696 B
Plaintext
16 lines
696 B
Plaintext
%script{ type: "text/ng-template", id: "account/cards.html" }
|
|
.credit_cards{"ng-controller" => "CreditCardsCtrl"}
|
|
.row
|
|
.small-12.medium-6.columns
|
|
%h3= t(:saved_cards)
|
|
.saved_cards{ ng: { show: 'savedCreditCards.length > 0' } }
|
|
= render 'saved_cards'
|
|
.no_cards{ ng: { hide: 'savedCreditCards.length > 0' } }
|
|
= t(:you_have_no_saved_cards)
|
|
%button.button.primary{ ng: { click: 'showForm()', hide: 'CreditCard.visible' } }
|
|
= t(:add_a_card)
|
|
|
|
.small-12.medium-6.columns.new_card{ ng: { show: 'CreditCard.visible', class: '{visible: CreditCard.visible}' } }
|
|
%h3= t(:add_a_new_card)
|
|
= render 'new_card_form'
|