diff --git a/app/app/fixtures/dashboard.json b/app/app/fixtures/dashboard.json index 40777fa8bfb..5087f911834 100644 --- a/app/app/fixtures/dashboard.json +++ b/app/app/fixtures/dashboard.json @@ -7768,7 +7768,6 @@ "grant_url": "/grants/3/my-test-grant-x3", "grant_logo": null, "token_name": "Any Token", - "amount_goal": "100000.00", "value_in_token": "0.00" }, "needs_review": false diff --git a/app/app/fixtures/grants.json b/app/app/fixtures/grants.json index a1a71d80346..5c2b81bf454 100644 --- a/app/app/fixtures/grants.json +++ b/app/app/fixtures/grants.json @@ -15,7 +15,6 @@ "logo_svg": "", "admin_address": "0xBcAfdD642118e5536024675e776d32413728dd08", "contract_owner_address": "0xBcAfdD642118e5536024675e776d32413728dd08", - "amount_goal": "50.0000", "monthly_amount_subscribed": "0.0000", "amount_received": "5.0000", "token_address": "0x8f2e097e79b1c51be9cba42658862f0192c3e487", @@ -53,7 +52,6 @@ "logo_svg": "", "admin_address": "0xE643cD48A9A902F6cE947324abE245b3Fe4106dc", "contract_owner_address": "0xBcAfdD642118e5536024675e776d32413728dd08", - "amount_goal": "100000.0000", "monthly_amount_subscribed": "47.5000", "amount_received": "0.0000", "token_address": "0x0000000000000000000000000000000000000000", @@ -91,7 +89,6 @@ "logo_svg": "", "admin_address": "0xCC4b3DE30576E161C8632786560Fa7DD3Fb33f77", "contract_owner_address": "", - "amount_goal": "100000.0000", "monthly_amount_subscribed": "0.0000", "amount_received": "5.0000", "token_address": "0x0000000000000000000000000000000000000000", diff --git a/app/assets/v2/js/grants/detail.js b/app/assets/v2/js/grants/detail.js index e3f9b86f0e5..8e690101310 100644 --- a/app/assets/v2/js/grants/detail.js +++ b/app/assets/v2/js/grants/detail.js @@ -3,7 +3,6 @@ const editableFields = [ '#form--input__reference-url', '#contract_owner_address', '#grant-members', - '#amount_goal', '#grant-categories' ]; @@ -117,7 +116,6 @@ $(document).ready(function() { $('#edit-details').addClass('hidden'); $('#save-details').removeClass('hidden'); $('#cancel-details').removeClass('hidden'); - $('#edit-amount_goal').removeClass('hidden'); $('.grant__progress').addClass('hidden'); $('#section-nav-description .ql-toolbar').css('display', 'inherit'); @@ -134,7 +132,6 @@ $(document).ready(function() { $('#edit-details').removeClass('hidden'); $('#save-details').addClass('hidden'); $('#cancel-details').addClass('hidden'); - $('#edit-amount_goal').addClass('hidden'); $('.grant__progress').removeClass('hidden'); $('#section-nav-description .ql-toolbar').css('display', 'none'); @@ -142,14 +139,12 @@ $(document).ready(function() { let edit_title = $('#form--input__title').val(); let edit_reference_url = $('#form--input__reference-url').val(); - let edit_amount_goal = $('#amount_goal').val(); let edit_grant_members = $('#grant-members').val(); let edit_categories = $('#grant-categories').val(); let data = { 'edit-title': edit_title, 'edit-reference_url': edit_reference_url, - 'edit-amount_goal': edit_amount_goal, 'edit-grant_members[]': edit_grant_members, 'edit-categories[]': edit_categories }; diff --git a/app/assets/v2/js/grants/new.js b/app/assets/v2/js/grants/new.js index 851037caf83..ab5df13e0f1 100644 --- a/app/assets/v2/js/grants/new.js +++ b/app/assets/v2/js/grants/new.js @@ -204,7 +204,6 @@ const init = () => { formData.append('contract_owner_address', $('#contract_owner_address').val()); formData.append('token_address', $('#token_address').val()); formData.append('token_symbol', $('#token_symbol').val()); - formData.append('amount_goal', $('#amount_goal').val()); formData.append('contract_version', $('#contract_version').val()); formData.append('transaction_hash', $('#transaction_hash').val()); formData.append('network', $('#network').val()); diff --git a/app/dashboard/export.py b/app/dashboard/export.py index d2fdaff69cf..9d777ace4f8 100644 --- a/app/dashboard/export.py +++ b/app/dashboard/export.py @@ -104,7 +104,7 @@ class Meta: model = Grant fields = ('id', 'active', 'grant_type', 'title', 'slug', 'description', 'description_rich', 'reference_url', 'logo', - 'admin_address', 'contract_owner_address', 'amount_goal', + 'admin_address', 'contract_owner_address', 'monthly_amount_subscribed', 'amount_received', 'token_address', 'token_symbol', 'contract_address', 'network', 'org', 'created_at', 'url', 'contribution_count', 'contributor_count' diff --git a/app/dashboard/migrations/0034_data_for_old_grants.py b/app/dashboard/migrations/0034_data_for_old_grants.py index 389babb91ec..0212f268f73 100644 --- a/app/dashboard/migrations/0034_data_for_old_grants.py +++ b/app/dashboard/migrations/0034_data_for_old_grants.py @@ -22,7 +22,6 @@ def record_grant_activity_helper(activity_type, grant, profile, date): metadata = { 'id': grant.id, 'value_in_token': '{0:.2f}'.format(grant.amount_received), - 'amount_goal': '{0:.2f}'.format(grant.amount_goal), 'token_name': grant.token_symbol, 'title': grant.title, 'grant_logo': grant_logo, diff --git a/app/dashboard/templates/profiles/tab_grant_contribs.html b/app/dashboard/templates/profiles/tab_grant_contribs.html index cbc02aa7790..9964ec096cd 100644 --- a/app/dashboard/templates/profiles/tab_grant_contribs.html +++ b/app/dashboard/templates/profiles/tab_grant_contribs.html @@ -48,7 +48,6 @@
{{ grant.monthly_amount_subscribed|floatformat:0|intcomma }} DAI
-of {{ grant.amount_goal|floatformat:0|intcomma }} DAI goal
{% endif %}{{ grant.description }}
-{% trans "You are seeking " %}{{ grant.amount_goal }} {% trans "DAI monthly" %}
-{% trans "To view or edit your grant click the button below." %}
{% trans "View Grant" %} diff --git a/app/retail/templates/emails/grants/new_grant.txt b/app/retail/templates/emails/grants/new_grant.txt index 3df32cdcea4..fd0d8815d0c 100644 --- a/app/retail/templates/emails/grants/new_grant.txt +++ b/app/retail/templates/emails/grants/new_grant.txt @@ -9,6 +9,4 @@ {% trans "Description" %} : {{ grant.description }} -{% trans "Goal" %} : {{ grant.amount_goal }} - {% trans "The details of your grant can be seen here:" %} {{ grant.reference_url }} diff --git a/app/retail/templates/emails/grants/subscription_terminated.html b/app/retail/templates/emails/grants/subscription_terminated.html index a8059a31694..14b14135a63 100644 --- a/app/retail/templates/emails/grants/subscription_terminated.html +++ b/app/retail/templates/emails/grants/subscription_terminated.html @@ -64,99 +64,6 @@ margin-bottom: 2rem; } - .progress { - width: 60%; - margin-left: 20%; - margin-top: 50px; - padding-bottom: 75px; - } - - .progress > h3 { - font-size: 26px; - color: #5B3AF0; - } - - .progressbar { - height: 15px; - background-color: #D8D8D8; - border-radius: 2.7px; - } - - .progress-completed { - height: 100%; - background-color: #0FCE7C; - border-radius: 2.7px; - float: left; - } - - .progress-removed { - height: 100%; - background-color: #CF0E0E; - border-top-right-radius: 2.7px; - border-bottom-right-radius: 2.7px; - float: left; - } - - .funding { - float: left; - text-align: left; - } - - .funding > h4 { - line-height: 0px; - text-align: left; - color: #0D0764; - padding-top: -20px; - } - - .progressbar-line { - width: 1px; - height: 50px; - background-color: #979797; - float: left; - margin-right: 20px; - } - - .progressbar-position-margin { - padding-left: 20%; - padding-right: 20%; - margin-top: 4rem; - } - - .progressbar-position { - transform: translateY(160%); - } - - .progressbar-position > p { - line-height: 0px; - color: #BBBDBF; - text-align: left; - } - - .progressbar-position > h4 { - line-height: 0px; - color: #0D0764; - padding-top: -20px; - } - - .funding > p { - line-height: 0px; - color: #BBBDBF; - } - - #currentFunding { - width: 57.5%; - } - - #goalFunding { - width: 42.5%; - text-align: right; - } - - #goalFunding h4 { - text-align: right; - } - #grant-logo { max-width: 25rem; width: 100%; @@ -186,43 +93,27 @@
{{ grant.description }}
- -{% trans "Current" %}
-{% trans "Goal" %}
-+ Subscription Amount cancelled + {{ subscription.amount_per_period|floatformat:4|intcomma }} {{ subscription.token_symbol }} +
+ ++ Total Grant received + {{ grant.amount_received }} {% trans "DAI" %} +
+{{ grant.description }}
- -{% trans "Current" %}
-{% trans "Goal" %}
-+ Subscription Amount cancelled + {{ subscription.amount_per_period|floatformat:4|intcomma }} {{ subscription.token_symbol }} +
+ ++ Total Grant received + {{ grant.amount_received }} {% trans "DAI" %} +
{% trans "Current" %}
-{% trans "Goal" %}
-+ Total Grant received + {{ grant.amount_received }} {% trans "DAI" %} +