Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Voucher generator, use physical card flag for enabling connecting phy…
Browse files Browse the repository at this point in the history
…sical cards
  • Loading branch information
aghimpu committed Aug 11, 2021
1 parent 04a1314 commit dfc70b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sources/forus-platform/pug/tpl/pages/vouchers-show.pug
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@

//- attach physical card
.button.button-default(
ng-if="!$ctrl.voucher.physical_card && $ctrl.voucher.fund.type == 'subsidies' && $ctrl.voucher.state !== 'deactivated'"
ng-if="!$ctrl.voucher.physical_card && $ctrl.voucher.fund.type == 'subsidies' && $ctrl.voucher.fund.allow_physical_cards && $ctrl.voucher.state !== 'deactivated'"
ng-click="$ctrl.addPhysicalCard()")
em.mdi.mdi-ticket-account.icon-start
span(translate="vouchers.buttons.physical_card_add")

//- remove physical card
.button.button-default(
ng-if="$ctrl.voucher.physical_card && $ctrl.voucher.fund.type == 'subsidies' && $ctrl.voucher.state !== 'deactivated'"
ng-if="$ctrl.voucher.physical_card && $ctrl.voucher.fund.type == 'subsidies' && $ctrl.voucher.fund.allow_physical_cards && $ctrl.voucher.state !== 'deactivated'"
ng-click="$ctrl.deletePhysicalCard()")
em.mdi.mdi-ticket-account.icon-start
span(translate="vouchers.buttons.physical_card_delete")
Expand Down

0 comments on commit dfc70b5

Please sign in to comment.