From 2d7fbd021a303f3a6bbbe253d724c6325a47ff05 Mon Sep 17 00:00:00 2001 From: Aditya Anand M C Date: Wed, 17 Mar 2021 11:49:09 +0530 Subject: [PATCH] allow admin to opt out of CLR (#8607) * allow admin to opt out of CLR * add feedback comments --- app/assets/v2/js/grants/_detail-component.js | 1 + .../grants/detail/template-grant-details.html | 10 ++++++++++ app/grants/views.py | 4 ++++ 3 files changed, 15 insertions(+) diff --git a/app/assets/v2/js/grants/_detail-component.js b/app/assets/v2/js/grants/_detail-component.js index d84a776c85c..ed7fb166884 100644 --- a/app/assets/v2/js/grants/_detail-component.js +++ b/app/assets/v2/js/grants/_detail-component.js @@ -68,6 +68,7 @@ Vue.mixin({ 'team_members[]': JSON.stringify(vm.teamFormatted), 'handle1': vm.grant.twitter_handle_1, 'handle2': vm.grant.twitter_handle_2, + 'is_clr_eligible': vm.grant.is_clr_eligible, 'eth_payout_address': vm.grant.admin_address, 'zcash_payout_address': vm.grant.zcash_payout_address, 'celo_payout_address': vm.grant.celo_payout_address, diff --git a/app/grants/templates/grants/detail/template-grant-details.html b/app/grants/templates/grants/detail/template-grant-details.html index 67fedee871d..a7e02af8969 100644 --- a/app/grants/templates/grants/detail/template-grant-details.html +++ b/app/grants/templates/grants/detail/template-grant-details.html @@ -493,6 +493,16 @@
Verify Grant Ownership with Twitter
+ +
+ + + + (If unchecked, your grant will not be able part of the CLR rounds on Gitcoin) + + +
+
diff --git a/app/grants/views.py b/app/grants/views.py index 7c056b35947..00ff6bbde11 100644 --- a/app/grants/views.py +++ b/app/grants/views.py @@ -1595,6 +1595,10 @@ def grant_edit(request, grant_id): if not description_rich: description_rich = description + if grant.active: + is_clr_eligible = json.loads(request.POST.get('is_clr_eligible', 'true')) + grant.is_clr_eligible = is_clr_eligible + eth_payout_address = request.POST.get('eth_payout_address', '0x0') zcash_payout_address = request.POST.get('zcash_payout_address', '0x0') celo_payout_address = request.POST.get('celo_payout_address', '0x0')