subscription html card updated 6
This commit is contained in:
@@ -683,6 +683,14 @@ class GoogleLoginAPIView(APIView):
|
||||
google_source, _ = IAmPrincipalSource.objects.get_or_create(name="google")
|
||||
principal = IAmPrincipal.objects.filter(email=email).first()
|
||||
if principal:
|
||||
if not principal.is_active:
|
||||
return Response(
|
||||
{
|
||||
"message": constants.ACCOUNT_DEACTIVATED,
|
||||
"errors": constants.ACCOUNT_DEACTIVATED,
|
||||
},
|
||||
status=status.HTTP_403_FORBIDDEN,
|
||||
)
|
||||
# Existing user: Update necessary fields
|
||||
principal.first_name = principal_info.get(
|
||||
"given_name", principal.first_name
|
||||
|
||||
@@ -93,10 +93,11 @@
|
||||
<h5 class="card-title gold-text">Subscription Amount</h5>
|
||||
{% if subscription.high_amount and subscription.high_amount > subscription.amount %}
|
||||
<p class="gold-text mb-0"><s>£ {{ subscription.high_amount }}</s> £ {{ subscription.amount }}</p>
|
||||
<p>Days of Subscription : {{ subscription.plan.days }}</p>
|
||||
{% else %}
|
||||
<p class="gold-text mb-0">£ {{ subscription.amount }}</p>
|
||||
{% endif %}
|
||||
<p>Days of Subscription : {{ subscription.plan.days }}</p>
|
||||
|
||||
</div>
|
||||
<div class="Adventure-btn text-center">
|
||||
<!-- Add a data attribute to store subscription ID -->
|
||||
|
||||
Reference in New Issue
Block a user