Don't show payment info on managed memberships
authorSybren A. Stüvel <sybren@stuvel.eu>
Thu, 3 Jan 2019 13:07:40 +0000 (14:07 +0100)
committerSybren A. Stüvel <sybren@stuvel.eu>
Thu, 3 Jan 2019 13:07:40 +0000 (14:07 +0100)
websrc/templates/settings/membership_edit.pug

index 4d2b6e1b3e4fb13edc0c78aafcc12c2cd4c58c3e..5dbe63bb7108112bf1b17641db96e570742aae1d 100644 (file)
@@ -24,6 +24,7 @@ p.
 |   {% endif %}
 | {% endif %}
 
+| {% if not membership.is_managed %}
 | {% with subscription.payment_method as pay_meth %}
 p
        | {% if not pay_meth %}
@@ -43,6 +44,7 @@ p
                i.fa.fa-check
                | Pay Membership
 | {% endif %}
+| {% endif %}
 
 | {% if user.is_staff and perms.looper.change_subscription %}
 .bg-light.p-3.m-3.rounded.border(title='For admin eyes only')